File:  [parser3project] / parser3 / tests / 433.html
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Fri Oct 18 01:32:50 2024 UTC (20 months, 2 weeks ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
test updated after constructors renamed

@main[]

^show[^array::copy[$void]]

$a[^array::create[]]

$a.05[a5] $a.20[a20] $a.10[a30] $a.25[$void]

1. ^a.count[] elements, ^show[$a]

2. $h[^hash::create[$a]] ^show[$h]

3. $h[ $.05[h05] $.10[h10] $.1[h1] ]
   $tmp[^hash::create[$h]] ^tmp.add[$a] ^show[$tmp]

4. ^show[^h.union[$a]]

5. ^show[^h.intersection[$a]]

6. $a[^array::copy[^o::create[]]]
   ^show[$a]

7. $obj[^o2::create[]] $o.1
   $a[^array::copy[$obj]]
   $MAIN:log
   as_hash calls def and thus result is empty: ^show[$a]

8. $MAIN:log[]
   $h[^hash::create[$obj]]
   $MAIN:log
   get_hash can still get the hash: ^show[$h]

9. ^try-catch{ $h[^hash::create[^o2-endless-bug::create[]]] }

@show[v]
^json:string[$v; $.array[object] ]

@CLASS
o

@create[]
$1[v1]
$3[v3]
$MAIN:log[created]

@CLASS
o2

@BASE
o

@GET[mode]
^if($mode eq 'def'){ $result(false)}{ $result[^reflection:fields_reference[$self]] }
$MAIN:log[$MAIN:log^#0A$mode called got $result.CLASS_NAME]

@CLASS
o2-endless-bug

@BASE
o

@GET[mode]
$result[$self]

E-mail: