Formatting.
Monk also supports first-class functions git-svn-id: https://svn.tlawal.org/svn/monkey@55 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
This commit is contained in:
parent
cdf36e8211
commit
05d2c32b38
@ -220,7 +220,7 @@ func TestFunctionApplication(l_test *testing.T) {
|
||||
{"let add = fn(x, y) { x + y; }; add(5 + 5, add(5, 5));", 20},
|
||||
{"fn(x) { x; }(5)", 5},
|
||||
}
|
||||
|
||||
|
||||
for _, tt := range tests {
|
||||
test_integer_object(l_test, test_eval(tt.input), tt.expected)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user