source: git/Tst/dyn_modules/bigintm.tst @ 9e24ef

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