| 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 |
use Config; |
| 19 |
|
| 20 |
my $version = 'draft4'; |
| 21 |
|
| 22 |
acceptance_tests( |
| 23 |
acceptance => { |
| 24 |
specification => $version, |
| 25 |
test_dir => 't/additional-tests-'.$version, |
| 26 |
}, |
| 27 |
evaluator => { |
| 28 |
specification_version => $version, |
| 29 |
validate_formats => 1, |
| 30 |
collect_annotations => 0, |
| 31 |
}, |
| 32 |
output_file => $version.'-additional-tests.txt', |
| 33 |
test => { |
| 34 |
$ENV{NO_TODO} ? () : (todo_tests => [ |
| 35 |
# various edge cases that are difficult to accomodate |
| 36 |
JSON::Schema::Modern::_JSON_BACKEND eq 'JSON::PP' || $Config{nvsize} < 16 ? ( |
| 37 |
{ file => 'integers.json', group_description => 'type checks', test_description => [ 'beyond int64 lower boundary', 'beyond uint64 upper boundary' ] }, |
| 38 |
{ file => 'integers.json', group_description => 'int64 range checks', test_description => 'beyond lower boundary' }, |
| 39 |
) : (), |
| 40 |
$Config{ivsize} < 8 ? ( |
| 41 |
{ file => 'integers.json', group_description => 'type checks', test_description => [ 'beyond int32 lower boundary', 'beyond uint32 upper boundary' ] }, |
| 42 |
) : (), |
| 43 |
]), |
| 44 |
}, |
| 45 |
); |
| 46 |
|
| 47 |
done_testing; |
| 48 |
__END__ |
| 49 |
see t/results/draft4-additional-tests.txt for test results |