Skip to content
Open

Done #2203

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion lib/a_division_by_zero_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
42 / 6

42 / 0
42 / 2
2 changes: 1 addition & 1 deletion lib/a_name_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"hello world"

hello_world
"hello_world"
2 changes: 1 addition & 1 deletion lib/a_syntax_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
x = 1

x =
x = 1
2 changes: 1 addition & 1 deletion lib/a_type_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
1 + 1

1 + "is the loneliest number"
1