cmac has asked for the wisdom of the Perl Monks concerning the following question:
The full report can be seen here.# Failed test 'get pushed element' # at t/2_mmArray.t line 251. # got: '*main::mm_array_push' # expected: 'eb' # Failed test 'avail mem after push should == before pop' # at t/2_mmArray.t line 260. # got: '7544' # expected: '7560' # Failed test 'check first unshifted value' # at t/2_mmArray.t line 299. # got: '' # expected: '2009' # Failed test 'check 2nd unshifted value' # at t/2_mmArray.t line 303. # got: '*main::mm_array_unshift' # expected: '' # Failed test 'effect of unshifting (0-length value, normal value) o +n avail mem' # at t/2_mmArray.t line 312. # got: '-32' # expected: '-16'
The call to mm_array_push in test 106 increased the array size by 1 as it should, but accessing the added entry via mm_array_fetch in test 109 yields something that looks like the typeglob for the push routine. A similar problem occurred later for an unshift call, and lots of other errors followed.# test 106: push it back is (mm_array_push ($array, n2alpha(ARRAY_SIZE - 2)), ARRAY_SIZE - 1, "push should return array size"); # test 107 ($size, $shiftCount) = mm_array_status ($array); is ($size, ARRAY_SIZE - 1, "push should increase array size by 1"); # test 108 is ($shiftCount, 0, "push should not affect shift count"); # test 109 is (mm_array_fetch ($array, ARRAY_SIZE - 2), n2alpha(ARRAY_SIZE - 2), "get pushed element");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inscrutable error in CPAN testing
by cdarke (Prior) on Mar 16, 2009 at 09:01 UTC | |
by cmac (Monk) on Mar 16, 2009 at 11:54 UTC | |
by cdarke (Prior) on Mar 16, 2009 at 12:31 UTC | |
by cmac (Monk) on Mar 16, 2009 at 17:16 UTC | |
|
Re: inscrutable error in CPAN testing
by Anonymous Monk on Mar 16, 2009 at 04:50 UTC | |
by cmac (Monk) on Mar 16, 2009 at 11:42 UTC |