lemonldap-ng-manager/t/07-utf8.t
raw| 1 | # Test if an UTF-8 char is well returned |
| 2 | |
| 3 | use warnings; |
| 4 | use Test::More; |
| 5 | use strict; |
| 6 | |
| 7 | my $str = "The LemonLDAP::NG team \x{c2}\x{a9}"; |
| 8 | |
| 9 | require 't/test-lib.pm'; |
| 10 | |
| 11 | my $href = &client->jsonResponse('/confs/1/cfgAuthor'); |
| 12 | |
| 13 | #binmode STDERR; |
| 14 | |
| 15 | ok( $href->{value} eq $str, 'Value is well encoded' ) |
| 16 | or print STDERR "Expect '$href->{value}' eq '$str'"; |
| 17 | count(1); |
| 18 | |
| 19 | done_testing( count() ); |