Small refactoring of the tests

This commit is contained in:
Benoît Blanchon committed 2014-06-27 13:09:52 +02:00
1 parent ff4060f5d1
commit 4f4b35bd41
2 files changed
+48 -42

No files matched your search

+3 -3
View File
@@ -13,13 +13,13 @@ namespace JsonGeneratorTests
TEST_METHOD(Empty)
{
assertJsonIs("{}");
jsonIs("{}");
}
TEST_METHOD(OneString)
{
add("key", "value");
assertJsonIs("{\"key\":\"value\"}");
jsonIs("{\"key\":\"value\"}");
}
private:
@@ -30,7 +30,7 @@ namespace JsonGeneratorTests
hash.add(key, value);
}
void assertJsonIs(const char* expected)
void jsonIs(const char* expected)
{
char buffer[256];