.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@7563 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-08-05 17:20:19 +00:00
parent 55bde24c5d
commit a53e24f364

View file

@ -84,4 +84,22 @@ CONSOLE_APP_MAIN
Test(d, "1.1E-10", 1.1E-10);
Test(d, "+1.1E-10", 1.1E-10);
Test(d, "-1.1E-10", -1.1E-10);
ConvertInt x;
Test(x, "12-12", ErrorValue());
Test(x, "12+12", ErrorValue());
Test(x, "12.-12", ErrorValue());
Test(x, "12.+12", ErrorValue());
Test(x, "a", ErrorValue());
Test(x, " ", ErrorValue());
ConvertInt64 xx;
Test(xx, "12-12", ErrorValue());
Test(xx, "12+12", ErrorValue());
Test(xx, "12.-12", ErrorValue());
Test(xx, "12.+12", ErrorValue());
Test(xx, "a", ErrorValue());
Test(xx, " ", ErrorValue());
ASSERT(StrDbl("123xxx") == 123);
}