Skip to content

Commit 7958175

Browse files
committed
fix tests
1 parent 4a3c135 commit 7958175

File tree

1 file changed

+6
-6
lines changed
  • crates/bevy_mod_scripting_bindings/src

1 file changed

+6
-6
lines changed

crates/bevy_mod_scripting_bindings/src/world.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ mod test {
14841484
let type_registration = ScriptTypeRegistration::new(Arc::new(registration));
14851485

14861486
// zero indexed
1487-
let payload = HashMap::from_iter(vec![("_0".to_owned(), ScriptValue::Integer(1))]);
1487+
let payload = HashMap::from_iter(vec![("0".to_owned(), ScriptValue::Integer(1))]);
14881488

14891489
let result = world.construct(type_registration.clone(), payload, false);
14901490
let expected =
@@ -1523,8 +1523,8 @@ mod test {
15231523

15241524
// zero indexed
15251525
let payload = HashMap::from_iter(vec![
1526-
("_0".to_owned(), ScriptValue::Integer(1)),
1527-
("_1".to_owned(), ScriptValue::Integer(2)),
1526+
("0".to_owned(), ScriptValue::Integer(1)),
1527+
("1".to_owned(), ScriptValue::Integer(2)),
15281528
]);
15291529

15301530
let result = world.construct(type_registration.clone(), payload, false);
@@ -1533,8 +1533,8 @@ mod test {
15331533

15341534
// one indexed
15351535
let payload = HashMap::from_iter(vec![
1536-
("_1".to_owned(), ScriptValue::Integer(1)),
1537-
("_2".to_owned(), ScriptValue::Integer(2)),
1536+
("1".to_owned(), ScriptValue::Integer(1)),
1537+
("2".to_owned(), ScriptValue::Integer(2)),
15381538
]);
15391539

15401540
let result = world.construct(type_registration.clone(), payload, true);
@@ -1567,7 +1567,7 @@ mod test {
15671567

15681568
// tuple struct version
15691569
let payload = HashMap::from_iter(vec![
1570-
("_0".to_owned(), ScriptValue::Integer(1)),
1570+
("0".to_owned(), ScriptValue::Integer(1)),
15711571
(
15721572
"variant".to_owned(),
15731573
ScriptValue::String("TupleStruct".into()),

0 commit comments

Comments
 (0)