Skip to content

Commit

Permalink
add failing test "opens file and writes each line into a list of stri…
Browse files Browse the repository at this point in the history
…ngs"
  • Loading branch information
samjowen committed Dec 21, 2023
1 parent d5e45dd commit 5741a43
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/day1/day1_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@ defmodule Day1Test do
test "finds first and last number from array" do
assert Day1.find_first_and_last_number("1abc2") == {1, 2}
end

test "opens file and writes each line to a list of strings" do
assert Day1.parse_file("test/day1_test.txt", :string) == [
"first line of the file",
"second line of the file",
"third line of the file"
]
end
end

0 comments on commit 5741a43

Please sign in to comment.