Skip to content

Commit d2e00df

Browse files
committed
Test single tab is not continued
1 parent 41bee0a commit d2e00df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_ldif.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def test_ldif_with_continuation_lines_and_extra_whitespace
4242
assert_equal(true, ds2.has_key?("abcdefghij klmn"))
4343
end
4444

45+
def test_ldif_tab_is_not_continuation
46+
ds = Net::LDAP::Dataset::read_ldif(StringIO.new("dn: key\r\n\tnotcontinued\r\n\r\n"))
47+
assert_equal(true, ds.has_key?("key"))
48+
end
49+
4550
# TODO, INADEQUATE. We need some more tests
4651
# to verify the content.
4752
def test_ldif

0 commit comments

Comments
 (0)