about summary refs log tree commit diff stats
path: root/subx/040---tests.cc
Commit message (Collapse)AuthorAgeFilesLines
* 4713Kartik Agaram2018-10-211-1/+8
| | | | | | | | Initial sketch of a dependency-injected wrapper around the exit() syscall. I don't have the primitives yet, just a sketch of how they should work -- and a passing test for non-local jumps without support for passing the exit status to the caller.
* 4667Kartik Agaram2018-10-051-6/+6
| | | | | Standardize on hyphens in all names. And we'll use colons for namespacing labels in functions.
* 4502 - support string literals directly in codeKartik Agaram2018-09-221-23/+5
| | | | | | | | | | Doesn't de-duplicate in the data segment, though. If you use the literal "foo" a hundred times in your code segment you're gonna spend a hundred times the space you need to. We can now simplify our test harness a bit in the factorial app, but we still have to put in commandline args to compare with manually. We only support length-prefixed strings, not null-terminated ones.
* 4567 - support automated tests in SubXKartik Agaram2018-09-211-0/+104
All it takes is to code-generate a simple function called 'run_tests' that calls all functions starting with 'test_' one by one. I've temporarily switched the factorial app to run as a test. But that's temporary, because all the code to print '.' vs 'F' needs to get extracted out into a helper.
improve line information for '!=' etc. templates' href='/ahoang/Nim/commit/compiler/evaltempl.nim?h=devel&id=5659a1662e755baac1de555e33f2e8c13e30f2e2'>5659a1662 ^
af7c92c00 ^
02f97489b ^





d68181246 ^
5e15dec17 ^



b9079b871 ^
02f97489b ^
f838c1baa ^

02f97489b ^
5e15dec17 ^
438703f59 ^
92b8fac94 ^
5e15dec17 ^


92b8fac94 ^
5659a1662 ^
5e15dec17 ^
5659a1662 ^
5e15dec17 ^
5659a1662 ^
5e15dec17 ^
5659a1662 ^
d58212ccc ^
af7c92c00 ^


6d76df845 ^
5e15dec17 ^

02f97489b ^
221006096 ^
02f97489b ^


ae60f4ae7 ^
fe124cead ^






6d76df845 ^
fe124cead ^
02f97489b ^

1d44fee39 ^
1be0022e7 ^
02f97489b ^

d68181246 ^
1be0022e7 ^



6fd4b8350 ^
02f97489b ^






221006096 ^
92b8fac94 ^
0df8fa1dd ^

02f97489b ^
d68181246 ^
02f97489b ^


5e15dec17 ^



91935fd91 ^



3e5e18bc5 ^
91935fd91 ^











91935fd91 ^
6d76df845 ^
5e15dec17 ^

92b8fac94 ^
5e15dec17 ^


6d76df845 ^
5e15dec17 ^



d58212ccc ^
af7c92c00 ^
d58212ccc ^
af7c92c00 ^



fe30ec83e ^
af7c92c00 ^


ae60f4ae7 ^


af7c92c00 ^

91935fd91 ^
5e15dec17 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159