File:  [parser3project] / parser3 / tests / 427.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Oct 2 02:45:35 2024 UTC (23 months, 1 week ago) by moko
Branches: MAIN
CVS tags: HEAD
first portion of array tests added (related to feature #930)

Constructors as methods:

$t[^table::create{data
data1
data2}]

1. table cleared: ^t.create{} ^json:string[$t]

$h[ $.1[1] $.2[2] ]

2. hash kept: ^h.create[] ^json:string[$h]
   or added : ^h.create[ $.3[3] ] ^json:string[$h]
   or ignored ^h.create[$h] ^json:string[$h]

$a[1;2]

3. array kept: ^a.create[] ^json:string[$a]
   or added: ^a.create[ $.3[3] ] ^json:string[$a]
   or ignored ^a.create[$a] ^json:string[$a]

4. array kept: ^a.new[] ^json:string[$a]
   or added: ^a.new[4] ^json:string[$a]
   or nested: ^a.new[$a] ^try-catch{ ^json:string[$a] }

E-mail: