Skip to content

Commit

Permalink
Test single tab is not continued
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarpenter committed Sep 10, 2011
1 parent 41bee0a commit d2e00df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_ldif.rb
Expand Up @@ -42,6 +42,11 @@ def test_ldif_with_continuation_lines_and_extra_whitespace
assert_equal(true, ds2.has_key?("abcdefghij klmn")) assert_equal(true, ds2.has_key?("abcdefghij klmn"))
end end


def test_ldif_tab_is_not_continuation
ds = Net::LDAP::Dataset::read_ldif(StringIO.new("dn: key\r\n\tnotcontinued\r\n\r\n"))
assert_equal(true, ds.has_key?("key"))
end

# TODO, INADEQUATE. We need some more tests # TODO, INADEQUATE. We need some more tests
# to verify the content. # to verify the content.
def test_ldif def test_ldif
Expand Down

0 comments on commit d2e00df

Please sign in to comment.