blob: 050bf18caa6cb761680b5937e057b99cd6677bc5 (
plain) (
blame)
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
|
/* Debug test for arrow functions */
// Test 1: Regular arrow function assignment
add_func : x y -> x + y;
// Test 2: Arrow function in table
calculator : {
add: x y -> x + y
};
// Test 3: Just the table creation
table_only : {
name: "test",
add: x y -> x + y
};
// Output tests
..out "=== DEBUG ARROW FUNCTIONS ===";
..out "Regular function:";
result1 : add_func 5 3;
..out result1;
..out "Table function:";
result2 : calculator.add 5 3;
..out result2;
|