Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[tests] Sidestep a gcc or gtest bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jan 11, 2017
1 parent 4ce8d3e commit b65b1e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/style/functions.test.cpp
Expand Up @@ -71,9 +71,9 @@ TEST(Function, Stops) {
EXPECT_EQ("string2", evaluate(discrete_0, 10));

Function<bool> discreteBool({{1, false}, {3, true}}, 1);
EXPECT_EQ(false, evaluate(discreteBool, 0));
EXPECT_EQ(false, evaluate(discreteBool, 1));
EXPECT_EQ(false, evaluate(discreteBool, 2));
EXPECT_EQ(true, evaluate(discreteBool, 3));
EXPECT_EQ(true, evaluate(discreteBool, 4));
EXPECT_FALSE(evaluate(discreteBool, 0));
EXPECT_FALSE(evaluate(discreteBool, 1));
EXPECT_FALSE(evaluate(discreteBool, 2));
EXPECT_TRUE(evaluate(discreteBool, 3));
EXPECT_TRUE(evaluate(discreteBool, 4));
}

0 comments on commit b65b1e2

Please sign in to comment.