diff options
Diffstat (limited to 't/notest_withtest.t')
-rw-r--r-- | t/notest_withtest.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/notest_withtest.t b/t/notest_withtest.t new file mode 100644 index 0000000..d74b057 --- /dev/null +++ b/t/notest_withtest.t @@ -0,0 +1,22 @@ +use strict; +use warnings; + +{ + package Foo; + use Test::Deep::NoTest; + + sub check_this { + return eq_deeply($_[1], []); + } +} + +use Test::More 0.88; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; + +use Test::Deep; + +ok(Foo->check_this([]), 'notest 1'); +ok(! Foo->check_this({}), 'notest 2'); +cmp_deeply([], [], 'got cmp_deeply'); + +done_testing; |