1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#!/usr/bin/perl
# Copyright (c) 2016-2025 Sullivan Beck. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
use warnings;
use strict;
$::tests = '';
$::tests = "
2code 'Mesopotamian Arabic' => acm
2name acm => 'Mesopotamian Arabic'
code2code ACM alpha alpha => acm
all_codes 2 => aao abh
all_names 2 => 'Adamorobe Sign Language' 'Afghan Sign Language'
rename AAA newCode2 => 'ERROR: _code: code not in codeset: aaa [alpha]'
add AAA newCode => 1
delete AAA => 1
add_alias FooBar NewName => 'ERROR: add_alias: name does not exist: FooBar'
delete_alias Foobar => 'ERROR: delete_alias: name does not exist: Foobar'
replace_code Foo Bar => 'ERROR: _code: code not in codeset: foo [alpha]'
add_code_alias Foo Bar => 'ERROR: _code: code not in codeset: foo [alpha]'
delete_code_alias Foo => 'ERROR: _code: code not in codeset: foo [alpha]'
";
1;
# Local Variables:
# mode: cperl
# indent-tabs-mode: nil
# cperl-indent-level: 3
# cperl-continued-statement-offset: 2
# cperl-continued-brace-offset: 0
# cperl-brace-offset: 0
# cperl-brace-imaginary-offset: 0
# cperl-label-offset: 0
# End:
|