mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 10:17:39 +02:00
Test that bool values are copied
This commit is contained in:
@ -75,4 +75,13 @@ TEST_F(JsonValueTests, DoubleValuesAreCopied)
|
||||
jsonValue1 = 456.78;
|
||||
|
||||
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