From 04a6fd13f7ea3a45881d6e75ea1dffba38a999fd Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 8 Jul 2013 17:20:23 -0400 Subject: remove test numbers --- t/basic.t | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 t/basic.t (limited to 't/basic.t') 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; -- cgit v1.2.3-54-g00ecf