Added a test that stores an integer in a JsonValue

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

No files matched your search

+5 -1
View File
@@ -15,7 +15,7 @@ public:
JsonValue()
{
}
JsonValue(bool value)
: implementation(&JsonValue::printBoolTo)
{
@@ -34,6 +34,10 @@ public:
content.asLong = value;
}
JsonValue(int value) : JsonValue((long) value)
{
}
JsonValue(Printable& value)
: implementation(&JsonValue::printPrintableTo)
{