1. Diab Jerius
  2. Hg::Lib

Commits

Diab Jerius  committed 0b064d4

test at wrong level in dir hierarchy

  • Participants
  • Parent commits e7727d0
  • Branches default

Comments (0)

Files changed (2)

File t/Hg/Lib/Types.t

-#! perl
-
-use strict;
-use warnings;
-
-use Test::More;
-use Test::Fatal;
-
-use Type::Params qw[ validate ];
-use Hg::Lib::Types -all;
-
-is_deeply (
-	   validate( [ ['a'] ], StrList ),
-	   [ 'a' ],
-	    'StrList as arrayref'
-);
-
-is_deeply (
-	   validate( [ 'a' ], StrList ),
-	   [ 'a' ],
-	   'StrList as scalar'
-);
-
-isa_ok( exception { StrList->assert_valid( \'a' ) },
-	'Type::Exception::Assertion'
-      );
-
-done_testing;

File t/Hg/Lib/Types/Types.t

View file
+#! perl
+
+use strict;
+use warnings;
+
+use Test::More;
+use Test::Fatal;
+
+use Type::Params qw[ validate ];
+use Hg::Lib::Types -all;
+
+is_deeply (
+	   validate( [ ['a'] ], StrList ),
+	   [ 'a' ],
+	    'StrList as arrayref'
+);
+
+is_deeply (
+	   validate( [ 'a' ], StrList ),
+	   [ 'a' ],
+	   'StrList as scalar'
+);
+
+isa_ok( exception { StrList->assert_valid( \'a' ) },
+	'Type::Exception::Assertion'
+      );
+
+done_testing;