Skip to content

Commit

Permalink
Rename tests to test in testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Dec 27, 2023
1 parent 4463a3a commit 5b96e7d
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion tests/src/FintamathTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using namespace fintamath;

TEST(FintamathTests, fintamathTests) {
TEST(FintamathTests, fintamathTest) {
Expression expr;
Variable x("x");
Variable y("y");
Expand Down
2 changes: 1 addition & 1 deletion tests/src/exceptions/ExceptionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestMathObject : public IMathObjectCRTP<TestMathObject> {

}

TEST(ExceptionTests, whatTests) {
TEST(ExceptionTests, whatTest) {
try {
TestMathObject().throwException();
EXPECT_TRUE(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestOperator : public IOperatorCRTP<IMathObject, TestOperator, IMathObject

}

TEST(InvalidInputBinaryOpearatorExceptionTests, whatTests) {
TEST(InvalidInputBinaryOpearatorExceptionTests, whatTest) {
try {
TestOperator().throwException();
EXPECT_TRUE(false);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/exceptions/InvalidInputExceptionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TestMathObject : public IMathObjectCRTP<TestMathObject> {

}

TEST(InvalidInputExceptionTests, whatTests) {
TEST(InvalidInputExceptionTests, whatTest) {
try {
TestMathObject().throwException();
EXPECT_TRUE(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestFunction : public IFunctionCRTP<IMathObject, TestFunction, IMathObject

}

TEST(InvalidInputFunctionExceptionTests, whatTests) {
TEST(InvalidInputFunctionExceptionTests, whatTest) {
try {
TestFunction().throwException();
EXPECT_TRUE(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TestOperator : public IOperatorCRTP<IMathObject, TestOperator, IMathObject

}

TEST(InvalidInputUnaryOpearatorExceptionTests, whatTests) {
TEST(InvalidInputUnaryOpearatorExceptionTests, whatTest) {
try {
TestOperator().throwExceptionPrefix();
EXPECT_TRUE(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestOperator : public IOperatorCRTP<IMathObject, TestOperator, IMathObject

}

TEST(UndefinedBinaryOpearatorExceptionTests, whatTests) {
TEST(UndefinedBinaryOpearatorExceptionTests, whatTest) {
try {
TestOperator().throwException();
EXPECT_TRUE(false);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/exceptions/UndefinedExceptionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TestFunction : public IFunctionCRTP<IMathObject, TestFunction, IMathObject

}

TEST(UndefinedExceptionTests, whatTests) {
TEST(UndefinedExceptionTests, whatTest) {
try {
TestFunction().throwException1();
EXPECT_TRUE(false);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/exceptions/UndefinedFunctionExceptionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TestFunction : public IFunctionCRTP<IMathObject, TestFunction, IMathObject

}

TEST(UndefinedFunctionExceptionTests, whatTests) {
TEST(UndefinedFunctionExceptionTests, whatTest) {
try {
TestFunction().throwException1();
EXPECT_TRUE(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TestOperator : public IOperatorCRTP<IMathObject, TestOperator, IMathObject

}

TEST(UndefinedUnaryOpearatorExceptionTests, whatTests) {
TEST(UndefinedUnaryOpearatorExceptionTests, whatTest) {
try {
TestOperator().throwExceptionPrefix();
EXPECT_TRUE(false);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/literals/ILiteralTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using namespace fintamath;

TEST(ILiteralTests, equalsTests) {
TEST(ILiteralTests, equalsTest) {
std::unique_ptr<ILiteral> c1 = std::make_unique<E>();
std::unique_ptr<ILiteral> c2 = std::make_unique<Pi>();
std::unique_ptr<ILiteral> v1 = std::make_unique<Variable>("a");
Expand Down
2 changes: 1 addition & 1 deletion tests/src/literals/constants/IConstantTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using namespace fintamath;

TEST(IConstantTests, callTests) {
TEST(IConstantTests, callTest) {
std::unique_ptr<IConstant> c1 = std::make_unique<E>();
std::unique_ptr<IConstant> c2 = std::make_unique<Pi>();

Expand Down
4 changes: 2 additions & 2 deletions tests/src/numbers/ComplexTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ TEST(ComplexTests, simplifyTest) {
EXPECT_EQ(Complex(Real("5.2"), Integer(0)).toMinimalObject()->toString(), "5.2");
}

TEST(ComplexTests, isPreciseTests) {
TEST(ComplexTests, isPreciseTest) {
EXPECT_TRUE(Complex(1, 2).isPrecise());
EXPECT_TRUE(Complex(Rational(1, 2), Rational(1, 2)).isPrecise());

Expand All @@ -902,7 +902,7 @@ TEST(ComplexTests, isPreciseTests) {
EXPECT_FALSE(Complex(Integer(1), Real(1)).isPrecise());
}

TEST(ComplexTests, isComplexTests) {
TEST(ComplexTests, isComplexTest) {
EXPECT_TRUE(Complex(1, 1).isComplex());

EXPECT_FALSE(Complex(1, 0).isComplex());
Expand Down
4 changes: 2 additions & 2 deletions tests/src/numbers/IntegerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,11 +850,11 @@ TEST(IntegerTests, intOperatorTest) {
EXPECT_EQ(int64_t(Integer("-100000000000000000000000000000000000000000000000000")) + 1, -9223372036854775807);
}

TEST(IntegerTests, isPreciseTests) {
TEST(IntegerTests, isPreciseTest) {
EXPECT_TRUE(Integer(1).isPrecise());
}

TEST(IntegerTests, isComplexTests) {
TEST(IntegerTests, isComplexTest) {
EXPECT_FALSE(Integer(1).isComplex());
}

Expand Down
6 changes: 3 additions & 3 deletions tests/src/numbers/RationalTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,19 +485,19 @@ TEST(RationalTests, simplifyTest) {
EXPECT_EQ(Rational(-55, 5).toMinimalObject()->toString(), "-11");
}

TEST(RationalTests, signTests) {
TEST(RationalTests, signTest) {
EXPECT_EQ(Rational(-2).sign(), -1);
EXPECT_EQ(Rational(-1).sign(), -1);
EXPECT_EQ(Rational(0).sign(), 0);
EXPECT_EQ(Rational(1).sign(), 1);
EXPECT_EQ(Rational(2).sign(), 1);
}

TEST(RationalTests, isPreciseTests) {
TEST(RationalTests, isPreciseTest) {
EXPECT_TRUE(Rational(1, 2).isPrecise());
}

TEST(RationalTests, isComplexTests) {
TEST(RationalTests, isComplexTest) {
EXPECT_FALSE(Rational(1, 2).isComplex());
}

Expand Down
14 changes: 7 additions & 7 deletions tests/src/numbers/RealTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ TEST(RealTests, toStringTest) {
EXPECT_EQ(Real("-1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000").toString(), "-1.0*10^90");
}

TEST(RealTests, toStringPrecisionPrecisionTests) {
TEST(RealTests, toStringPrecisionPrecisionTest) {
Real val = Rational(1, 3);
EXPECT_EQ(val.toString(1), "0.3");
EXPECT_EQ(val.toString(2), "0.33");
Expand Down Expand Up @@ -867,15 +867,15 @@ TEST(RealTests, toStringPrecisionPrecisionTests) {
EXPECT_THROW(val.toString(20), InvalidInputException);
}

TEST(RealTests, getPrecisionTests) {
TEST(RealTests, getPrecisionTest) {
EXPECT_EQ(Real::getPrecision(), 80);
}

TEST(RealTests, getCalculationPrecisionTests) {
TEST(RealTests, getCalculationPrecisionTest) {
EXPECT_EQ(Real::getCalculationPrecision(), 170);
}

TEST(RealTests, setPrecisionTests) {
TEST(RealTests, setPrecisionTest) {
unsigned currPrecision = Real::getPrecision();

Real::setPrecision(10);
Expand All @@ -896,7 +896,7 @@ TEST(RealTests, scopedSetPrecisionTest) {
EXPECT_EQ(Real::getPrecision(), currPrecision);
}

TEST(RealTests, signTests) {
TEST(RealTests, signTest) {
EXPECT_EQ(Real(-2).sign(), -1);
EXPECT_EQ(Real(-1).sign(), -1);
EXPECT_EQ(Real("-0").sign(), -1);
Expand All @@ -905,11 +905,11 @@ TEST(RealTests, signTests) {
EXPECT_EQ(Real(2).sign(), 1);
}

TEST(RealTests, isPreciseTests) {
TEST(RealTests, isPreciseTest) {
EXPECT_FALSE(Real(2).isPrecise());
}

TEST(RealTests, isComplexTests) {
TEST(RealTests, isComplexTest) {
EXPECT_FALSE(Real(2).isComplex());
}

Expand Down

0 comments on commit 5b96e7d

Please sign in to comment.