| 1 |
# vim: set ft=perl ts=8 sts=2 sw=2 tw=100 et : |
| 2 |
use strictures 2; |
| 3 |
use 5.020; |
| 4 |
use stable 0.031 'postderef'; |
| 5 |
use experimental 'signatures'; |
| 6 |
no autovivification warn => qw(fetch store exists delete); |
| 7 |
use if "$]" >= 5.022, experimental => 're_strict'; |
| 8 |
no if "$]" >= 5.031009, feature => 'indirect'; |
| 9 |
no if "$]" >= 5.033001, feature => 'multidimensional'; |
| 10 |
no if "$]" >= 5.033006, feature => 'bareword_filehandles'; |
| 11 |
no if "$]" >= 5.041009, feature => 'smartmatch'; |
| 12 |
no feature 'switch'; |
| 13 |
use open ':std', ':encoding(UTF-8)'; # force stdin, stdout, stderr into utf8 |
| 14 |
|
| 15 |
use lib 't/lib'; |
| 16 |
use Helper; |
| 17 |
use Acceptance; |
| 18 |
|
| 19 |
foreach my $version (qw(draft2019-09 draft2020-12)) { |
| 20 |
acceptance_tests( |
| 21 |
acceptance => { |
| 22 |
specification => $version, |
| 23 |
test_dir => 't/invalid-schemas', |
| 24 |
include_optional => 0, |
| 25 |
test_schemas => 0, |
| 26 |
}, |
| 27 |
evaluator => { |
| 28 |
specification_version => $version, |
| 29 |
validate_formats => 1, |
| 30 |
collect_annotations => 0, |
| 31 |
}, |
| 32 |
output_file => $version.'-invalid-schemas.txt', |
| 33 |
); |
| 34 |
} |
| 35 |
|
| 36 |
done_testing; |
| 37 |
__END__ |
| 38 |
see results in |
| 39 |
t/results/draft2019-09-invalid-schemas.txt |
| 40 |
t/results/draft2020-12-invalid-schemas.txt |