|
7 | 7 |
|
8 | 8 | debug.sethook(trace, "l") |
9 | 9 |
|
10 | | --- luzer._LUZER_VERSION |
11 | | -assert(type(luzer._LUZER_VERSION) == "string") |
12 | | -assert(type(luzer._LLVM_VERSION) == "string") |
13 | | -assert(type(luzer._LUA_VERSION) == "string") |
| 10 | +assert(type(luzer._internal.LUZER_VERSION) == "string") |
| 11 | +assert(type(luzer._internal.LLVM_VERSION) == "string") |
| 12 | +assert(type(luzer._internal.LUA_VERSION) == "string") |
14 | 13 |
|
15 | 14 | local ok |
16 | 15 | local err |
@@ -185,19 +184,19 @@ local function custom_mutator(data, size, max_size, seed) |
185 | 184 | return data |
186 | 185 | end |
187 | 186 |
|
188 | | --- luzer._set_custom_mutator() |
| 187 | +-- luzer._internal.set_custom_mutator() |
189 | 188 | assert(luzer_custom_mutator == nil) |
190 | | -luzer._set_custom_mutator(custom_mutator) |
| 189 | +luzer._internal.set_custom_mutator(custom_mutator) |
191 | 190 | assert(luzer_custom_mutator ~= nil) |
192 | 191 | assert(type(luzer_custom_mutator) == "function") |
193 | 192 | local buf = "data" |
194 | 193 | assert(luzer_custom_mutator(buf, #buf, #buf, math.random(1, 10)) == buf) |
195 | 194 | luzer_custom_mutator = nil -- Clean up. |
196 | 195 |
|
197 | | --- luzer._mutate() |
198 | | -luzer._set_custom_mutator(custom_mutator) |
| 196 | +-- luzer._internal.mutate() |
| 197 | +luzer._internal.set_custom_mutator(custom_mutator) |
199 | 198 | assert(luzer_custom_mutator ~= nil) |
200 | | --- luzer._mutate(buf, #buf, #buf, math.random(1, 10)) -- TODO |
| 199 | +-- luzer._internal.mutate(buf, #buf, #buf, math.random(1, 10)) -- TODO |
201 | 200 | luzer_custom_mutator = nil -- Clean up. |
202 | 201 |
|
203 | 202 | print("Success!") |
0 commit comments