Permalink
Browse files

Test single tab is not continued

  • Loading branch information...
1 parent 41bee0a commit d2e00dfd5896b9ad8e416ba774bbb56edaa2571e @mcarpenter mcarpenter committed Sep 10, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_ldif.rb
View
@@ -42,6 +42,11 @@ def test_ldif_with_continuation_lines_and_extra_whitespace
assert_equal(true, ds2.has_key?("abcdefghij klmn"))
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
# to verify the content.
def test_ldif

0 comments on commit d2e00df

Please sign in to comment.