Debian Codegraph @

terps/tads/tads3/test/log/opoverload.log

raw
1 Files to build: 5
2 symbol_export _main.t -> _main.t3s
3 symbol_export opoverload.t -> opoverload.t3s
4 compile _main.t -> _main.t3o
5 compile opoverload.t -> opoverload.t3o
6 link -> opoverload.t3
7
8 (T3VM) Memory blocks still in use:
9
10 Total blocks in use: 0
11 Baseline tests - integer values
12 a+b = 130
13 a-b = 116
14 a*b = 861
15 a/b = 17
16 a%b = 4
17 a&b = 3
18 a|b = 127
19 a^b = 124
20 a<<b = 15744
21 a>>b = 0
22 a>>>b = 0
23 ~a = -124
24 -a = -123
25
26 Operator overload tests - regular objects
27
28 a+1 = this is a + 1
29 a+b = this is a + b
30 a-1 = this is a - 1
31 a-b = this is a - b
32 a*b = this is a * b
33 a/b = this is a / b
34 a%b = this is a % b
35 a&b = this is a & b
36 a|b = this is a | b
37 a^b = this is a ^ b
38 a<<b = this is a << b
39 a>>b = this is a >> b
40 a>>>b = this is a >>> b
41 ~a = this is ~a
42 -a = this is -a
43 a[b] = this is a[b]
44 a.getSelf[b] = this is a[b]
45 a[19] = this is a[19]
46 {{in a[b] = hello}} a = updated a with [b] set to hello!
47 {{in a[7] = hello}} a[7]='hello': a = updated a with [7] set to hello!
48 a+=b: a=this is a + b
49 a+=1: a=this is a + 1
50 a+=7: a=this is a + 7
51 a+=12345: a=this is a + 12345
52 a-=b: a=this is a - b
53 a-=1: a=this is a - 1
54 a*=b: a=this is a * b
55 a/=b: a=this is a / b
56 a%=b: a=this is a % b
57 a|=b: a=this is a | b
58 a&=b: a=this is a & b
59 a^=b: a=this is a ^ b
60 a<<=b: a=this is a << b
61 a>>=b: a=this is a >> b
62 a>>>=b: a=this is a >>> b
63
64 Operator overload tests - String intrinsics
65 a[1] = 104, a[2]=101, a[3]=108
66 a = Hello-therE
67
68 '&' property name tests
69 (Thing)
70 a.propDefined(&operator +)? yes
71 a.propDefined(&operator -)? yes
72 a.propDefined(&operator *)? yes
73 a.propDefined(&operator [])? yes
74 a.propDefined(&operator []=)? yes
75 (String)
76 a.propDefined(&operator +)? no
77 a.propDefined(&operator -)? no
78 a.propDefined(&operator *)? no
79 a.propDefined(&operator [])? yes
80 a.propDefined(&operator []=)? yes
81 (Other)
82 ~a = 7
83 a.propDefined(&operator +)? yes
84 a.propDefined(&operator -)? yes
85 a.propDefined(&operator *)? no
86 a.propDefined(&operator [])? no
87 a.propDefined(&operator []=)? no
88
89 ReverseList tests
90 a+b = [1, 2, 3, 4, 5, 8, 700, 6, 500, 4, 300, 2, 100]
91 a-b = [1, 3, 5]
92 a.intersect(b) = [2, 4]
93 a.appendUnique(b) = [1, 2, 3, 4, 5, 8, 700, 6, 500, 300, 100]
94
95 ...with Vectors
96 new Vector(b) = [8, 700, 6, 500, 4, 300, 2, 100]
97 a.appendAll(b) = [8, 700, 6, 500, 4, 300, 2, 100, 8, 700, 6, 500, 4, 300, 2,
98 100]
99 a.appendUnique(b) = [8, 700, 6, 500, 4, 300, 2, 100]
100
101 (T3VM) Memory blocks still in use:
102
103 Total blocks in use: 0