File:  [parser3project] / parser3 / tests / 427.html
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sat Oct 19 17:06:52 2024 UTC (19 months, 1 week ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
test updated after constructors renamed

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.copy[] ^json:string[$a]
   or added: ^a.copy[ $.3[3] ] ^json:string[$a]
   or ignored ^a.copy[$a] ^json:string[$a]

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

E-mail: