Added a test that stores an integer in a JsonValue

This commit is contained in:
Benoît Blanchon
2014-07-02 13:06:38 +02:00
parent 937837848c
commit 61e53a505d
2 changed files with 19 additions and 1 deletions

View File

@ -83,6 +83,20 @@ namespace JsonGeneratorTests
assertResultIs("3.14");
}
TEST_METHOD(Integer)
{
write(314);
assertReturns(3);
assertResultIs("314");
}
TEST_METHOD(Short)
{
write((short)314);
assertReturns(3);
assertResultIs("314");
}
TEST_METHOD(Long)
{
write(314L);