From e682ed5a1e65c7aece3803ca5b0500f7e8395b75 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Sat, 20 Sep 2014 18:29:18 +0200 Subject: [PATCH] Added a test prooving issue #22 --- JsonGeneratorTests/JsonValue_PrintTo_Tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/JsonGeneratorTests/JsonValue_PrintTo_Tests.cpp b/JsonGeneratorTests/JsonValue_PrintTo_Tests.cpp index 19d62a29..f37c03c8 100644 --- a/JsonGeneratorTests/JsonValue_PrintTo_Tests.cpp +++ b/JsonGeneratorTests/JsonValue_PrintTo_Tests.cpp @@ -26,6 +26,12 @@ namespace JsonGeneratorTests outputMustBe("\"hello\""); } + TEST_METHOD(ZeroFloat) + { + setValueTo(0.0f); + outputMustBe("0.0"); + } + TEST_METHOD(Float) { setValueTo(3.1415f);