mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-30 14:22:28 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@7563 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
55bde24c5d
commit
a53e24f364
1 changed files with 18 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue