mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@10476 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2b49ff8faf
commit
f4434806bc
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,12 @@ CONSOLE_APP_MAIN
|
|||
{
|
||||
StdLogSetup(LOG_COUT|LOG_FILE);
|
||||
|
||||
int n = -1;
|
||||
ASSERT(abs(n) == 1);
|
||||
|
||||
ASSERT(abs(0) == 0);
|
||||
ASSERT(abs(1) == 1);
|
||||
ASSERT(abs(-1) == 1);
|
||||
ASSERT(abs(-0x40000000) == 0x40000000);
|
||||
ASSERT(abs((int16)-0x4000) == 0x4000);
|
||||
ASSERT(abs((int64)-0x400000000000) == 0x400000000000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue