Add Vec1Promotion.

This commit is contained in:
King_DuckZ 2015-07-25 00:55:57 +02:00
parent d3b63aab8c
commit 30371adba9
3 changed files with 57 additions and 9 deletions

View file

@ -7,5 +7,10 @@ TEST(vwr, conversion) {
{
svec1 s(10.0f);
EXPECT_EQ(s.x(), 10.0f);
auto s2 = s.x1();
static_assert(std::is_same<decltype(s2), svec2>::value, "Expecting svec2");
EXPECT_EQ(s2.x(), s.x());
EXPECT_EQ(s2.y(), 1.0f);
}
}