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:
Tijani Lawal 2022-08-26 19:01:31 +00:00
parent cdf36e8211
commit 05d2c32b38

View File

@ -220,7 +220,7 @@ func TestFunctionApplication(l_test *testing.T) {
{"let add = fn(x, y) { x + y; }; add(5 + 5, add(5, 5));", 20}, {"let add = fn(x, y) { x + y; }; add(5 + 5, add(5, 5));", 20},
{"fn(x) { x; }(5)", 5}, {"fn(x) { x; }(5)", 5},
} }
for _, tt := range tests { for _, tt := range tests {
test_integer_object(l_test, test_eval(tt.input), tt.expected) test_integer_object(l_test, test_eval(tt.input), tt.expected)
} }