mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +02:00
Added tests that adds a boolean to a hash table
This commit is contained in:
@ -51,6 +51,21 @@ namespace JsonGeneratorTests
|
||||
jsonIs("{\"key\":null}");
|
||||
}
|
||||
|
||||
TEST_METHOD(OneTrue)
|
||||
{
|
||||
add("key", true);
|
||||
|
||||
jsonIs("{\"key\":true}");
|
||||
}
|
||||
|
||||
TEST_METHOD(OneFalse)
|
||||
{
|
||||
add("key", false);
|
||||
|
||||
jsonIs("{\"key\":false}");
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
|
||||
template<typename T>
|
||||
|
Reference in New Issue
Block a user