Skip to content

Commit 3bcfc8d

Browse files
Mateo MiccinoBromeon
andauthored
Update array_test.rs
Co-authored-by: Jan Haller <bromeon@gmail.com>
1 parent d30fc84 commit 3bcfc8d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

itest/rust/src/builtin_tests/containers/array_test.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -471,17 +471,17 @@ fn serde_roundtrip() {
471471
vectors: Array<Vector2i>,
472472
}
473473
let value = P {
474-
sequence: Array::from(&[1, 2, 3, 4, 5, 6]),
475-
names: Array::from(&[
476-
"Godot".into_godot(),
477-
"Rust".into_godot(),
478-
"Rocks".into_godot(),
479-
]),
480-
vectors: Array::from(&[
474+
sequence: array![1, 2, 3, 4, 5, 6]),
475+
names: array![
476+
"Godot",
477+
"Rust",
478+
"Rocks",
479+
],
480+
vectors: array![
481481
Vector2i::new(1, 1),
482482
Vector2i::new(2, 2),
483483
Vector2i::new(3, 3),
484-
]),
484+
],
485485
};
486486

487487
let expected_json = r#"{"sequence":[1,2,3,4,5,6],"names":["Godot","Rust","Rocks"],"vectors":[{"x":1,"y":1},{"x":2,"y":2},{"x":3,"y":3}]}"#;

0 commit comments

Comments
 (0)