update utils tester for API change in bound()/boundsbig()

This commit is contained in:
Axel Kohlmeyer 2020-08-31 11:43:25 -04:00
parent dd03c7232a
commit 0c7b9a7c63
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 11 additions and 11 deletions

View File

@ -436,10 +436,10 @@ TEST(Utils, boundsbig_case1)
bigint nlo, nhi;
nlo = nhi = -1;
utils::boundsbig(FLERR, "9", 0, 10, nlo, nhi, nullptr);
utils::bounds(FLERR, "9", 0, 10, nlo, nhi, nullptr);
ASSERT_EQ(nlo,9);
ASSERT_EQ(nhi,9);
utils::boundsbig(FLERR, "1", 1, 10, nlo, nhi, nullptr);
utils::bounds(FLERR, "1", 1, 10, nlo, nhi, nullptr);
ASSERT_EQ(nlo,1);
ASSERT_EQ(nhi,1);
}
@ -449,23 +449,23 @@ TEST(Utils, boundsbig_case2)
bigint nlo, nhi;
nlo = nhi = -1;
utils::boundsbig(FLERR, "*", 0, 10, nlo, nhi, nullptr);
utils::bounds(FLERR, "*", 0, 10, nlo, nhi, nullptr);
ASSERT_EQ(nlo,0);
ASSERT_EQ(nhi,10);
utils::boundsbig(FLERR, "*", -10, 5, nlo, nhi, nullptr);
utils::bounds(FLERR, "*", -10, 5, nlo, nhi, nullptr);
ASSERT_EQ(nlo,-10);
ASSERT_EQ(nhi,5);
}
TEST(Utils, boundsbig_case3)
TEST(Utils, bounds_case3)
{
bigint nlo, nhi;
nlo = nhi = -1;
utils::boundsbig(FLERR, "2*", 0, 10, nlo, nhi, nullptr);
utils::bounds(FLERR, "2*", 0, 10, nlo, nhi, nullptr);
ASSERT_EQ(nlo,2);
ASSERT_EQ(nhi,10);
utils::boundsbig(FLERR, "3*", -10, 5, nlo, nhi, nullptr);
utils::bounds(FLERR, "3*", -10, 5, nlo, nhi, nullptr);
ASSERT_EQ(nlo,3);
ASSERT_EQ(nhi,5);
}
@ -475,10 +475,10 @@ TEST(Utils, boundsbig_case4)
bigint nlo, nhi;
nlo = nhi = -1;
utils::boundsbig(FLERR, "*2", 0, 10, nlo, nhi, nullptr);
utils::bounds(FLERR, "*2", 0, 10, nlo, nhi, nullptr);
ASSERT_EQ(nlo,0);
ASSERT_EQ(nhi,2);
utils::boundsbig(FLERR, "*3", -10, 5, nlo, nhi, nullptr);
utils::bounds(FLERR, "*3", -10, 5, nlo, nhi, nullptr);
ASSERT_EQ(nlo,-10);
ASSERT_EQ(nhi,3);
}
@ -488,10 +488,10 @@ TEST(Utils, boundsbig_case5)
bigint nlo, nhi;
nlo = nhi = -1;
utils::boundsbig(FLERR, "2*5", 0, 10, nlo, nhi, nullptr);
utils::bounds(FLERR, "2*5", 0, 10, nlo, nhi, nullptr);
ASSERT_EQ(nlo,2);
ASSERT_EQ(nhi,5);
utils::boundsbig(FLERR, "-2*3", -10, 5, nlo, nhi, nullptr);
utils::bounds(FLERR, "-2*3", -10, 5, nlo, nhi, nullptr);
ASSERT_EQ(nlo,-2);
ASSERT_EQ(nhi,3);
}