#include "stdinc.h"
#include "TermGrader.h"
#include "tests.h"
#include "TermTranslator.h"
#include "Term.h"
Go to the source code of this file.
|
#define | MIN_INDEX_TEST(from, to, maxDegree, strict, expectFind, expectedIndex) |
|
#define | MAX_INDEX_TEST(from, to, maxDegree, strict, expectFind, expectedIndex) |
|
◆ MAX_INDEX_TEST
#define MAX_INDEX_TEST |
( |
|
from, |
|
|
|
to, |
|
|
|
maxDegree, |
|
|
|
strict, |
|
|
|
expectFind, |
|
|
|
expectedIndex |
|
) |
| |
Value: { \
Exponent foundIndex = 0; \
bool returnValue = grader.getMaxIndexLessThan \
(0, from, to, foundIndex, maxDegree - strict); \
if (expectFind) { \
ASSERT_TRUE(returnValue); \
ASSERT_EQ(foundIndex, (
Exponent)expectedIndex); \
} else { \
ASSERT_FALSE(returnValue); \
} \
}
Definition at line 145 of file TermGraderTest.cpp.
◆ MIN_INDEX_TEST
#define MIN_INDEX_TEST |
( |
|
from, |
|
|
|
to, |
|
|
|
maxDegree, |
|
|
|
strict, |
|
|
|
expectFind, |
|
|
|
expectedIndex |
|
) |
| |
Value: { \
Exponent foundIndex = 0; \
bool returnValue = grader.getMinIndexLessThan \
(0, from, to, foundIndex, maxDegree - strict); \
if (expectFind) { \
ASSERT_TRUE(returnValue); \
ASSERT_EQ(foundIndex, (
Exponent)expectedIndex); \
} else { \
ASSERT_FALSE(returnValue); \
} \
}
Definition at line 48 of file TermGraderTest.cpp.
◆ TEST() [1/7]
◆ TEST() [2/7]
◆ TEST() [3/7]
◆ TEST() [4/7]
◆ TEST() [5/7]
◆ TEST() [6/7]
◆ TEST() [7/7]