1234567891011121314151617181920 use strict;use warnings;use utf8;use Test::Kantan;Feature 'Foo', sub { Scenario 'Normal', sub { Given 'An array'; my @ary; When 'Push one item'; push @ary, 1; Then 'the number of array is 1'; expect(0+@ary)->to_be(1); };};done_testing;
use
strict;
warnings;
utf8;
Test::Kantan;
Feature
'Foo'
,
sub
{
Scenario
'Normal'
Given
'An array'
;
my
@ary
When
'Push one item'
push
, 1;
Then
'the number of array is 1'
expect(0+
)->to_be(1);
};
done_testing;