source: tests/.expect/rational.txt @ 7a15b7e

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since 7a15b7e was d30804a, checked in by Peter A. Buhr <pabuhr@…>, 3 years ago

augment rational test and expected output after rational changes

  • Property mode set to 100644
File size: 603 bytes
Line 
1constructor
2a : 3/1 b : 4/1 c : 0/1 d : 0/1 e : 1/1
3a : 1/2 b : 5/7
4a : 2/3 b : -3/2
5a : -2/3 b : 3/2
6
7comparison
8a : -2/1 b : -3/2
9a == 0 : 0
10a == 1 : 0
11a != 0 : 1
12! a : 0
13a != b : 1
14a <  b : 1
15a <=  b : 1
16a >  b : 0
17a >=  b : 0
18
19arithmetic
20a : -2/1 b : -3/2
21a + b : -7/2
22a += b : -7/2
23++a : -5/2
24a++ : -5/2
25a : -3/2
26a - b : 0/1
27a -= b : 0/1
28--a : -1/1
29a-- : -1/1
30a : -2/1
31a * b : 3/1
32a / b : 4/3
33a \ 2 : 4/1 b \ 2 : 9/4
34a \ -2 : 1/4 b \ -2 : 4/9
35
36conversion
370.75
380.142857142857143
393.14159292035398
403/4
411/7
42355/113
43
44more tests
45-3/2
460
471/2 1 1/2
482/1 1 2/1
490/1
501/2 1 1/2
512/2147483647
525/2147483647
532/3 4/5
Note: See TracBrowser for help on using the repository browser.