comparison 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
comparison
equal deleted inserted replaced
10:0374ae06729e 11:e0a92558400f
1 Val 'true' is truthy
2 Val 'false' is falsy
3 Val '1' is truthy
4 Val '0' is truthy
5 Val '-1' is truthy
6 Val 'some string' is truthy
7 Val '' is truthy
8 Val nil is falsy