Пример #1
0
int main()
{
	if( testVector2() != 0 )
	{
		return 1;
	}
	
	if( testVector3() != 0 )
	{
		return 1;
	}
	
	return 0;
}
Пример #2
0
int main(int argc, char* argv[])
{	
	testMathUtils();
	testVector2();
	testVector3();	
	testVector4();
	testMatrix3();
	testAffineTransform2d();

	testMatrix4();
	testAffineTransform3d();
	
	std::cout << "All tests passed!" << std::endl;
	system("pause");
}
Пример #3
0
TEST_F(VectorTest, FillConstructorsWork)
{
	sprawl::collections::Vector<int> testVector2(sprawl::collections::Fill(5));

	EXPECT_EQ(ssize_t(5), testVector2.Size());

	for(auto& value : testVector2)
	{
		EXPECT_EQ(0, value);
	}

	sprawl::collections::Vector<int> testVector3(sprawl::collections::Fill(5), 3);

	EXPECT_EQ(ssize_t(5), testVector3.Size());

	for(auto& value : testVector3)
	{
		EXPECT_EQ(3, value);
	}
}