Skip to content

Commit 5223a60

Browse files
committed
chapter04 The Test::Unit Testing Framework #2
add fail test case read contents
1 parent 405dab3 commit 5223a60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

chapter04/file_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ def test_read_4th_character
55
contents = File.read('data.txt')
66
assert_equal 'd', contents[3, 1]
77
end
8+
9+
def test_read_4th_content_is_2
10+
contents = File.read('data.txt')
11+
assert_equal '2', contents[3, 1]
12+
end
813
end

0 commit comments

Comments
 (0)