]> git.tdb.fi Git - libs/core.git/commitdiff
Add missing terminator entries to some test data arrays
authorMikko Rasa <tdb@tdb.fi>
Wed, 24 Apr 2013 13:40:27 +0000 (16:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 24 Apr 2013 13:40:27 +0000 (16:40 +0300)
tests/lexicalcast.cpp

index 2a4a7877aa87fc53b5a718c429c47a09b8e4205c..37439fc8d105d9b96b815615e086121ac8fc1333 100644 (file)
@@ -99,6 +99,7 @@ void LexicalCastTests::oct_integers()
                { 012345, "%#08o", "00012345" },
                { 012345, "%+#o", "+012345" },
                { -012345, "%#o", "-012345" },
+               { 0, 0, 0 }
        };
        test_values<int>(values);
 }
@@ -114,6 +115,7 @@ void LexicalCastTests::bin_integers()
                { 0xcf3, "%#016b", "0b00110011110011" },
                { 0xcf3, "%+#b", "+0b110011110011" },
                { -0xcf3, "%#b", "-0b110011110011" },
+               { 0, 0, 0 }
        };
        test_values<int>(values);
 }