source: git/dyn_modules/bigintm/bigintm.tst @ 92e0eb

spielwiese
Last change on this file since 92e0eb was e6d9a32, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: bigintm as a module sample ADD: public blackbox_default_OpM ADD: more commands/ops From: Oleksandr Motsak <motsak@mathematik.uni-kl.de> git-svn-id: file:///usr/local/Singular/svn/trunk@13940 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 542 bytes
Line 
1echo = 2;
2
3LIB("./bigintm.so");
4
5printBlackboxTypes();
6
7bigintm_setup();
8
9printBlackboxTypes();
10
11bigintm_setup();
12
13printBlackboxTypes();
14
15
16bigintm a = 666;
17bigintm b = -666;
18
19
20typeof(a); // TODO!
21a;
22
23
24typeof(b); // TODO!
25b;
26
27a + b;
28
29typeof(_);
30
31a - b;
32
33
34
35a * b;
36
37typeof(_);
38
39a();
40
41typeof(_);
42
43
44a(b);
45
46typeof(_);
47
48
49def s = "sssss";
50typeof(s);
51
52a(s);
53
54
55a("bbbbbb");
56
57
58
59def i = 6;
60typeof(i);
61
62a(i);
63
64
65a(6);
66
67
68b(2);
69
70
71bigintm c = 666;
72
73
74a==a; // BUG?
75a==b; // BUG?
76a==c; // BUG?
77
78c == 666;
79
80c == -666;
81
82
83a - s;
84
85c == s;
86
87c.s;
88c.sss;
89c.0;
90
91
92
93$$$
94
Note: See TracBrowser for help on using the repository browser.