source:
git/dyn_modules/bigintm/bigintm.tst
@
b5d6f0
Last change on this file since b5d6f0 was b5d6f0, checked in by , 10 years ago | |
---|---|
|
|
File size: 958 bytes |
Line | |
---|---|
1 | echo = 2; |
2 | |
3 | "ndebug?: ", system("with", "ndebug"); |
4 | "om_ndebug?: ", system("with", "om_ndebug"); |
5 | |
6 | if( system("with", "ndebug") ) |
7 | { |
8 | "Loading the Release version!"; |
9 | LIB("bigintm.so"); |
10 | } |
11 | else |
12 | { |
13 | "Loading the Debug version!"; |
14 | LIB("bigintm.so"); |
15 | } |
16 | |
17 | printBlackboxTypes(); |
18 | bigintm_setup(); |
19 | printBlackboxTypes(); |
20 | bigintm_setup(); // error is expected!!! |
21 | printBlackboxTypes(); |
22 | |
23 | |
24 | bigintm a = 666; |
25 | bigintm b = -666; |
26 | |
27 | |
28 | typeof(a); // TODO! |
29 | a; |
30 | |
31 | |
32 | typeof(b); // TODO! |
33 | b; |
34 | |
35 | a + b; |
36 | |
37 | typeof(_); |
38 | |
39 | a - b; |
40 | |
41 | |
42 | |
43 | a * b; |
44 | |
45 | typeof(_); |
46 | |
47 | $ // the rest is more for checking the Singular interpreter! |
48 | |
49 | a(); |
50 | |
51 | typeof(_); |
52 | |
53 | |
54 | a(b); |
55 | |
56 | typeof(_); |
57 | |
58 | |
59 | def s = "sssss"; |
60 | typeof(s); |
61 | |
62 | a(s); |
63 | |
64 | |
65 | a("bbbbbb"); |
66 | |
67 | |
68 | |
69 | def i = 6; |
70 | typeof(i); |
71 | |
72 | a(i); |
73 | |
74 | |
75 | a(6); |
76 | |
77 | |
78 | b(2); |
79 | |
80 | |
81 | bigintm c = 666; |
82 | |
83 | |
84 | a==a; // BUG? |
85 | a==b; // BUG? |
86 | a==c; // BUG? |
87 | |
88 | c == 666; |
89 | |
90 | c == -666; |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | |
98 | |
99 | c.s; |
100 | c.sss; |
101 | c."a"; |
102 | |
103 | |
104 | |
105 | option(yacc); |
106 | c - s; |
107 | c == s; // BUG? |
108 | option(noyacc); |
109 | |
110 | |
111 | |
112 | c.0; // BUG? |
113 | option(yacc); |
114 | c.1; // BUG? |
115 | c. ; // BUG? |
116 | option(noyacc); |
117 | |
118 | |
119 | $$$ |
120 |
Note: See TracBrowser
for help on using the repository browser.