mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-19 05:22:24 +02:00
Created a failing test
This commit is contained in:
@ -38,6 +38,13 @@ namespace JsonGeneratorTests
|
|||||||
outputMustBe("{\"key1\":\"value1\",\"key2\":\"value2\"}");
|
outputMustBe("{\"key1\":\"value1\",\"key2\":\"value2\"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_METHOD(ReplaceExistingKey)
|
||||||
|
{
|
||||||
|
add("key", "value1");
|
||||||
|
add("key", "value2");
|
||||||
|
outputMustBe("{\"key\":\"value2\"}");
|
||||||
|
}
|
||||||
|
|
||||||
TEST_METHOD(OneStringOverCapacity)
|
TEST_METHOD(OneStringOverCapacity)
|
||||||
{
|
{
|
||||||
add("key1", "value1");
|
add("key1", "value1");
|
||||||
|
Reference in New Issue
Block a user