File: general.t

package info (click to toggle)
libstring-dirify-perl 1.03-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 120 kB
  • sloc: perl: 188; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
use Test::More tests => 6;

BEGIN{ use_ok('String::Dirify'); }

my($sd) = String::Dirify -> new();

ok($sd -> dirify("\xc0\xe0\xdf\xff\xd4")     eq 'aassyo', 'Test 2: High ASCII chars');
ok($sd -> dirify('!Q@W#E$R%T^Y')             eq 'qwerty', 'Test 3: Punctuation');
ok($sd -> dirify('<html>html&amp;ok</html>') eq 'htmlok', 'Test 4: HTML');
ok($sd -> dirify('<![CDATA[x]]>')            eq 'cdatax', 'Test 5: CDATA');
ok(String::Dirify -> dirify('not.obj')       eq 'notobj', 'Test 6: Object-free');