diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1-Ruby/truthiness-ruby.output	Mon Jan 02 21:13:00 2017 +0000
@@ -0,0 +1,8 @@
+Val 'true' is truthy
+Val 'false' is falsy
+Val '1' is truthy
+Val '0' is truthy
+Val '-1' is truthy
+Val 'some string' is truthy
+Val '' is truthy
+Val nil is falsy