forked from bblanchon/ArduinoJson
Test that bool values are copied
This commit is contained in:
1 parent
d549070fd3
commit
e417c137fc
1 file changed
+9
@@ -76,3 +76,12 @@ TEST_F(JsonValueTests, DoubleValuesAreCopied)
|
|||||||
|
|
||||||
EXPECT_EQ(123.45, (double) jsonValue2);
|
EXPECT_EQ(123.45, (double) jsonValue2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_F(JsonValueTests, BooleanValuesAreCopied)
|
||||||
|
{
|
||||||
|
jsonValue1 = true;
|
||||||
|
jsonValue2 = jsonValue1;
|
||||||
|
jsonValue1 = false;
|
||||||
|
|
||||||
|
EXPECT_TRUE((bool) jsonValue2);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user