Skip to content

Commit

Permalink
Test Mac Format detection and line splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Sep 10, 2012
1 parent 2e49c06 commit bda895e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/Text/mac.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
line 1line 2
Expand Down
8 changes: 8 additions & 0 deletions test/test_blob.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ def test_lines
assert_equal ["module Foo", "end", ""], blob("Ruby/foo.rb").lines
end

def test_mac_format
assert blob("Text/mac.txt").mac_format?
end

def test_lines_mac_format
assert_equal ["line 1", "line 2", ""], blob("Text/mac.txt").lines
end

def test_size
assert_equal 15, blob("Ruby/foo.rb").size
end
Expand Down

0 comments on commit bda895e

Please sign in to comment.