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

@ -55,7 +55,13 @@ namespace JsonGeneratorTests
jsonIs("[\"hello\",\"world\"]");
}
TEST_METHOD(OneDouble)
TEST_METHOD(OneDoubleDefaultDigits)
{
addValue(3.14159265358979323846);
jsonIs("[3.14]");
}
TEST_METHOD(OneDoubleFourDigits)
{
addValue<4>(3.14159265358979323846);
jsonIs("[3.1416]");