You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TEST(regression, ternary_positive_test_1)
{
int actual = ternary_positive(-1);
EXPECT_EQ(0, actual);
}
TEST(regression, ternary_sign_test_1)
{
int actual = ternary_sign(0);
EXPECT_EQ(0, actual);
}
TEST(regression, ternary_sign_test_2)
{
int actual = ternary_sign(1);
EXPECT_EQ(1, actual);
}
Expected behavior
More tests generated. The following tests should be generated:
TEST(regression, ternary_positive_test_2)
{
int actual = ternary_positive(0);
EXPECT_EQ(1, actual);
}
TEST(regression, ternary_sign_test_2)
{
int actual = ternary_sign(-1);
EXPECT_EQ(-1, actual);
}
The text was updated successfully, but these errors were encountered:
Description
Add conditional (ternary) operator
? :
support.Current behavior
Source code:
Generated tests:
Expected behavior
More tests generated. The following tests should be generated:
The text was updated successfully, but these errors were encountered: