|
@@ -11,6 +11,7 @@
|
|
|
#include <ls-math/ls_math_vector.hpp>
|
|
|
|
|
|
using namespace ls::math::vector;
|
|
|
+using namespace ls::math::core::type;
|
|
|
|
|
|
namespace
|
|
|
{
|
|
@@ -44,6 +45,12 @@ namespace
|
|
|
ASSERT_FLOAT_EQ(1, c.getY());
|
|
|
}
|
|
|
|
|
|
+ TEST_F(Vector2Test, operator_scalar)
|
|
|
+ {
|
|
|
+ vector_scalar scalar = Vector2(3, 4) * Vector2(5, 3);
|
|
|
+ ASSERT_FLOAT_EQ(27, scalar);
|
|
|
+ }
|
|
|
+
|
|
|
TEST_F(Vector2Test, getX)
|
|
|
{
|
|
|
Vector2 a{3, 4};
|