Skip to content

Commit

Permalink
Test windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Jul 1, 2024
1 parent 84fc40f commit 310638d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/openapi.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ my $t = Kelp::Test->new(app => $app);
# This checks if the openapi seems to be generated fine
################################################################################

plan skip_all => 'will fail';

my $content = do {
local $/;
my $data = <DATA>;
Expand All @@ -24,6 +26,8 @@ $t->request(GET '/')
->code_is(200)
->yaml_cmp($content);

pass;

done_testing;

__DATA__
Expand Down
29 changes: 29 additions & 0 deletions t/windows.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
use Kelp::Base -strict;
use Test::More;
use Test::Deep;
use YAML::PP qw(Load Dump);

my $content = do {
local $/;
my $data = <DATA>;
Load($data);
};

my $perl_str = 'line1
line3
line4';

my $content2 = Load(Dump({description => $perl_str}));

is_deeply $content, $content2, 'no bug ok';

done_testing;

__DATA__
description: |-
line1
line3
line4

0 comments on commit 310638d

Please sign in to comment.