]> pd.if.org Git - lice/blob - tests/int.c
autocommit for files dated 2014-11-17 20:13:36
[lice] / tests / int.c
1 // integers
2
3 int main(void) {
4     short     a = 100;
5     short int b = 150;
6     long      c = 2048;
7     long int  d = 4096;
8     int       e = 214748364;
9
10     expects(a + b,   250);
11     expects(a + 100, 200);
12
13     expectl(c,     2048);
14     expectl(d * 2, 8192);
15     expectl(100L,  100L);
16
17     expectl(922337203685477807,     922337203685477807);
18     expectl(922337203685477806 + 1, 922337203685477807);
19
20     expecti(e, 214748364);
21
22     return 0;
23 }