forked from AbleScript/ablescript
Format .able
test files
Unified mixed 2-space and 4-space indentation into uniform 3-space indentation.
This commit is contained in:
parent
282a9a6a07
commit
a2d240f471
|
@ -1,4 +1,4 @@
|
||||||
functio hello(words){
|
functio hello(words){
|
||||||
words print;
|
words print;
|
||||||
}
|
}
|
||||||
hello("wonk");
|
hello("wonk");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var data;
|
var data;
|
||||||
loop {
|
loop {
|
||||||
data read;
|
data read;
|
||||||
data print;
|
data print;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,9 @@ owo Pass-by-reference test
|
||||||
|
|
||||||
owo Swap two variables.
|
owo Swap two variables.
|
||||||
functio swap(left, right) {
|
functio swap(left, right) {
|
||||||
var tmp = left;
|
var tmp = left;
|
||||||
left = right;
|
left = right;
|
||||||
right = tmp;
|
right = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
var foo = "hello";
|
var foo = "hello";
|
||||||
|
@ -13,11 +13,11 @@ var bar = "world";
|
||||||
swap(foo, bar);
|
swap(foo, bar);
|
||||||
|
|
||||||
if (foo != "world") {
|
if (foo != "world") {
|
||||||
"FAILED" print;
|
"FAILED" print;
|
||||||
"foo should be 'world', is actually:" print;
|
"foo should be 'world', is actually:" print;
|
||||||
foo print;
|
foo print;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (foo == "world") {
|
if (foo == "world") {
|
||||||
"OK" print;
|
"OK" print;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue