From 3240dcb482a24dcf37bb3b121f1b8c2ea7e1b57b Mon Sep 17 00:00:00 2001 From: Will Oprisko Date: Wed, 11 Jan 2017 18:57:52 +0000 Subject: [PATCH] Done. --- lib/a_division_by_zero_error.rb | 5 +++-- lib/a_name_error.rb | 8 ++++++-- lib/a_syntax_error.rb | 3 --- lib/a_type_error.rb | 3 --- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/a_division_by_zero_error.rb b/lib/a_division_by_zero_error.rb index fa27ef36..47e08103 100644 --- a/lib/a_division_by_zero_error.rb +++ b/lib/a_division_by_zero_error.rb @@ -1,3 +1,4 @@ -42 / 6 -42 / 0 +puts 42 / 6 + +puts 42 / 1 diff --git a/lib/a_name_error.rb b/lib/a_name_error.rb index bad266d9..5fa42d07 100644 --- a/lib/a_name_error.rb +++ b/lib/a_name_error.rb @@ -1,3 +1,7 @@ -"hello world" +x = 1 + 1 -hello_world +puts x + +x = x + 1 + +puts x diff --git a/lib/a_syntax_error.rb b/lib/a_syntax_error.rb index 5252c8f7..e69de29b 100644 --- a/lib/a_syntax_error.rb +++ b/lib/a_syntax_error.rb @@ -1,3 +0,0 @@ -x = 1 - -x = diff --git a/lib/a_type_error.rb b/lib/a_type_error.rb index 1217fd52..e69de29b 100644 --- a/lib/a_type_error.rb +++ b/lib/a_type_error.rb @@ -1,3 +0,0 @@ -1 + 1 - -1 + "is the loneliest number"