annotate 1-Ruby/truthiness-ruby.output @ 11:e0a92558400f

Add some truthiness testing
author IBBoard <dev@ibboard.co.uk>
date Mon, 02 Jan 2017 21:13:00 +0000
parents
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