()
| 1 | package script |
| 2 | |
| 3 | func ExampleLuaOptions_default() { |
| 4 | runExampleWithOptions( |
| 5 | LuaOptions{}, |
| 6 | testScript(` |
| 7 | local base64 = require("base64") |
| 8 | |
| 9 | function request(ctx, params) |
| 10 | print(table.concat({"Hello", "World"}, " ")) |
| 11 | print(string.lower("Hello World")) |
| 12 | print(math.abs(-1)) |
| 13 | print(base64.encode("Hello World")) |
| 14 | end |
| 15 | `), |
| 16 | ) |
| 17 | // Output: |
| 18 | // Hello World |
| 19 | // hello world |
| 20 | // 1 |
| 21 | // SGVsbG8gV29ybGQ= |
| 22 | } |
| 23 | |
| 24 | const printTable = ` |
| 25 | function printTable(p, t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…