summaryrefslogtreecommitdiffstats
path: root/t/basic.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-08 17:20:23 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-08 17:25:39 -0400
commit04a6fd13f7ea3a45881d6e75ea1dffba38a999fd (patch)
treeb275e3345e05514fea8264c82a82b8ce0973170f /t/basic.t
parent3e4a621b8dbe1a03d3bfc8c8cac349112d987b7c (diff)
downloaddist-checkconflicts-04a6fd13f7ea3a45881d6e75ea1dffba38a999fd.tar.gz
dist-checkconflicts-04a6fd13f7ea3a45881d6e75ea1dffba38a999fd.zip
remove test numbers
Diffstat (limited to 't/basic.t')
-rw-r--r--t/basic.t47
1 files changed, 47 insertions, 0 deletions
diff --git a/t/basic.t b/t/basic.t
new file mode 100644
index 0000000..c1bf2aa
--- /dev/null
+++ b/t/basic.t
@@ -0,0 +1,47 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+use lib 't/lib/basic';
+
+{
+ 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;