Generator: added a test of a float in an array

This commit is contained in:
Benoît Blanchon
2014-06-24 13:53:30 +02:00
parent aa8cff7101
commit 22ca52326c
2 changed files with 64 additions and 12 deletions

View File

@ -40,6 +40,13 @@ namespace JsonGeneratorTests
AssertJsonIs("['hello','world']");
}
TEST_METHOD(OneNumber)
{
arr.add(3.14);
AssertJsonIs("[3.14]");
}
void AssertJsonIs(const char* expected)
{
char buffer[256];