File tree 1 file changed +12
-6
lines changed
itest/rust/src/builtin_tests/geometry
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,19 @@ fn quaternion_from_axis_angle() {
41
41
assert_eq_approx ! ( quat. w, 0.877583 ) ;
42
42
43
43
// 2. Should panic if axis is not normalized.
44
- expect_panic ( "Quaternion axis {axis:?} is not normalized." , || {
45
- Quaternion :: from_axis_angle ( Vector3 :: ZERO , 1.0 ) ;
46
- } ) ;
44
+ expect_panic (
45
+ & format ! ( "Quaternion axis {:?} is not normalized." , Vector3 :: ZERO ) ,
46
+ || {
47
+ Quaternion :: from_axis_angle ( Vector3 :: ZERO , 1.0 ) ;
48
+ } ,
49
+ ) ;
47
50
48
- expect_panic ( "Quaternion axis {axis:?} is not normalized." , || {
49
- Quaternion :: from_axis_angle ( Vector3 :: UP * 0.7 , 1.0 ) ;
50
- } ) ;
51
+ expect_panic (
52
+ & format ! ( "Quaternion axis {:?} is not normalized." , Vector3 :: UP * 0.7 ) ,
53
+ || {
54
+ Quaternion :: from_axis_angle ( Vector3 :: UP * 0.7 , 1.0 ) ;
55
+ } ,
56
+ ) ;
51
57
}
52
58
53
59
#[ itest]
You can’t perform that action at this time.
0 commit comments