testcases: use Test::More is_deeply, don't depend on Test::Deep
This commit is contained in:
committed by
Michael Stapelberg
parent
3a9d94bba4
commit
8d83697cc2
@ -16,7 +16,7 @@ sub get_marks {
|
||||
my $tmp = fresh_workspace;
|
||||
|
||||
my $marks = get_marks();
|
||||
cmp_deeply($marks, [], 'no marks set so far');
|
||||
is_deeply($marks, [], 'no marks set so far');
|
||||
|
||||
##############################################################
|
||||
# 2: check that setting a mark is reflected in the get_marks reply
|
||||
@ -25,7 +25,7 @@ cmp_deeply($marks, [], 'no marks set so far');
|
||||
cmd 'open';
|
||||
cmd 'mark foo';
|
||||
|
||||
cmp_deeply(get_marks(), [ 'foo' ], 'mark foo set');
|
||||
is_deeply(get_marks(), [ 'foo' ], 'mark foo set');
|
||||
|
||||
##############################################################
|
||||
# 3: check that the mark is gone after killing the container
|
||||
@ -33,7 +33,7 @@ cmp_deeply(get_marks(), [ 'foo' ], 'mark foo set');
|
||||
|
||||
cmd 'kill';
|
||||
|
||||
cmp_deeply(get_marks(), [ ], 'mark gone');
|
||||
is_deeply(get_marks(), [ ], 'mark gone');
|
||||
|
||||
##############################################################
|
||||
# 4: check that duplicate marks are included twice in the get_marks reply
|
||||
@ -45,6 +45,6 @@ cmd 'mark bar';
|
||||
cmd 'open';
|
||||
cmd 'mark bar';
|
||||
|
||||
cmp_deeply(get_marks(), [ 'bar', 'bar' ], 'duplicate mark found twice');
|
||||
is_deeply(get_marks(), [ 'bar', 'bar' ], 'duplicate mark found twice');
|
||||
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user