annotate 1-Ruby/truthiness-ruby.output @ 103:98be775c533c default tip

An odd "non-determinism" example from StackOverflow It is clever, but doesn't make much sense as to how it gets its results
author IBBoard <dev@ibboard.co.uk>
date Sun, 14 Jul 2019 13:44:13 +0100
parents e0a92558400f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 Val 'true' is truthy
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 Val 'false' is falsy
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 Val '1' is truthy
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 Val '0' is truthy
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 Val '-1' is truthy
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 Val 'some string' is truthy
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 Val '' is truthy
e0a92558400f Add some truthiness testing
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 Val nil is falsy