comparison truffle/com.oracle.truffle.sl.test/src/tests/DefineFunction.sl @ 22201:df6a1647cfb3

Move .sl testcases/outputs (resources) into projects src directory
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Tue, 29 Sep 2015 15:01:34 +0200
parents truffle/com.oracle.truffle.sl.test/tests/DefineFunction.sl@9c8c0937da41
children
comparison
equal deleted inserted replaced
22200:7abcbeb12d08 22201:df6a1647cfb3
1 function foo() {
2 println(test(40, 2));
3 }
4
5 function main() {
6 defineFunction("function test(a, b) { return a + b; }");
7 foo();
8
9 defineFunction("function test(a, b) { return a - b; }");
10 foo();
11 }