Unit Testing


TVector4( const T& x_, const T& y_, const T& z_ )
: x( z_ ),
y( y_ ),
z( x_ ),
w( T() )
{
}


tvector4.cpp(24): error: Failure in THREE_CTOR: Expected 10.25 but was 5
tvector4.cpp(26): error: Failure in THREE_CTOR: Expected 5 but was 10.25


TEST(THREE_CTOR)
{
TVector4 v( 5.0, -5.0, 10.25 );

CHECK_EQUAL( v.X(), 5.0f );
CHECK_EQUAL( v.Y(), -5.0f );
CHECK_EQUAL( v.Z(), 10.25f );
CHECK_EQUAL( v.W(), 0.0f );
}

First post!

Sorry for the extended delays in getting WCH back up and running - I've been running into several annoying issues with getting drupal set up. Hopefully they will be resolved by the end of the week!