variable name changed for compatibilty
This commit is contained in:
@@ -17,14 +17,15 @@ Notes: [Any relevant details, such as dependencies, usage examples, or kno
|
||||
#include "util.h"
|
||||
|
||||
using namespace UTILITY_FUNCTIONS;
|
||||
using namespace std;
|
||||
|
||||
//----------- Test of utility function 'max3' ---------
|
||||
// Magic numbers for simplicity ( exceptionally allowed here )
|
||||
|
||||
// test if param 3 is max value
|
||||
TEST(UtilityTest_max3, param_3_is_max) {
|
||||
double max = max3(1.0f, 2.0f, 3.0f);
|
||||
EXPECT_DOUBLE_EQ(max, 3.0f);
|
||||
double ma = max3(1.0f, 2.0f, 3.0f);
|
||||
EXPECT_DOUBLE_EQ(ma, 3.0f);
|
||||
}
|
||||
|
||||
// test if param 2 is max value
|
||||
|
||||
Reference in New Issue
Block a user