From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#!/usr/bin/perl
# Copyright (c) 2016-2023 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 strict;
$::tests = '';
$::tests = "
2code 'Apache languages' => apa
2name apa => 'Apache languages'
code2code apa alpha alpha => apa
all_codes 2 => aav afa
all_names 2 => 'Afro-Asiatic languages' 'Alacalufan languages'
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: