From a0a82c0f4eec4479aed22b8f1ea63c74e4e9359d Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Thu, 16 Oct 2014 21:43:44 +0200 Subject: [PATCH] Renamed file --- ...r_Tests.cpp => JsonParser_Array_Tests.cpp} | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) rename test/{JsonArray_Parser_Tests.cpp => JsonParser_Array_Tests.cpp} (80%) diff --git a/test/JsonArray_Parser_Tests.cpp b/test/JsonParser_Array_Tests.cpp similarity index 80% rename from test/JsonArray_Parser_Tests.cpp rename to test/JsonParser_Array_Tests.cpp index 0b45ab8c..4cc44fe7 100644 --- a/test/JsonArray_Parser_Tests.cpp +++ b/test/JsonParser_Array_Tests.cpp @@ -2,7 +2,7 @@ #include #include -class JsonArray_Parser_Tests : public testing::Test +class JsonParser_Array_Tests : public testing::Test { protected: void whenInputIs(const char *json) @@ -55,7 +55,7 @@ protected: char _jsonString[256]; }; -TEST_F(JsonArray_Parser_Tests, EmptyArray) +TEST_F(JsonParser_Array_Tests, EmptyArray) { whenInputIs("[]"); @@ -63,14 +63,14 @@ TEST_F(JsonArray_Parser_Tests, EmptyArray) sizeMustBe(0); } -TEST_F(JsonArray_Parser_Tests, ArrayWithNoEnd) +TEST_F(JsonParser_Array_Tests, ArrayWithNoEnd) { whenInputIs("["); parseMustFail(); } -TEST_F(JsonArray_Parser_Tests, EmptyArrayWithLeadingSpaces) +TEST_F(JsonParser_Array_Tests, EmptyArrayWithLeadingSpaces) { whenInputIs(" []"); @@ -78,14 +78,14 @@ TEST_F(JsonArray_Parser_Tests, EmptyArrayWithLeadingSpaces) sizeMustBe(0); } -TEST_F(JsonArray_Parser_Tests, Garbage) +TEST_F(JsonParser_Array_Tests, Garbage) { whenInputIs("%*$£¤"); parseMustFail(); } -TEST_F(JsonArray_Parser_Tests, OneInteger) +TEST_F(JsonParser_Array_Tests, OneInteger) { whenInputIs("[42]"); @@ -94,7 +94,7 @@ TEST_F(JsonArray_Parser_Tests, OneInteger) firstElementMustBe(42); } -TEST_F(JsonArray_Parser_Tests, OneIntegerWithSpacesBefore) +TEST_F(JsonParser_Array_Tests, OneIntegerWithSpacesBefore) { whenInputIs("[ \t\r\n42]"); @@ -103,7 +103,7 @@ TEST_F(JsonArray_Parser_Tests, OneIntegerWithSpacesBefore) firstElementMustBe(42); } -TEST_F(JsonArray_Parser_Tests, OneIntegerWithSpaceAfter) +TEST_F(JsonParser_Array_Tests, OneIntegerWithSpaceAfter) { whenInputIs("[42 \t\r\n]"); @@ -112,7 +112,7 @@ TEST_F(JsonArray_Parser_Tests, OneIntegerWithSpaceAfter) firstElementMustBe(42); } -TEST_F(JsonArray_Parser_Tests, TwoIntegers) +TEST_F(JsonParser_Array_Tests, TwoIntegers) { whenInputIs("[42,84]"); @@ -122,7 +122,7 @@ TEST_F(JsonArray_Parser_Tests, TwoIntegers) secondElementMustBe(84); } -TEST_F(JsonArray_Parser_Tests, TwoDoubles) +TEST_F(JsonParser_Array_Tests, TwoDoubles) { whenInputIs("[4.2,8.4]"); @@ -132,7 +132,7 @@ TEST_F(JsonArray_Parser_Tests, TwoDoubles) secondElementMustBe(8.4); } -TEST_F(JsonArray_Parser_Tests, TwoBooleans) +TEST_F(JsonParser_Array_Tests, TwoBooleans) { whenInputIs("[true,false]"); @@ -142,7 +142,7 @@ TEST_F(JsonArray_Parser_Tests, TwoBooleans) secondElementMustBe(false); } -TEST_F(JsonArray_Parser_Tests, TwoNulls) +TEST_F(JsonParser_Array_Tests, TwoNulls) { const char* const nullCharPtr = 0; @@ -154,7 +154,7 @@ TEST_F(JsonArray_Parser_Tests, TwoNulls) secondElementMustBe(nullCharPtr); } -TEST_F(JsonArray_Parser_Tests, TwoStrings) +TEST_F(JsonParser_Array_Tests, TwoStrings) { whenInputIs("[\"hello\",\"world\"]");