Author: chromatic
Date: Tue Oct 2 14:38:49 2007
New Revision: 21762
Modified:
branches/pdd15oo/t/library/dumper.t
branches/pdd15oo/t/pmc/resizablepmcarray.t
Log:
[t] Fixed two more failing tests from ResizablePMCArray returning PMCNULL, not
Undef, for non-existent values.
Modified: branches/pdd15oo/t/library/dumper.t
==============================================================================
--- branches/pdd15oo/t/library/dumper.t (original)
+++ branches/pdd15oo/t/library/dumper.t Tue Oct 2 14:38:49 2007
@@ -581,7 +581,6 @@
new array, 'ResizablePMCArray'
push array, 0
-
push array, "0"
null temp
@@ -602,7 +601,7 @@
"array" => ResizablePMCArray (size:5) [
0,
"0",
- undef,
+ null,
0,
"0"
]
Modified: branches/pdd15oo/t/pmc/resizablepmcarray.t
==============================================================================
--- branches/pdd15oo/t/pmc/resizablepmcarray.t (original)
+++ branches/pdd15oo/t/pmc/resizablepmcarray.t Tue Oct 2 14:38:49 2007
@@ -228,10 +228,14 @@
OUTPUT
pasm_output_is( <<'CODE', <<'OUTPUT', "Getting out-of-bounds elements" );
- new P0, 'ResizablePMCArray'
- set P0, 1
+ new P0, 'ResizablePMCArray'
+ set P0, 1
- set I0, P0[1]
+ set P1, P0[1]
+ if_null P1, ok
+ print "not ok 1\n"
+ end
+ ok:
print "ok 1\n"
end
CODE