From c2f734fa0ffcdc0493934177dbc671fe3d076a8e Mon Sep 17 00:00:00 2001 From: Cory O'Neill Date: Tue, 4 May 2021 01:23:25 +0000 Subject: [PATCH] Done. --- README.md | 4 ++-- lib/a_division_by_zero_error.rb | 2 +- lib/a_name_error.rb | 2 +- lib/a_syntax_error.rb | 2 +- lib/a_type_error.rb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9b21ceab..b1785af2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Intro to Reading Ruby Error Messages -## Overview +# Overview In this lab, you'll be reading error messages from tests. This lab is designed so that both running the files *and* running the test suite via the `learn` command will show the error messages for you to decode. Moving forward though, you'll be reading error messages mainly through running the test suite. @@ -114,7 +114,7 @@ Did you watch it? Okay, great. Let's proceed. The point of this lab is to get yo * Each error prints out a **stack trace**, which points to where the code failed and attempts to follow it _up the stack_ — that is, through the bits of code that ran leading up to the failure. You can use these stack traces to pinpoint which line(s) of code need your attention. * These stack traces can also point you to which files you should run to get a better sense of the errors. Which leads us to step 3: - + 3. Fix the errors in each of the files in `lib/`. Then confirm the fix by running `learn` again. 4. Once your code is passing with the `learn` command, submit the lab with `learn submit` diff --git a/lib/a_division_by_zero_error.rb b/lib/a_division_by_zero_error.rb index fa27ef36..aaec1f44 100644 --- a/lib/a_division_by_zero_error.rb +++ b/lib/a_division_by_zero_error.rb @@ -1,3 +1,3 @@ 42 / 6 -42 / 0 +42 / 2 diff --git a/lib/a_name_error.rb b/lib/a_name_error.rb index bad266d9..8f9b5d93 100644 --- a/lib/a_name_error.rb +++ b/lib/a_name_error.rb @@ -1,3 +1,3 @@ "hello world" -hello_world +"hello_world" diff --git a/lib/a_syntax_error.rb b/lib/a_syntax_error.rb index 5252c8f7..a14ac9d5 100644 --- a/lib/a_syntax_error.rb +++ b/lib/a_syntax_error.rb @@ -1,3 +1,3 @@ x = 1 -x = +x = 1 diff --git a/lib/a_type_error.rb b/lib/a_type_error.rb index 1217fd52..eba69b9e 100644 --- a/lib/a_type_error.rb +++ b/lib/a_type_error.rb @@ -1,3 +1,3 @@ 1 + 1 -1 + "is the loneliest number" +1