| 1 |
# vim: set ts=8 sts=2 sw=2 tw=100 et : |
| 2 |
use strict; |
| 3 |
use warnings; |
| 4 |
use strictures 2; |
| 5 |
use stable 0.031 'postderef'; |
| 6 |
use experimental 'signatures'; |
| 7 |
no autovivification warn => qw(fetch store exists delete); |
| 8 |
use if "$]" >= 5.022, experimental => 're_strict'; |
| 9 |
no if "$]" >= 5.031009, feature => 'indirect'; |
| 10 |
no if "$]" >= 5.033001, feature => 'multidimensional'; |
| 11 |
no if "$]" >= 5.033006, feature => 'bareword_filehandles'; |
| 12 |
no if "$]" >= 5.041009, feature => 'smartmatch'; |
| 13 |
|
| 14 |
use Test2::V0 -no_pragmas => 1; |
| 15 |
use if $ENV{AUTHOR_TESTING}, 'Test2::Warnings'; |
| 16 |
use Test::File::ShareDir -share => { -dist => { 'Test-JSON-Schema-Acceptance' => 'share' } }; |
| 17 |
use Test::JSON::Schema::Acceptance; |
| 18 |
|
| 19 |
my $accepter = Test::JSON::Schema::Acceptance->new(specification => 'draft2020-12'); |
| 20 |
|
| 21 |
ok($accepter->additional_resources->is_dir, 'additional_resources directory exists'); |
| 22 |
|
| 23 |
ok($accepter->additional_resources->child('integer.json')->is_file, 'integer.json file exists'); |
| 24 |
|
| 25 |
done_testing; |