mirror of
https://github.com/hi-language/transpiler.git
synced 2026-01-14 08:38:37 +00:00
Refactor: Move block tests into test directory
This commit is contained in:
13
test/blocks.hi
Normal file
13
test/blocks.hi
Normal file
@@ -0,0 +1,13 @@
|
||||
// Test: Block as a data structure (object)
|
||||
config: {
|
||||
version: "1.0"
|
||||
author: "Master"
|
||||
}
|
||||
_("Config version:", config.version)
|
||||
|
||||
// Test: Block as an executable function (with params and implicit return)
|
||||
add: (a, b) {
|
||||
a + b
|
||||
}
|
||||
result: add(5, 10)
|
||||
_("Function result:", result)
|
||||
Reference in New Issue
Block a user