diff --git a/able-script-test/hello_world.able b/able-script-test/hello-world.able similarity index 100% rename from able-script-test/hello_world.able rename to able-script-test/hello-world.able diff --git a/able-script-test/pass-by-reference.able b/able-script-test/pass-by-reference.able new file mode 100644 index 0000000..2787104 --- /dev/null +++ b/able-script-test/pass-by-reference.able @@ -0,0 +1,17 @@ +owo Pass-by-reference test + +owo Swap two variables. +functio swap(left, right) { + var tmp = left; + left = right; + right = tmp; +} + +var foo = "hello"; +var bar = "world"; + +swap(foo, bar); + +owo Should print "hello", then "world" +bar print; +foo print;