diff options
Diffstat (limited to 'test/coords.cpp')
-rw-r--r-- | test/coords.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/coords.cpp b/test/coords.cpp index 7fbf8c34..23d701c1 100644 --- a/test/coords.cpp +++ b/test/coords.cpp @@ -18,13 +18,13 @@ void test_normalize_point() c = { {{ -1, 1, 1}, { 7, 9}}, { 1, 31} }, d = { {{16384,-16384,2}, {15, 0}}, { 1, 2} }; - fm_assert_equal(norm(a, {}), point{{{ 0, 0, 0}, { 0, 0}}, { 0, 0} }); - fm_assert_equal(norm(b, {}), point{{{ -1, 1, 2}, { 0, 15}}, { 0, 0} }); - fm_assert_equal(norm(b, { 1, -1} ), point{{{ -1, 1 , 2}, { 0, 15}}, { 1, -1} }); - fm_assert_equal(norm(b, { -65, 65 }), point{{{ -2, 2, 2}, {15, 0}}, { -1, 1} }); - fm_assert_equal(norm(c, { 30, -62 }), point{{{ -1, 1, 1}, { 7, 9}}, { 31, -31} }); - fm_assert_equal(norm(c, {1024, 1024}), point{{{ 0, 2, 1}, { 7, 9}}, { 1, 31} }); - fm_assert_equal(norm(d, {2048, 1087}), point{{{16386,-16383,2}, {15, 1}}, { 1, 1} }); + fm_assert_equal(point{{{ 0, 0, 0}, { 0, 0}}, { 0, 0} }, norm(a, {} )); + fm_assert_equal(point{{{ -1, 1, 2}, { 0, 15}}, { 0, 0} }, norm(b, { })); + fm_assert_equal(point{{{ -1, 1 , 2}, { 0, 15}}, { 1, -1} }, norm(b, { 1, -1 })); + fm_assert_equal(point{{{ -2, 2, 2}, {15, 0}}, { -1, 1} }, norm(b, { -65, 65 })); + fm_assert_equal(point{{{ -1, 1, 1}, { 7, 9}}, { 31, -31} }, norm(c, { 30, -62 })); + fm_assert_equal(point{{{ 0, 2, 1}, { 7, 9}}, { 1, 31} }, norm(c, {1024, 1024})); + fm_assert_equal(point{{{16386,-16383,2}, {15, 1}}, { 1, 1} }, norm(d, {2048, 1087})); } } // namespace |