Removed default template value for DIGITS, because Arduino 1.0.5 refused it

This commit is contained in:
Benoît Blanchon
2014-07-07 13:59:31 +02:00
parent b3613f7137
commit 99521cc718
6 changed files with 35 additions and 19 deletions

View File

@ -49,12 +49,18 @@ namespace JsonGeneratorTests
jsonIs("{\"key\":1}");
}
TEST_METHOD(OneDouble)
TEST_METHOD(OneDoubleFourDigits)
{
addValue<4>("key", 3.14159265358979323846);
jsonIs("{\"key\":3.1416}");
}
TEST_METHOD(OneDoubleDefaultDigits)
{
addValue("key", 3.14159265358979323846);
jsonIs("{\"key\":3.14}");
}
TEST_METHOD(OneNull)
{
addValue("key", (char*) 0);