This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
docs: clarify effect of $^H, %^H, ${^WARNING_BITS}
[perl5.git] / t / porting / bincompat.t
1 #!./perl -w
2 use strict;
3 require './test.pl';
4 skip_all("Sorting order differs under EBCDIC") if $::IS_EBCDIC || $::IS_EBCDIC;
5
6 use Config;
7
8 plan(2);
9
10 # Defiantly a white box test...
11
12 # As we need to call it direct, we'll take advantage of its result ordering:
13 my @to_check = qw(bincompat_options non_bincompat_options);
14 my @V = map {s/^ //r} Internals::V();
15
16 while (my ($index, $sub) = each @to_check) {
17     my $got = join ' ', sort &{Config->can($sub)}();
18     is($got, $V[$index], "C source code has $sub in sorted order");
19 }