This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Equality for numbers, strings, booleans
- Loading branch information
1 parent
bc24624
commit b19ae75
Showing
18 changed files
with
105 additions
and
135 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
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,7 @@ | ||
<ProjectConfiguration> | ||
<Settings> | ||
<AdditionalFilesToIncludeForProject> | ||
<Value>rockstar.peg</Value> | ||
</AdditionalFilesToIncludeForProject> | ||
</Settings> | ||
</ProjectConfiguration> |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Say 0 is nothing | ||
Say false is nothing | ||
Say nobody is nothing | ||
Say null is nothing | ||
Say "" is nothing | ||
Say 0 is nothing (prints: true) | ||
Say false is nothing (prints: true) | ||
Say nobody is nothing (prints: true) | ||
Say null is nothing (prints: true) | ||
Say "" is nothing (prints: true) | ||
|
||
Say 1 is nothing | ||
Say true is nothing | ||
Say "hello" is nothing | ||
Say 1 is nothing (prints: false) | ||
Say true is nothing (prints: false) | ||
Say "hello" is nothing (prints: false) |
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
say true is null | ||
say false is null | ||
say null is null | ||
say 0 is null | ||
say 1 is null | ||
say true is null (prints: false) | ||
say false is null (prints: true) | ||
say null is null (prints: true) | ||
say 0 is null (prints: true) | ||
say 1 is null (prints: false) |
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
say true is 5 | ||
say 5 is true | ||
say 0 is false | ||
say false is 0 | ||
say 0 is null | ||
say 5 is 5 | ||
say 5 is 5.0 | ||
say 0.26 is 0.26 | ||
say "5" is 5 | ||
say 5 is "05.0" | ||
say "" | ||
say true is 0 | ||
say 0 is true | ||
say 1 is false | ||
say false is 1 | ||
say 1 is null | ||
say 5 is 4 | ||
say true is 5 (prints: true) | ||
say 5 is true (prints: true) | ||
say 0 is false (prints: true) | ||
say false is 0 (prints: true) | ||
say 0 is null (prints: true) | ||
say 5 is 5 (prints: true) | ||
say 5 is 5.0 (prints: true) | ||
say 0.26 is 0.26 (prints: true) | ||
say "5" is 5 (prints: true) | ||
say 5 is "05.0" (prints: true) | ||
|
||
say true is 0 (prints: false) | ||
say 0 is true (prints: false) | ||
say 1 is false (prints: false) | ||
say false is 1 (prints: false) | ||
say 1 is null (prints: false) | ||
say 5 is 4 (prints: false) |
This file was deleted.
Oops, something went wrong.
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,27 +1,28 @@ | ||
say "true" is true | ||
say "yes" is true | ||
say "OK" is true | ||
say "" | ||
say true is "true" | ||
say true is "RIGht" | ||
say "yes" is true | ||
say "OK" is true | ||
say false is "false" | ||
say false is "WROng" | ||
say "lies" is false | ||
say "" | ||
say true is "hello" | ||
say "true" is true | ||
say "" | ||
say 5 is "3" | ||
say 5 is "hello" | ||
say "" | ||
say true is "lies" | ||
say "lies" is true | ||
say false is "true" | ||
say false is "hello" | ||
say "false" is false | ||
say "true" is false | ||
say "" | ||
say "hello" is "hello" | ||
say "hello" is "world" | ||
(non-empty strings are true) | ||
say "true" is true (prints: true) | ||
say "yes" is true (prints: true) | ||
say "OK" is true (prints: true) | ||
say true is "true" (prints: true) | ||
say true is "RIGht" (prints: true) | ||
say "yes" is true (prints: true) | ||
say "OK" is true (prints: true) | ||
|
||
say false is "false" (prints: false) | ||
say false is "WROng" (prints: false) | ||
say "lies" is false (prints: false) | ||
|
||
say true is "hello" (prints: true) | ||
say "true" is true (prints: true) | ||
|
||
say 5 is "3" (prints: false) | ||
say 5 is "hello" (prints: false) | ||
|
||
say true is "lies" (prints: true) | ||
say "lies" is true (prints: true) | ||
say false is "true" (prints: false) | ||
say false is "hello" (prints: false) | ||
say "false" is false (prints: false) | ||
say "true" is false (prints: false) | ||
|
||
say "hello" is "hello" (prints: true) | ||
say "hello" is "world" (prints: false) |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
<ProjectConfiguration> | ||
<Settings> | ||
<IgnoreThisComponentCompletely>True</IgnoreThisComponentCompletely> | ||
</Settings> | ||
</ProjectConfiguration> |
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,7 +1,5 @@ | ||
<ProjectConfiguration> | ||
<Settings> | ||
<AdditionalFilesToIncludeForProject> | ||
<Value>rockstar.peg</Value> | ||
</AdditionalFilesToIncludeForProject> | ||
<AdditionalFilesToIncludeForProject /> | ||
</Settings> | ||
</ProjectConfiguration> |
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,8 @@ | ||
<SolutionConfiguration> | ||
<Settings> | ||
<AllowParallelTestExecution>True</AllowParallelTestExecution> | ||
<EnableRDI>False</EnableRDI> | ||
<RdiConfigured>True</RdiConfigured> | ||
<SolutionConfigured>True</SolutionConfigured> | ||
</Settings> | ||
</SolutionConfiguration> |
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