From b46af308b3c5ed66f27a1bb9a8a2971644dc506b Mon Sep 17 00:00:00 2001 From: Whiteknight Date: Tue, 8 Dec 2009 21:17:26 -0500 Subject: [PATCH] add a stub test file to exercise cell arrays --- t/syntax/cell.t | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 t/syntax/cell.t diff --git a/t/syntax/cell.t b/t/syntax/cell.t new file mode 100644 index 0000000..a4a9f55 --- /dev/null +++ b/t/syntax/cell.t @@ -0,0 +1,16 @@ +plan(4); + +x = {}; +is(parrot_typeof(x), "PMCMatrix2D"); +ok(iscell(x)); +is(columns(x), 0); +is(rows(x), 0); + +# Tests to do: +# non-empty cell +# cell () indexing lvalue +# cell () indexing rvalue +# cell () indexing autoextend +# cell {} indexing lvalue +# cell {} indexing rvalue +# cell {} indexing autovivify