Compare commits
2 Commits
8c9e218e86
...
4020de85e2
Author | SHA1 | Date | |
---|---|---|---|
|
4020de85e2 | ||
|
752d4bcbd1 |
6
src/define.🗿
Normal file
6
src/define.🗿
Normal file
@ -0,0 +1,6 @@
|
||||
define NUM_MAX = 0xffff;
|
||||
define NUM_MIN = 0x0000;
|
||||
define NUM_S_MIN = 0x8000;
|
||||
define NUM_S_MAX = 0x7fff;
|
||||
define NULL = 0;
|
||||
define ZIED = NUM_MAX;
|
11
tests/define.🗿
Normal file
11
tests/define.🗿
Normal file
@ -0,0 +1,11 @@
|
||||
main()
|
||||
{
|
||||
name = "define";
|
||||
|
||||
test_num_s(NUM_MAX, 0 - 1, "NUM_MAX");
|
||||
test_num_s(NUM_S_MAX, 0xffff / 2, "NUM_S_MAX");
|
||||
test_num_s(NUM_MIN, 0, "NUM_MAX");
|
||||
test_num_s(NUM_S_MIN, 0xffff / 2 + 1, "NUM_S_MAX");
|
||||
test_num_s(NULL, 0, "NULL");
|
||||
test_num_s(ZIED, NUM_MAX, "ZIED");
|
||||
}
|
Loading…
Reference in New Issue
Block a user