summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-11-21 23:00:43 -0600
committerJesse Luehrs <doy@tozt.net>2010-11-21 23:00:43 -0600
commit725a2e8a8ec141609c4270041859a439d6665535 (patch)
tree9be972b6c3c438d1e6328dc2057b6f59f6157e24
parent24b5fa4102f9959b4be48abd3c7c007e30f0bd8a (diff)
downloaddist-checkconflicts-725a2e8a8ec141609c4270041859a439d6665535.tar.gz
dist-checkconflicts-725a2e8a8ec141609c4270041859a439d6665535.zip
test the dist method
-rw-r--r--t/03-dist.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/03-dist.t b/t/03-dist.t
index a9555b5..65b08db 100644
--- a/t/03-dist.t
+++ b/t/03-dist.t
@@ -17,6 +17,7 @@ use lib 't/lib/03';
undef,
"no conflict error"
);
+ is(Foo::Conflicts::Good->dist, 'Foo', "correct dist");
}
{
@@ -34,6 +35,7 @@ use lib 't/lib/03';
"Conflicts detected for Foo:\n Foo is version 0.02, but must be greater than version 0.03\n Foo::Two is version 0.02, but must be greater than version 0.02\n",
"correct conflict error"
);
+ is(Foo::Conflicts::Bad->dist, 'Foo', "correct dist");
}
{
@@ -48,6 +50,7 @@ use lib 't/lib/03';
undef,
"no conflict error"
);
+ is(Bar::Conflicts::Good->dist, 'Bar', "correct dist");
}
{
@@ -65,6 +68,7 @@ use lib 't/lib/03';
"Conflicts detected for Bar:\n Bar is version 0.02, but must be greater than version 0.03\n Bar::Two is version 0.02, but must be greater than version 0.02\n",
"correct conflict error"
);
+ is(Bar::Conflicts::Bad->dist, 'Bar', "correct dist");
}
done_testing;