mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 20:12:16 +02:00
Added newline at ed of file
This commit is contained in:
@ -132,4 +132,4 @@ TEST_F(JsonArray_Container_Tests, CanCreateNestedObjects) {
|
||||
firstElementMustBe(innerObject1);
|
||||
secondElementMustBe(innerObject2);
|
||||
nodeCountMustBe(3);
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ TEST(JsonArray_Iterator_Test, SimpleTest) {
|
||||
EXPECT_EQ(34, (*it).as<int>()); // TODO: use ->
|
||||
++it;
|
||||
EXPECT_EQ(array.end(), it);
|
||||
}
|
||||
}
|
||||
|
@ -80,4 +80,4 @@ TEST_F(JsonArray_PrettyPrintTo_Tests, NestedArrays) {
|
||||
" \"key\": 3\r\n"
|
||||
" }\r\n"
|
||||
"]");
|
||||
}
|
||||
}
|
||||
|
@ -125,4 +125,4 @@ TEST_F(JsonArray_PrintTo_Tests, OneEmptyNestedHash) {
|
||||
array.createNestedObject();
|
||||
|
||||
outputMustBe("[{}]");
|
||||
}
|
||||
}
|
||||
|
@ -111,4 +111,4 @@ TEST_F(JsonObject_Container_Tests, CanStoreInnerObjects) {
|
||||
|
||||
EXPECT_EQ(innerObject1, (JsonObject)object["hello"]);
|
||||
EXPECT_EQ(innerObject2, (JsonObject)object["world"]);
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ TEST(JsonObject_Iterator_Test, SimpleTest) {
|
||||
EXPECT_EQ(34, it->value().as<int>());
|
||||
++it;
|
||||
EXPECT_EQ(object.end(), it);
|
||||
}
|
||||
}
|
||||
|
@ -77,4 +77,4 @@ TEST_F(JsonObject_PrettyPrintTo_Tests, NestedContainers) {
|
||||
" 2\r\n"
|
||||
" ]\r\n"
|
||||
"}");
|
||||
}
|
||||
}
|
||||
|
@ -138,4 +138,4 @@ TEST_F(JsonObject_Serialization_Tests, OneEmptyNestedArray) {
|
||||
object.createNestedArray("key");
|
||||
|
||||
outputMustBe("{\"key\":[]}");
|
||||
}
|
||||
}
|
||||
|
@ -145,4 +145,4 @@ TEST_F(JsonParser_Array_Tests, TwoStrings) {
|
||||
sizeMustBe(2);
|
||||
firstElementMustBe("hello");
|
||||
secondElementMustBe("world");
|
||||
}
|
||||
}
|
||||
|
@ -53,4 +53,4 @@ TEST(JsonParser_Nested_Tests, ObjectNestedInArray) {
|
||||
EXPECT_EQ(2, object1["b"].as<int>());
|
||||
EXPECT_EQ(3, object2["c"].as<int>());
|
||||
EXPECT_EQ(4, object2["d"].as<int>());
|
||||
}
|
||||
}
|
||||
|
@ -171,4 +171,4 @@ TEST_F(JsonParser_Object_Test, TwoNulls) {
|
||||
TEST_F(JsonParser_Object_Test, NullForKey) {
|
||||
whenInputIs("null:\"value\"}");
|
||||
parseMustFail();
|
||||
}
|
||||
}
|
||||
|
@ -108,4 +108,4 @@ TEST_F(JsonValueTests, ArraysAreCopiedByReference) {
|
||||
array.add("world");
|
||||
|
||||
EXPECT_EQ(1, ((JsonObject)jsonValue1).size());
|
||||
}
|
||||
}
|
||||
|
@ -127,4 +127,4 @@ TEST_F(QuotedString_ExtractFrom_Tests, EscapedTab) {
|
||||
TEST_F(QuotedString_ExtractFrom_Tests, AllEscapedCharsTogether) {
|
||||
whenInputIs("\"1\\\"2\\\\3\\/4\\b5\\f6\\n7\\r8\\t9\"");
|
||||
resultMustBe("1\"2\\3/4\b5\f6\n7\r8\t9");
|
||||
}
|
||||
}
|
||||
|
@ -76,4 +76,4 @@ TEST_F(QuotedString_PrintTo_Tests, CarriageReturn) {
|
||||
TEST_F(QuotedString_PrintTo_Tests, HorizontalTab) {
|
||||
whenInputIs("\t");
|
||||
outputMustBe("\"\\t\"");
|
||||
}
|
||||
}
|
||||
|
@ -72,4 +72,4 @@ TEST(
|
||||
|
||||
obj["hello"];
|
||||
EXPECT_EQ(3, json.size());
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ TEST_F(StringBuilderTests, TwoStrings) {
|
||||
resultMustBe(4);
|
||||
|
||||
outputMustBe("ABCDEFGH");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user