| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d3a79e6 commit 9cb4a68
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,26 +2,26 @@ | |||
| 2 | 2 | ||
| 3 | 3 | #include <SFML/System/Vector2.hpp> | |
| 4 | 4 | ||
| 5 | - #include <catch2/catch_test_macros.hpp> | ||
| 5 | + #include <catch2/catch_template_test_macros.hpp> | ||
| 6 | 6 | ||
| 7 | 7 | #include <GraphicsUtil.hpp> | |
| 8 | 8 | #include <type_traits> | |
| 9 | 9 | ||
| 10 | - TEST_CASE("[Graphics] sf::Rect") | ||
| 10 | + TEMPLATE_TEST_CASE("[Graphics] sf::Rect", "", int, float) | ||
| 11 | 11 | { | |
| 12 | 12 | SECTION("Type traits") | |
| 13 | 13 | { | |
| 14 | - STATIC_CHECK(std::is_copy_constructible_v<sf::IntRect>); | ||
| 15 | - STATIC_CHECK(std::is_copy_assignable_v<sf::IntRect>); | ||
| 16 | - STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::IntRect>); | ||
| 17 | - STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::IntRect>); | ||
| 14 | + STATIC_CHECK(std::is_copy_constructible_v<sf::Rect<TestType>>); | ||
| 15 | + STATIC_CHECK(std::is_copy_assignable_v<sf::Rect<TestType>>); | ||
| 16 | + STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Rect<TestType>>); | ||
| 17 | + STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Rect<TestType>>); | ||
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | SECTION("Construction") | |
| 21 | 21 | { | |
| 22 | 22 | SECTION("Default constructor") | |
| 23 | 23 | { | |
| 24 | - constexpr sf::IntRect rectangle; | ||
| 24 | + constexpr sf::Rect<TestType> rectangle; | ||
| 25 | 25 | STATIC_CHECK(rectangle.left == 0); | |
| 26 | 26 | STATIC_CHECK(rectangle.top == 0); | |
| 27 | 27 | STATIC_CHECK(rectangle.width == 0); | |
@@ -30,7 +30,7 @@ TEST_CASE("[Graphics] sf::Rect") | |||
| 30 | 30 | ||
| 31 | 31 | SECTION("(left, top, width, height) constructor") | |
| 32 | 32 | { | |
| 33 | - constexpr sf::IntRect rectangle({1, 2}, {3, 4}); | ||
| 33 | + constexpr sf::Rect<TestType> rectangle({1, 2}, {3, 4}); | ||
| 34 | 34 | STATIC_CHECK(rectangle.left == 1); | |
| 35 | 35 | STATIC_CHECK(rectangle.top == 2); | |
| 36 | 36 | STATIC_CHECK(rectangle.width == 3); | |
@@ -39,9 +39,9 @@ TEST_CASE("[Graphics] sf::Rect") | |||
| 39 | 39 | ||
| 40 | 40 | SECTION("(Vector2, Vector2) constructor") | |
| 41 | 41 | { | |
| 42 | - constexpr sf::Vector2i position(1, 2); | ||
| 43 | - constexpr sf::Vector2i dimension(3, 4); | ||
| 44 | - constexpr sf::IntRect rectangle(position, dimension); | ||
| 42 | + constexpr sf::Vector2<TestType> position(1, 2); | ||
| 43 | + constexpr sf::Vector2<TestType> dimension(3, 4); | ||
| 44 | + constexpr sf::Rect<TestType> rectangle(position, dimension); | ||
| 45 | 45 | ||
| 46 | 46 | STATIC_CHECK(rectangle.left == 1); | |
| 47 | 47 | STATIC_CHECK(rectangle.top == 2); | |
@@ -63,22 +63,22 @@ TEST_CASE("[Graphics] sf::Rect") | |||
| 63 | 63 | ||
| 64 | 64 | SECTION("contains(Vector2)") | |
| 65 | 65 | { | |
| 66 | - constexpr sf::IntRect rectangle({0, 0}, {10, 10}); | ||
| 67 | - | ||
| 68 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(0, 0)) == true); | ||
| 69 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(9, 0)) == true); | ||
| 70 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(0, 9)) == true); | ||
| 71 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(9, 9)) == true); | ||
| 72 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(9, 10)) == false); | ||
| 73 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(10, 9)) == false); | ||
| 74 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(10, 10)) == false); | ||
| 75 | - STATIC_CHECK(rectangle.contains(sf::Vector2i(15, 15)) == false); | ||
| 66 | + constexpr sf::Rect<TestType> rectangle({0, 0}, {10, 10}); | ||
| 67 | + | ||
| 68 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(0, 0)) == true); | ||
| 69 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(9, 0)) == true); | ||
| 70 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(0, 9)) == true); | ||
| 71 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(9, 9)) == true); | ||
| 72 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(9, 10)) == false); | ||
| 73 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(10, 9)) == false); | ||
| 74 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(10, 10)) == false); | ||
| 75 | + STATIC_CHECK(rectangle.contains(sf::Vector2<TestType>(15, 15)) == false); | ||
| 76 | 76 | } | |
| 77 | 77 | ||
| 78 | 78 | SECTION("findIntersection()") | |
| 79 | 79 | { | |
| 80 | - constexpr sf::IntRect rectangle({0, 0}, {10, 10}); | ||
| 81 | - constexpr sf::IntRect intersectingRectangle({5, 5}, {10, 10}); | ||
| 80 | + constexpr sf::Rect<TestType> rectangle({0, 0}, {10, 10}); | ||
| 81 | + constexpr sf::Rect<TestType> intersectingRectangle({5, 5}, {10, 10}); | ||
| 82 | 82 | ||
| 83 | 83 | constexpr auto intersectionResult = rectangle.findIntersection(intersectingRectangle); | |
| 84 | 84 | STATIC_REQUIRE(intersectionResult.has_value()); | |
@@ -87,50 +87,50 @@ TEST_CASE("[Graphics] sf::Rect") | |||
| 87 | 87 | STATIC_CHECK(intersectionResult->width == 5); | |
| 88 | 88 | STATIC_CHECK(intersectionResult->height == 5); | |
| 89 | 89 | ||
| 90 | - constexpr sf::IntRect nonIntersectingRectangle({-5, -5}, {5, 5}); | ||
| 90 | + constexpr sf::Rect<TestType> nonIntersectingRectangle({-5, -5}, {5, 5}); | ||
| 91 | 91 | STATIC_CHECK_FALSE(rectangle.findIntersection(nonIntersectingRectangle).has_value()); | |
| 92 | 92 | } | |
| 93 | 93 | ||
| 94 | 94 | SECTION("getPosition()") | |
| 95 | 95 | { | |
| 96 | - STATIC_CHECK(sf::IntRect({}, {}).getPosition() == sf::Vector2i()); | ||
| 97 | - STATIC_CHECK(sf::IntRect({1, 2}, {3, 4}).getPosition() == sf::Vector2i(1, 2)); | ||
| 96 | + STATIC_CHECK(sf::Rect<TestType>({}, {}).getPosition() == sf::Vector2<TestType>()); | ||
| 97 | + STATIC_CHECK(sf::Rect<TestType>({1, 2}, {3, 4}).getPosition() == sf::Vector2<TestType>(1, 2)); | ||
| 98 | 98 | } | |
| 99 | 99 | ||
| 100 | 100 | SECTION("getSize()") | |
| 101 | 101 | { | |
| 102 | - STATIC_CHECK(sf::IntRect({}, {}).getSize() == sf::Vector2i()); | ||
| 103 | - STATIC_CHECK(sf::IntRect({1, 2}, {3, 4}).getSize() == sf::Vector2i(3, 4)); | ||
| 102 | + STATIC_CHECK(sf::Rect<TestType>({}, {}).getSize() == sf::Vector2<TestType>()); | ||
| 103 | + STATIC_CHECK(sf::Rect<TestType>({1, 2}, {3, 4}).getSize() == sf::Vector2<TestType>(3, 4)); | ||
| 104 | 104 | } | |
| 105 | 105 | ||
| 106 | 106 | SECTION("getCenter()") | |
| 107 | 107 | { | |
| 108 | - STATIC_CHECK(sf::IntRect({}, {}).getCenter() == sf::Vector2i()); | ||
| 109 | - STATIC_CHECK(sf::IntRect({1, 2}, {4, 6}).getCenter() == sf::Vector2i(3, 5)); | ||
| 108 | + STATIC_CHECK(sf::Rect<TestType>({}, {}).getCenter() == sf::Vector2<TestType>()); | ||
| 109 | + STATIC_CHECK(sf::Rect<TestType>({1, 2}, {4, 6}).getCenter() == sf::Vector2<TestType>(3, 5)); | ||
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | 112 | SECTION("Operators") | |
| 113 | 113 | { | |
| 114 | 114 | SECTION("operator==") | |
| 115 | 115 | { | |
| 116 | - STATIC_CHECK(sf::IntRect() == sf::IntRect()); | ||
| 117 | - STATIC_CHECK(sf::IntRect({1, 3}, {2, 5}) == sf::IntRect({1, 3}, {2, 5})); | ||
| 116 | + STATIC_CHECK(sf::Rect<TestType>() == sf::Rect<TestType>()); | ||
| 117 | + STATIC_CHECK(sf::Rect<TestType>({1, 3}, {2, 5}) == sf::Rect<TestType>({1, 3}, {2, 5})); | ||
| 118 | 118 | ||
| 119 | - STATIC_CHECK_FALSE(sf::IntRect({1, 0}, {0, 0}) == sf::IntRect({0, 0}, {0, 0})); | ||
| 120 | - STATIC_CHECK_FALSE(sf::IntRect({0, 1}, {0, 0}) == sf::IntRect({0, 0}, {0, 0})); | ||
| 121 | - STATIC_CHECK_FALSE(sf::IntRect({0, 0}, {1, 0}) == sf::IntRect({0, 0}, {0, 0})); | ||
| 122 | - STATIC_CHECK_FALSE(sf::IntRect({0, 0}, {0, 1}) == sf::IntRect({0, 0}, {0, 0})); | ||
| 119 | + STATIC_CHECK_FALSE(sf::Rect<TestType>({1, 0}, {0, 0}) == sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 120 | + STATIC_CHECK_FALSE(sf::Rect<TestType>({0, 1}, {0, 0}) == sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 121 | + STATIC_CHECK_FALSE(sf::Rect<TestType>({0, 0}, {1, 0}) == sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 122 | + STATIC_CHECK_FALSE(sf::Rect<TestType>({0, 0}, {0, 1}) == sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 123 | 123 | } | |
| 124 | 124 | ||
| 125 | 125 | SECTION("operator!=") | |
| 126 | 126 | { | |
| 127 | - STATIC_CHECK(sf::IntRect({1, 0}, {0, 0}) != sf::IntRect({0, 0}, {0, 0})); | ||
| 128 | - STATIC_CHECK(sf::IntRect({0, 1}, {0, 0}) != sf::IntRect({0, 0}, {0, 0})); | ||
| 129 | - STATIC_CHECK(sf::IntRect({0, 0}, {1, 0}) != sf::IntRect({0, 0}, {0, 0})); | ||
| 130 | - STATIC_CHECK(sf::IntRect({0, 0}, {0, 1}) != sf::IntRect({0, 0}, {0, 0})); | ||
| 127 | + STATIC_CHECK(sf::Rect<TestType>({1, 0}, {0, 0}) != sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 128 | + STATIC_CHECK(sf::Rect<TestType>({0, 1}, {0, 0}) != sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 129 | + STATIC_CHECK(sf::Rect<TestType>({0, 0}, {1, 0}) != sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 130 | + STATIC_CHECK(sf::Rect<TestType>({0, 0}, {0, 1}) != sf::Rect<TestType>({0, 0}, {0, 0})); | ||
| 131 | 131 | ||
| 132 | - STATIC_CHECK_FALSE(sf::IntRect() != sf::IntRect()); | ||
| 133 | - STATIC_CHECK_FALSE(sf::IntRect({1, 3}, {2, 5}) != sf::IntRect({1, 3}, {2, 5})); | ||
| 132 | + STATIC_CHECK_FALSE(sf::Rect<TestType>() != sf::Rect<TestType>()); | ||
| 133 | + STATIC_CHECK_FALSE(sf::Rect<TestType>({1, 3}, {2, 5}) != sf::Rect<TestType>({1, 3}, {2, 5})); | ||
| 134 | 134 | } | |
| 135 | 135 | } | |
| 136 | 136 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | #include <SFML/System/Vector2.hpp> | |
| 2 | 2 | ||
| 3 | - #include <catch2/catch_test_macros.hpp> | ||
| 3 | + #include <catch2/catch_template_test_macros.hpp> | ||
| 4 | 4 | ||
| 5 | 5 | #include <SystemUtil.hpp> | |
| 6 | 6 | #include <type_traits> | |
@@ -9,31 +9,28 @@ | |||
| 9 | 9 | ||
| 10 | 10 | using namespace sf::Literals; | |
| 11 | 11 | ||
| 12 | - // Use sf::Vector2i for tests (except for float vector algebra). | ||
| 13 | - // Test coverage is given, as there are no template specializations. | ||
| 14 | - | ||
| 15 | - TEST_CASE("[System] sf::Vector2") | ||
| 12 | + TEMPLATE_TEST_CASE("[System] sf::Vector2", "", int, float) | ||
| 16 | 13 | { | |
| 17 | 14 | SECTION("Type traits") | |
| 18 | 15 | { | |
| 19 | - STATIC_CHECK(std::is_copy_constructible_v<sf::Vector2i>); | ||
| 20 | - STATIC_CHECK(std::is_copy_assignable_v<sf::Vector2i>); | ||
| 21 | - STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector2i>); | ||
| 22 | - STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector2i>); | ||
| 16 | + STATIC_CHECK(std::is_copy_constructible_v<sf::Vector2<TestType>>); | ||
| 17 | + STATIC_CHECK(std::is_copy_assignable_v<sf::Vector2<TestType>>); | ||
| 18 | + STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::Vector2<TestType>>); | ||
| 19 | + STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::Vector2<TestType>>); | ||
| 23 | 20 | } | |
| 24 | 21 | ||
| 25 | 22 | SECTION("Construction") | |
| 26 | 23 | { | |
| 27 | 24 | SECTION("Default constructor") | |
| 28 | 25 | { | |
| 29 | - constexpr sf::Vector2i vector; | ||
| 26 | + constexpr sf::Vector2<TestType> vector; | ||
| 30 | 27 | STATIC_CHECK(vector.x == 0); | |
| 31 | 28 | STATIC_CHECK(vector.y == 0); | |
| 32 | 29 | } | |
| 33 | 30 | ||
| 34 | 31 | SECTION("(x, y) coordinate constructor") | |
| 35 | 32 | { | |
| 36 | - constexpr sf::Vector2i vector(1, 2); | ||
| 33 | + constexpr sf::Vector2<TestType> vector(1, 2); | ||
| 37 | 34 | STATIC_CHECK(vector.x == 1); | |
| 38 | 35 | STATIC_CHECK(vector.y == 2); | |
| 39 | 36 | } | |
@@ -105,8 +102,8 @@ TEST_CASE("[System] sf::Vector2") | |||
| 105 | 102 | { | |
| 106 | 103 | SECTION("-vector") | |
| 107 | 104 | { | |
| 108 | - constexpr sf::Vector2i vector(1, 2); | ||
| 109 | - constexpr sf::Vector2i negatedVector = -vector; | ||
| 105 | + constexpr sf::Vector2<TestType> vector(1, 2); | ||
| 106 | + constexpr sf::Vector2<TestType> negatedVector = -vector; | ||
| 110 | 107 | ||
| 111 | 108 | STATIC_CHECK(negatedVector.x == -1); | |
| 112 | 109 | STATIC_CHECK(negatedVector.y == -2); | |
@@ -115,8 +112,8 @@ TEST_CASE("[System] sf::Vector2") | |||
| 115 | 112 | ||
| 116 | 113 | SECTION("Arithmetic operations between two vectors") | |
| 117 | 114 | { | |
| 118 | - sf::Vector2i firstVector(2, 5); | ||
| 119 | - constexpr sf::Vector2i secondVector(8, 3); | ||
| 115 | + sf::Vector2<TestType> firstVector(2, 5); | ||
| 116 | + constexpr sf::Vector2<TestType> secondVector(8, 3); | ||
| 120 | 117 | ||
| 121 | 118 | SECTION("vector += vector") | |
| 122 | 119 | { | |
@@ -136,15 +133,15 @@ TEST_CASE("[System] sf::Vector2") | |||
| 136 | 133 | ||
| 137 | 134 | SECTION("vector + vector") | |
| 138 | 135 | { | |
| 139 | - const sf::Vector2i result = firstVector + secondVector; | ||
| 136 | + const sf::Vector2<TestType> result = firstVector + secondVector; | ||
| 140 | 137 | ||
| 141 | 138 | CHECK(result.x == 10); | |
| 142 | 139 | CHECK(result.y == 8); | |
| 143 | 140 | } | |
| 144 | 141 | ||
| 145 | 142 | SECTION("vector - vector") | |
| 146 | 143 | { | |
| 147 | - const sf::Vector2i result = firstVector - secondVector; | ||
| 144 | + const sf::Vector2<TestType> result = firstVector - secondVector; | ||
| 148 | 145 | ||
| 149 | 146 | CHECK(result.x == -6); | |
| 150 | 147 | CHECK(result.y == 2); | |
@@ -153,20 +150,20 @@ TEST_CASE("[System] sf::Vector2") | |||
| 153 | 150 | ||
| 154 | 151 | SECTION("Arithmetic operations between vector and scalar value") | |
| 155 | 152 | { | |
| 156 | - sf::Vector2i vector(26, 12); | ||
| 157 | - const int scalar = 2; | ||
| 153 | + sf::Vector2<TestType> vector(26, 12); | ||
| 154 | + const TestType scalar = 2; | ||
| 158 | 155 | ||
| 159 | 156 | SECTION("vector * scalar") | |
| 160 | 157 | { | |
| 161 | - const sf::Vector2i result = vector * scalar; | ||
| 158 | + const sf::Vector2<TestType> result = vector * scalar; | ||
| 162 | 159 | ||
| 163 | 160 | CHECK(result.x == 52); | |
| 164 | 161 | CHECK(result.y == 24); | |
| 165 | 162 | } | |
| 166 | 163 | ||
| 167 | 164 | SECTION("scalar * vector") | |
| 168 | 165 | { | |
| 169 | - const sf::Vector2i result = scalar * vector; | ||
| 166 | + const sf::Vector2<TestType> result = scalar * vector; | ||
| 170 | 167 | ||
| 171 | 168 | CHECK(result.x == 52); | |
| 172 | 169 | CHECK(result.y == 24); | |
@@ -182,7 +179,7 @@ TEST_CASE("[System] sf::Vector2") | |||
| 182 | 179 | ||
| 183 | 180 | SECTION("vector / scalar") | |
| 184 | 181 | { | |
| 185 | - const sf::Vector2i result = vector / scalar; | ||
| 182 | + const sf::Vector2<TestType> result = vector / scalar; | ||
| 186 | 183 | ||
| 187 | 184 | CHECK(result.x == 13); | |
| 188 | 185 | CHECK(result.y == 6); | |
@@ -199,9 +196,9 @@ TEST_CASE("[System] sf::Vector2") | |||
| 199 | 196 | ||
| 200 | 197 | SECTION("Comparison operations (two equal and one different vector)") | |
| 201 | 198 | { | |
| 202 | - constexpr sf::Vector2i firstEqualVector(1, 5); | ||
| 203 | - constexpr sf::Vector2i secondEqualVector(1, 5); | ||
| 204 | - constexpr sf::Vector2i differentVector(6, 9); | ||
| 199 | + constexpr sf::Vector2<TestType> firstEqualVector(1, 5); | ||
| 200 | + constexpr sf::Vector2<TestType> secondEqualVector(1, 5); | ||
| 201 | + constexpr sf::Vector2<TestType> differentVector(6, 9); | ||
| 205 | 202 | ||
| 206 | 203 | SECTION("vector == vector") | |
| 207 | 204 | { | |
@@ -218,7 +215,7 @@ TEST_CASE("[System] sf::Vector2") | |||
| 218 | 215 | ||
| 219 | 216 | SECTION("Structured bindings") | |
| 220 | 217 | { | |
| 221 | - sf::Vector2i vector(1, 2); // NOLINT(misc-const-correctness) | ||
| 218 | + sf::Vector2<TestType> vector(1, 2); // NOLINT(misc-const-correctness) | ||
| 222 | 219 | ||
| 223 | 220 | SECTION("destructure by value") | |
| 224 | 221 | { | |
@@ -329,19 +326,19 @@ TEST_CASE("[System] sf::Vector2") | |||
| 329 | 326 | ||
| 330 | 327 | SECTION("Constexpr support") | |
| 331 | 328 | { | |
| 332 | - constexpr sf::Vector2i v(1, 2); | ||
| 333 | - constexpr sf::Vector2i w(2, -3); | ||
| 329 | + constexpr sf::Vector2<TestType> v(1, 2); | ||
| 330 | + constexpr sf::Vector2<TestType> w(2, -6); | ||
| 334 | 331 | ||
| 335 | 332 | STATIC_CHECK(v.x == 1); | |
| 336 | 333 | STATIC_CHECK(v.y == 2); | |
| 337 | - STATIC_CHECK(v + w == sf::Vector2i(3, -1)); | ||
| 334 | + STATIC_CHECK(v + w == sf::Vector2<TestType>(3, -4)); | ||
| 338 | 335 | ||
| 339 | 336 | STATIC_CHECK(v.lengthSq() == 5); | |
| 340 | - STATIC_CHECK(v.perpendicular() == sf::Vector2i(-2, 1)); | ||
| 337 | + STATIC_CHECK(v.perpendicular() == sf::Vector2<TestType>(-2, 1)); | ||
| 341 | 338 | ||
| 342 | - STATIC_CHECK(v.dot(w) == -4); | ||
| 343 | - STATIC_CHECK(v.cross(w) == -7); | ||
| 344 | - STATIC_CHECK(v.cwiseMul(w) == sf::Vector2i(2, -6)); | ||
| 345 | - STATIC_CHECK(w.cwiseDiv(v) == sf::Vector2i(2, -1)); | ||
| 339 | + STATIC_CHECK(v.dot(w) == -10); | ||
| 340 | + STATIC_CHECK(v.cross(w) == -10); | ||
| 341 | + STATIC_CHECK(v.cwiseMul(w) == sf::Vector2<TestType>(2, -12)); | ||
| 342 | + STATIC_CHECK(w.cwiseDiv(v) == sf::Vector2<TestType>(2, -3)); | ||
| 346 | 343 | } | |
| 347 | 344 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments