Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the autobox-Core CPAN distribution.

Report information
The Basics
Id: 31896
Status: resolved
Priority: 0/
Queue: autobox-Core

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.3
Fixed in: (no value)



Subject: better tests
Requires Test::More. -- Alexandr Ciornii, http://chorny.net
Subject: test.pl
# Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl test.pl' ######################### # change 'tests => 1' to 'tests => last_test_to_print'; use Test::More; BEGIN { plan tests => 5 }; use autobox; use autobox::Core; ok(1); is("Hello"->uc(),"HELLO","uc"); my $arr = [ 1 .. 10 ]; my $elem=$arr->pop(); is($elem,10); $elem=$arr->pop(); is($elem,9); $arr->push(11); my $arr1=$arr->grep(sub {$_[0] %2}); is_deeply($arr1, [1,3,5,7,11], "grep odd numbers");
On Tue Dec 25 17:04:41 2007, CHORNY wrote: Show quoted text
> Requires Test::More. >
Switched to Test::More in 0.5