Skip to content

Commit 5cc1c87

Browse files
committed
Implments display trait and add doc tests
1 parent f047f17 commit 5cc1c87

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

godot-core/src/builtin/projection.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,20 +1008,3 @@ impl std::fmt::Display for Projection {
10081008
)
10091009
}
10101010
}
1011-
1012-
#[test]
1013-
fn display_test() {
1014-
const TEST_DATA: [Vector4; 4] = [
1015-
Vector4::new(1.0, 2.5, 1.0, 0.5),
1016-
Vector4::new(0.0, 1.5, 2.0, 0.5),
1017-
Vector4::new(0.0, 0.0, 3.0, 2.5),
1018-
Vector4::new(3.0, 1.0, 4.0, 1.5),
1019-
];
1020-
const EXPECTED_RESULT: &str = r"
1021-
1, 0, 0, 3
1022-
2.5, 1.5, 0, 1
1023-
1, 2, 3, 4
1024-
0.5, 0.5, 2.5, 1.5
1025-
";
1026-
assert_eq!(format!("{}", Projection::new(TEST_DATA)), EXPECTED_RESULT)
1027-
}

0 commit comments

Comments
 (0)