forked from bblanchon/ArduinoJson
Created a failing test
This commit is contained in:
1 parent
68a2ca905e
commit
1ce6661fa6
1 file changed
+7
@@ -38,6 +38,13 @@ namespace JsonGeneratorTests
|
||||
outputMustBe("{\"key1\":\"value1\",\"key2\":\"value2\"}");
|
||||
}
|
||||
|
||||
TEST_METHOD(ReplaceExistingKey)
|
||||
{
|
||||
add("key", "value1");
|
||||
add("key", "value2");
|
||||
outputMustBe("{\"key\":\"value2\"}");
|
||||
}
|
||||
|
||||
TEST_METHOD(OneStringOverCapacity)
|
||||
{
|
||||
add("key1", "value1");
|
||||
|
||||
Reference in new issue
Block a user