Moved Eule to its own repository
This commit is contained in:
40
Test/Math_Max.cpp
Normal file
40
Test/Math_Max.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#include "CppUnitTest.h"
|
||||
#include "../Eule/Math.h"
|
||||
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
using namespace Eule;
|
||||
|
||||
/** Equivalence classes:
|
||||
* -- a < b
|
||||
* -- a > b
|
||||
* -- a == b
|
||||
*/
|
||||
|
||||
namespace _Math
|
||||
{
|
||||
TEST_CLASS(_Max)
|
||||
{
|
||||
public:
|
||||
// a < b
|
||||
TEST_METHOD(a_lt_b)
|
||||
{
|
||||
Assert::AreEqual(12.0, Math::Max(4.0, 12.0));
|
||||
return;
|
||||
}
|
||||
|
||||
// a > b
|
||||
TEST_METHOD(a_gt_b)
|
||||
{
|
||||
Assert::AreEqual(12.0, Math::Max(12.0, 4.0));
|
||||
return;
|
||||
}
|
||||
|
||||
// a == b
|
||||
TEST_METHOD(a_eq_b)
|
||||
{
|
||||
Assert::AreEqual(9.0, Math::Max(9.0, 9.0));
|
||||
return;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user