source:
git/dyn_modules/bigintm/bigintm.tst
@
e6d9a32
Last change on this file since e6d9a32 was e6d9a32, checked in by , 12 years ago | |
---|---|
|
|
File size: 542 bytes |
Line | |
---|---|
1 | echo = 2; |
2 | |
3 | LIB("./bigintm.so"); |
4 | |
5 | printBlackboxTypes(); |
6 | |
7 | bigintm_setup(); |
8 | |
9 | printBlackboxTypes(); |
10 | |
11 | bigintm_setup(); |
12 | |
13 | printBlackboxTypes(); |
14 | |
15 | |
16 | bigintm a = 666; |
17 | bigintm b = -666; |
18 | |
19 | |
20 | typeof(a); // TODO! |
21 | a; |
22 | |
23 | |
24 | typeof(b); // TODO! |
25 | b; |
26 | |
27 | a + b; |
28 | |
29 | typeof(_); |
30 | |
31 | a - b; |
32 | |
33 | |
34 | |
35 | a * b; |
36 | |
37 | typeof(_); |
38 | |
39 | a(); |
40 | |
41 | typeof(_); |
42 | |
43 | |
44 | a(b); |
45 | |
46 | typeof(_); |
47 | |
48 | |
49 | def s = "sssss"; |
50 | typeof(s); |
51 | |
52 | a(s); |
53 | |
54 | |
55 | a("bbbbbb"); |
56 | |
57 | |
58 | |
59 | def i = 6; |
60 | typeof(i); |
61 | |
62 | a(i); |
63 | |
64 | |
65 | a(6); |
66 | |
67 | |
68 | b(2); |
69 | |
70 | |
71 | bigintm c = 666; |
72 | |
73 | |
74 | a==a; // BUG? |
75 | a==b; // BUG? |
76 | a==c; // BUG? |
77 | |
78 | c == 666; |
79 | |
80 | c == -666; |
81 | |
82 | |
83 | a - s; |
84 | |
85 | c == s; |
86 | |
87 | c.s; |
88 | c.sss; |
89 | c.0; |
90 | |
91 | |
92 | |
93 | $$$ |
94 |
Note: See TracBrowser
for help on using the repository browser.