Permalink
Browse files

Also test decoding.

  • Loading branch information...
1 parent b679b93 commit 7aadc185c2155cb5f670c5b366c3673f48427131 Dave Lambley committed Dec 14, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 t/util.t
View
@@ -4,9 +4,12 @@ use strict;
use warnings;
use Test::More;
-use Net::LDAP::Util qw/ escape_dn_value /;
+use Net::LDAP::Util qw/ escape_dn_value unescape_dn_value /;
is(escape_dn_value("foo"), "foo", "simple, passthrough test");
+is(unescape_dn_value("foo"), "foo", "simple, passthrough test, decoding");
+
is(escape_dn_value("foo,bar"), 'foo\,bar', "with a comma");
+is(unescape_dn_value('foo\,bar'), 'foo,bar', "with a comma, decoding");
done_testing();

0 comments on commit 7aadc18

Please sign in to comment.