-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5034ab2
commit 4201c6c
Showing
16 changed files
with
76 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Start testing: Oct 11 16:31 MST | ||
Start testing: Oct 11 22:08 MST | ||
---------------------------------------------------------- | ||
End testing: Oct 11 16:31 MST | ||
End testing: Oct 11 22:08 MST |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
println(ston("1, 2, 3, lets go!")); // expect: 1 | ||
println(ntos(4 / 8)); // expect: 0.5 | ||
println(ntos(4 / 7)); // expect: 0.571429 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
println(sqrt(4)); // expect: 2 | ||
println(pow(3, 4)); // expect: 81 | ||
println(pow(9, 0.5)); // expect: 3 | ||
println(sqrt("3")); // expect runtime error: Argument 1 (input) must be of type 'number', not 'string'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
println(min(3, 2)); // expect: 2 | ||
println(max(3, 2)); // expect: 3 | ||
println(min("err", 3)); // expect runtime error: Argument 1 must be of type 'number', not 'string'. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var test = [10, 11.5, 1.5, 1.05, 1.005]; | ||
for (var i = 0; i < test.length(); i++) { | ||
test[i] = round(test[i], 1); | ||
} | ||
println(test); // expect: [10, 11.5, 1.5, 1.1, 1] | ||
round(); // expect runtime error: Expected 1 to 2 arguments but got 0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fun function() {} | ||
class klass { | ||
method() {} | ||
} | ||
println(typeof(klass)); // expect: class | ||
println(typeof(min)); // expect: native function | ||
println(typeof(klass())); // expect: instance | ||
println(typeof("")); // expect: string | ||
println(typeof([])); // expect: list | ||
println(typeof(false)); // expect: bool | ||
println(typeof(0)); // expect: number | ||
println(typeof(nil)); // expect: nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
// nontest | ||
var list = []; | ||
var i = 0; | ||
for (; i < 10; i++) { | ||
if (i == 5) break; | ||
list.push(i); | ||
} | ||
println(list); // expect: [0, 1, 2, 3, 4] | ||
while (true) { | ||
if (i == 10) break; | ||
list.push(i); | ||
i++; | ||
} | ||
println(list); // expect: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | ||
{ | ||
break; | ||
fun function() {} | ||
class klass { | ||
method() {} | ||
} |