source: git/dyn_modules/bigintm/bigintm.tst @ 636c28

spielwiese
Last change on this file since 636c28 was 636c28, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: "scons debug=1" for debug version UPD: updated bigintm to support correct (debug/release) version FIX: some minor warnings (thanks to debug version) From: Oleksandr Motsak <motsak@mathematik.uni-kl.de> git-svn-id: file:///usr/local/Singular/svn/trunk@14066 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 879 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_g.sog");
15}
16
17printBlackboxTypes();
18bigintm_setup();
19printBlackboxTypes();
20bigintm_setup();
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
47a();
48
49typeof(_);
50
51
52a(b);
53
54typeof(_);
55
56
57def s = "sssss";
58typeof(s);
59
60a(s);
61
62
63a("bbbbbb");
64
65
66
67def i = 6;
68typeof(i);
69
70a(i);
71
72
73a(6);
74
75
76b(2);
77
78
79bigintm c = 666;
80
81
82a==a; // BUG?
83a==b; // BUG?
84a==c; // BUG?
85
86c == 666;
87
88c == -666;
89
90
91
92
93
94
95
96
97c.s;
98c.sss;
99c."a";
100
101
102
103option(yacc);
104c - s;
105c == s; // BUG?
106option(noyacc);
107
108
109
110c.0; // BUG?
111option(yacc);
112c.1; // BUG?
113c. ; // BUG?
114option(noyacc);
115
116
117$$$
118
Note: See TracBrowser for help on using the repository browser.