-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EMERGENCY: Computer is dying, this is an incomplete commit, do not use
- Loading branch information
1 parent
b2b2ca7
commit b29a878
Showing
11 changed files
with
386 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
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,10 @@ | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; | ||
if (true) print "Correct"; else print "Error"; |
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,11 @@ | ||
|
||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (false) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } | ||
if (true) { print "Correct"; } else { print "Error"; } |
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,10 @@ | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; | ||
print "foo" .. "bar"; |
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,44 +1,67 @@ | ||
|
||
//literals | ||
if (true) { | ||
print "Success"; | ||
print "Success 1"; | ||
} | ||
else { | ||
print "Failed"; | ||
print "Failure 1"; | ||
} | ||
|
||
//false literals | ||
if (false) { | ||
print "Failed"; | ||
print "Failure 2"; | ||
} | ||
else { | ||
print "Success"; | ||
print "Success 2"; | ||
} | ||
|
||
//conditionals | ||
if (1 < 2) { | ||
print "Success"; | ||
print "Success 3"; | ||
} | ||
if (1 > 2) { | ||
print "Failure"; | ||
print "Failure 3"; | ||
} | ||
|
||
|
||
//variables | ||
var a = 42; | ||
|
||
if (a) { | ||
print "Success"; | ||
print "Success 4"; | ||
} | ||
else { | ||
print "Failure"; | ||
print "Failure 4"; | ||
} | ||
|
||
|
||
if (a == 42) { | ||
print "Success"; | ||
print "Success 5"; | ||
} | ||
else { | ||
print "Failure"; | ||
print "Failure 5"; | ||
} | ||
|
||
//concatenated strings | ||
if ("foo" .. "bar" == "foobar") { | ||
print "Success 6"; | ||
} | ||
else { | ||
print "Failure 6"; | ||
} | ||
|
||
|
||
if ("foobar" == "foo" .. "bar") { | ||
print "Success 7"; | ||
} | ||
else { | ||
print "Failure 7"; | ||
} | ||
|
||
if ("fizz" .. "le" == "fi" .. "zzle") { | ||
print "Success 8"; | ||
} | ||
else { | ||
print "Failure 8"; | ||
} | ||
|
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
Oops, something went wrong.