| 1 |
use strict; |
| 2 |
use warnings; |
| 3 |
use lib 't/lib/'; |
| 4 |
use Test::More 0.88; |
| 5 |
use SubtestCompat; |
| 6 |
use TestUtils; |
| 7 |
use TestBridge; |
| 8 |
|
| 9 |
use CPAN::Meta::YAML (); |
| 10 |
|
| 11 |
#--------------------------------------------------------------------------# |
| 12 |
# Generally, write_string can be tested with .tml files in t/tml-local/* |
| 13 |
# |
| 14 |
# This file is for error tests or conditions that can't be easily tested |
| 15 |
# via .tml |
| 16 |
#--------------------------------------------------------------------------# |
| 17 |
|
| 18 |
subtest 'write_string as class method' => sub { |
| 19 |
my $got = eval { CPAN::Meta::YAML->write_string }; |
| 20 |
is( $@, '', "write_string lives" ); |
| 21 |
is( $got, '', "returns empty string" ); |
| 22 |
}; |
| 23 |
|
| 24 |
done_testing; |