diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-11-21 17:10:52 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-11-21 17:10:52 -0600 |
commit | 8cc54374790f8728eb1be75bbbab33b91ae69838 (patch) | |
tree | 5f917bbb63de611b4db10e2de6c27408cf17a214 /t/01-basic.t | |
parent | 6103054b33641423790d0e39c3e369bf79fe2c9c (diff) | |
download | dist-checkconflicts-8cc54374790f8728eb1be75bbbab33b91ae69838.tar.gz dist-checkconflicts-8cc54374790f8728eb1be75bbbab33b91ae69838.zip |
initial implementation
Diffstat (limited to 't/01-basic.t')
-rw-r--r-- | t/01-basic.t | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/t/01-basic.t b/t/01-basic.t new file mode 100644 index 0000000..a4e4c56 --- /dev/null +++ b/t/01-basic.t @@ -0,0 +1,47 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; +use lib 't/lib/01'; + +{ + use_ok('Foo::Conflicts'); + is_deeply( + { Foo::Conflicts->conflicts }, + { + 'Foo::Thing' => 0.01, + 'Foo::Thing::Sub' => 0.05, + }, + "basic conflicts work" + ); +} + +{ + use_ok('Bar::Conflicts'); + is_deeply( + { Bar::Conflicts->conflicts }, + { + 'Bar::Local' => 0.02, + 'Bar::Also' => 0.06, + 'Bar::Also::Also' => 0.12, + }, + "nested conflicts work" + ); + is_deeply( + { Bar::Conflicts2->conflicts }, + { + 'Bar::Also' => 0.06, + 'Bar::Also::Also' => 0.12, + }, + "nested conflicts work" + ); + is_deeply( + { Bar::Conflicts3->conflicts }, + { + 'Bar::Also::Also' => 0.12, + }, + "nested conflicts work" + ); +} + +done_testing; |