t/ffi_build_file_library.t
raw| 1 | use Test2::V0 -no_srand => 1; |
| 2 | use FFI::Build::File::Library; |
| 3 | use Config (); |
| 4 | |
| 5 | my $dll = FFI::Build::Platform->library_suffix; |
| 6 | |
| 7 | subtest 'basic' => sub { |
| 8 | |
| 9 | my $file = FFI::Build::File::Library->new(['corpus',"basic$dll"]); |
| 10 | |
| 11 | is($file->default_suffix, $dll); |
| 12 | is($file->default_encoding, ':raw'); |
| 13 | note "path = @{[ $file->path ]}"; |
| 14 | |
| 15 | }; |
| 16 | |
| 17 | done_testing; |