Skip to content

Commit

Permalink
Clarify string > bool coercion
Browse files Browse the repository at this point in the history
Resolves #207 - tests are correct; the spec has been updated to reflect this.
  • Loading branch information
dylanbeattie authored Mar 15, 2019
1 parent 4f2b69e commit 04f7c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Ordering comparisons (`is higher than`, `is lower than`, `is as high as`, and `i
- \<Mysterious\> \<op\> Mysterious =\> Equal.
- \<Non-Mysterious\> \<op\> Mysterious =\> Non equal.
- String \<op\> Number =\> Convert the string to a number using base 10 with leading zeros ignored. If it fails, return false.
- String \<op\> Boolean =\> Convert the string to a boolean using all defined aliases.
- String \<op\> Boolean =\> Convert the string to a boolean. The empty string is false; all other strings are true.
- String \<op\> Null =\> Non equal.
- Number \<op\> Boolean =\> Convert number to boolean by "truthiness".
- Number \<op\> Null =\> Convert null to 0.
Expand Down

0 comments on commit 04f7c31

Please sign in to comment.