source:
git/dyn_modules/bigintm/bigintm.tst
@
636c28
Last change on this file since 636c28 was 636c28, checked in by , 13 years ago | |
---|---|
|
|
File size: 879 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_g.sog"); |
15 | } |
16 | |
17 | printBlackboxTypes(); |
18 | bigintm_setup(); |
19 | printBlackboxTypes(); |
20 | bigintm_setup(); |
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 | a(); |
48 | |
49 | typeof(_); |
50 | |
51 | |
52 | a(b); |
53 | |
54 | typeof(_); |
55 | |
56 | |
57 | def s = "sssss"; |
58 | typeof(s); |
59 | |
60 | a(s); |
61 | |
62 | |
63 | a("bbbbbb"); |
64 | |
65 | |
66 | |
67 | def i = 6; |
68 | typeof(i); |
69 | |
70 | a(i); |
71 | |
72 | |
73 | a(6); |
74 | |
75 | |
76 | b(2); |
77 | |
78 | |
79 | bigintm c = 666; |
80 | |
81 | |
82 | a==a; // BUG? |
83 | a==b; // BUG? |
84 | a==c; // BUG? |
85 | |
86 | c == 666; |
87 | |
88 | c == -666; |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | c.s; |
98 | c.sss; |
99 | c."a"; |
100 | |
101 | |
102 | |
103 | option(yacc); |
104 | c - s; |
105 | c == s; // BUG? |
106 | option(noyacc); |
107 | |
108 | |
109 | |
110 | c.0; // BUG? |
111 | option(yacc); |
112 | c.1; // BUG? |
113 | c. ; // BUG? |
114 | option(noyacc); |
115 | |
116 | |
117 | $$$ |
118 |
Note: See TracBrowser
for help on using the repository browser.