From: Vincent Pit Date: Mon, 18 Jul 2011 13:18:23 +0000 (+0200) Subject: This is 0.03 X-Git-Tag: v0.03^0 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=3262250329d3513e5efc367db7a9d0d2da9d24bd;p=perl%2Fmodules%2FTest-Leaner.git This is 0.03 --- diff --git a/Changes b/Changes index 8aada79..b94e377 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,14 @@ Revision history for Test-Leaner +0.03 2011-07-18 13:20 UTC + + Chg : The fallback interface will croak if you try to import a symbol + of Test::More that is not implemented in Test::Leaner. + + Fix : The fallback interface should now handle the 'import' parameter + properly. + + Doc : Document that is_deeply() returns the result of the test, that + isnt() honors 'ne' overloading, and that isn't() is not aliased + to isnt(). + 0.02 2010-12-29 17:00 UTC + Add : You can fall back to use Test::More by setting the PERL_TEST_LEANER_USES_TEST_MORE environment variable. diff --git a/META.json b/META.json index ebf713c..11cb9f4 100644 --- a/META.json +++ b/META.json @@ -53,5 +53,5 @@ "url" : "http://git.profvince.com/?p=perl%2Fmodules%2FTest-Leaner.git" } }, - "version" : "0.02" + "version" : "0.03" } diff --git a/META.yml b/META.yml index d836270..627aaa2 100644 --- a/META.yml +++ b/META.yml @@ -1,32 +1,31 @@ ---- #YAML:1.0 -name: Test-Leaner -version: 0.02 -abstract: A slimmer Test::More for when you favor performance over completeness. +--- +abstract: 'A slimmer Test::More for when you favor performance over completeness.' author: - - Vincent Pit -license: perl -distribution_type: module -configure_requires: - ExtUtils::MakeMaker: 0 + - 'Vincent Pit ' build_requires: - Exporter: 0 - ExtUtils::MakeMaker: 0 - Test::More: 0 + Exporter: 0 + ExtUtils::MakeMaker: 0 + Test::More: 0 +configure_requires: + ExtUtils::MakeMaker: 0 +dynamic_config: 0 +generated_by: 'ExtUtils::MakeMaker version 6.58, CPAN::Meta::Converter version 2.110930001' +license: perl +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: Test-Leaner +no_index: + directory: + - t + - inc requires: - Exporter: 0 - perl: 5.006 - Test::More: 0 + Exporter: 0 + Test::More: 0 + perl: 5.006 resources: - bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Leaner - homepage: http://search.cpan.org/dist/Test-Leaner/ - license: http://dev.perl.org/licenses/ - repository: http://git.profvince.com/?p=perl%2Fmodules%2FTest-Leaner.git -no_index: - directory: - - t - - inc -generated_by: ExtUtils::MakeMaker version 6.56 -meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 -dynamic_config: 0 + bugtracker: http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Leaner + homepage: http://search.cpan.org/dist/Test-Leaner/ + license: http://dev.perl.org/licenses/ + repository: http://git.profvince.com/?p=perl%2Fmodules%2FTest-Leaner.git +version: 0.03 diff --git a/README b/README index f8fd072..79308c6 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ NAME completeness. VERSION - Version 0.02 + Version 0.03 SYNOPSIS use Test::Leaner tests => 10_000; @@ -25,15 +25,19 @@ DESCRIPTION * Stringification isn't forced on the test operands. However, "ok" honors 'bool' overloading, "is" and "is_deeply" honor 'eq' - overloading (and just that one) and "cmp_ok" honors whichever - overloading category corresponds to the specified operator. + overloading (and just that one), "isnt" honors 'ne' overloading, and + "cmp_ok" honors whichever overloading category corresponds to the + specified operator. - * "pass", "fail", "ok", "is", "isnt", "like", "unlike" and "cmp_ok" - are all guaranteed to return the truth value of the test. + * "pass", "fail", "ok", "is", "isnt", "like", "unlike", "cmp_ok" and + "is_deeply" are all guaranteed to return the truth value of the + test. + + * "isn't" (the sub "t" in package "isn") is not aliased to "isnt". * "like" and "unlike" don't special case regular expressions that are passed as '/.../' strings. A string regexp argument is always - treated as a the source of the regexp, making "like $text, $rx" and + treated as the source of the regexp, making "like $text, $rx" and "like $text, qr[$rx]" equivalent to each other and to "cmp_ok $text, '=~', $rx" (and likewise for "unlike"). @@ -49,7 +53,8 @@ DESCRIPTION * The tests don't output any kind of default diagnostic in case of failure ; the rationale being that if you have a large number of tests and a lot of them are failing, then you don't want to be - flooded by diagnostics. + flooded by diagnostics. Moreover, this allows a much faster variant + of "is_deeply". * "use_ok", "require_ok", "can_ok", "isa_ok", "new_ok", "subtest", "explain", "TODO" blocks and "todo_skip" are not implemented. @@ -58,8 +63,8 @@ ENVIRONMENT "PERL_TEST_LEANER_USES_TEST_MORE" If this environment variable is set, Test::Leaner will replace its functions by those from Test::More. Moreover, the symbols that are - imported you "use Test::Leaner" will be those from Test::More, but you - can still only import the symbols originally defined in Test::Leaner + imported when you "use Test::Leaner" will be those from Test::More, but + you can still only import the symbols originally defined in Test::Leaner (hence the functions from Test::More that are not implemented in Test::Leaner will not be imported). If your version of Test::More is too old and doesn't have some symbols (like "note" or "done_testing"), they @@ -168,7 +173,7 @@ SUPPORT perldoc Test::Leaner COPYRIGHT & LICENSE - Copyright 2010 Vincent Pit, all rights reserved. + Copyright 2010,2011 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff --git a/lib/Test/Leaner.pm b/lib/Test/Leaner.pm index 344d10d..c67eaed 100644 --- a/lib/Test/Leaner.pm +++ b/lib/Test/Leaner.pm @@ -10,11 +10,11 @@ Test::Leaner - A slimmer Test::More for when you favor performance over complete =head1 VERSION -Version 0.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 SYNOPSIS