diff options
Diffstat (limited to 't/05-also.t')
-rw-r--r-- | t/05-also.t | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/t/05-also.t b/t/05-also.t new file mode 100644 index 0000000..286f8fa --- /dev/null +++ b/t/05-also.t @@ -0,0 +1,32 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; +use Test::Fatal; +use lib 't/lib/05'; + +{ + use_ok('Bar::Conflicts'); + is_deeply( + { Bar::Conflicts->conflicts }, + { + 'Bar::Local' => '0.02', + 'Foo::Thing' => '0.01', + 'Foo::Thing::Sub' => '0.05', + }, + "can detect the proper conflicts module" + ); +} + +{ + use_ok('Bar::Conflicts2'); + is_deeply( + { Bar::Conflicts2->conflicts }, + { + 'Bar::Also' => '0.06', + }, + "unknown also entries are ignored" + ); +} + +done_testing; |