From 58f9dd5eb414e0ba609a21b240490090e56c232e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 17 Jul 2015 20:19:40 -0400 Subject: [PATCH] Test: Corrected decimal commify tests --- test/text.t.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/text.t.cpp b/test/text.t.cpp index 8138978b2..6a82c7abe 100644 --- a/test/text.t.cpp +++ b/test/text.t.cpp @@ -270,16 +270,16 @@ int main (int argc, char** argv) t.is (commify ("12345678"), "12,345,678", "commify '12345678' -> '12,345,678'"); t.is (commify ("123456789"), "123,456,789", "commify '123456789' -> '123,456,789'"); t.is (commify ("1234567890"), "1,234,567,890", "commify '1234567890' -> '1,234,567,890'"); - t.is (commify ("1.0"), "1", "commify '1' -> '1'"); - t.is (commify ("12.0"), "12", "commify '12' -> '12'"); - t.is (commify ("123.0"), "123", "commify '123' -> '123'"); - t.is (commify ("1234.0"), "1,234", "commify '1234' -> '1,234'"); - t.is (commify ("12345.0"), "12,345", "commify '12345' -> '12,345'"); - t.is (commify ("123456.0"), "123,456", "commify '123456' -> '123,456'"); - t.is (commify ("1234567.0"), "1,234,567", "commify '1234567' -> '1,234,567'"); - t.is (commify ("12345678.0"), "12,345,678", "commify '12345678' -> '12,345,678'"); - t.is (commify ("123456789.0"), "123,456,789", "commify '123456789' -> '123,456,789'"); - t.is (commify ("1234567890.0"), "1,234,567,890", "commify '1234567890' -> '1,234,567,890'"); + t.is (commify ("1.0"), "1.0", "commify '1.0' -> '1.0'"); + t.is (commify ("12.0"), "12.0", "commify '12.0' -> '12.0'"); + t.is (commify ("123.0"), "123.0", "commify '123.0' -> '123.0'"); + t.is (commify ("1234.0"), "1,234.0", "commify '1234.0' -> '1,234.0'"); + t.is (commify ("12345.0"), "12,345.0", "commify '12345.0' -> '12,345.0'"); + t.is (commify ("123456.0"), "123,456.0", "commify '123456.0' -> '123,456.0'"); + t.is (commify ("1234567.0"), "1,234,567.0", "commify '1234567.0' -> '1,234,567.0'"); + t.is (commify ("12345678.0"), "12,345,678.0", "commify '12345678.0' -> '12,345,678.0'"); + t.is (commify ("123456789.0"), "123,456,789.0", "commify '123456789.0' -> '123,456,789.0'"); + t.is (commify ("1234567890.0"), "1,234,567,890.0", "commify '1234567890.0' -> '1,234,567,890.0'"); t.is (commify ("pre"), "pre", "commify 'pre' -> 'pre'"); t.is (commify ("pre1234"), "pre1,234", "commify 'pre1234' -> 'pre1,234'"); t.is (commify ("1234post"), "1,234post", "commify '1234post' -> '1,234post'");