File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #include "lib/tst_framework.bas"
2+
3+ INIT( "Test logical XOR" )
4+
5+ DIM a as uByte = 5
6+ DIM b as UByte = 0
7+
8+ if a xor b then
9+ SHOW_OK: PRINT
10+ else SHOW_ERROR: PRINT
11+ END IF
12+
13+ if a xor a then
14+ SHOW_ERROR: PRINT
15+ ELSE SHOW_OK: PRINT
16+ END IF
17+
18+ DIM a0 as Uinteger = 5
19+ DIM b0 as UInteger = 0
20+
21+ if a0 xor b0 then
22+ SHOW_OK: PRINT
23+ else SHOW_ERROR: PRINT
24+ END IF
25+
26+ if a0 xor a0 then
27+ SHOW_ERROR: PRINT
28+ ELSE SHOW_OK: PRINT
29+ END IF
30+
31+ DIM a1 as ULONG = 5
32+ DIM b1 as ULONG = 0
33+
34+ if a1 xor b1 then
35+ SHOW_OK: PRINT
36+ else SHOW_ERROR: PRINT
37+ END IF
38+
39+ if a1 xor a1 then
40+ SHOW_ERROR: PRINT
41+ ELSE SHOW_OK: PRINT
42+ END IF
43+
44+ DIM a2 as Fixed = 5
45+ DIM b2 as Fixed = 0
46+
47+ if a2 xor b2 then
48+ SHOW_OK: PRINT
49+ else SHOW_ERROR: PRINT
50+ END IF
51+
52+ if a2 xor a2 then
53+ SHOW_ERROR: PRINT
54+ ELSE SHOW_OK: PRINT
55+ END IF
56+
57+ DIM a3 as Float = 5
58+ DIM b3 as Float = 0
59+
60+ if a3 xor b3 then
61+ SHOW_OK: PRINT
62+ else SHOW_ERROR: PRINT
63+ END IF
64+
65+ if a3 xor a3 then
66+ SHOW_ERROR: PRINT
67+ ELSE SHOW_OK: PRINT
68+ END IF
69+
70+ FINISH
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments