File:  [parser3project] / parser3 / tests / 434.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Oct 27 13:24:29 2024 UTC (22 months, 2 weeks ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
tests for last element used, push/pop, exceptions during arguments processing and used caching (related to feature #930)

@main[]

1.  $a[v1;v2;$void;v5]
   ^a.count[]
    $a.8[v6] $a.10[v7] ^a.push[last]
    ^while(^a.count[all]){	^a.count[all] vs ^a.count[], pop '^a.pop[]'
    }

2.  $a[v1;v2]

   ^try-catch{ ^a.append[v3](2+2){^bug[]}[v4] }

   ^a.count[]
   ^show[$a]

   ^try-catch{ ^a.insert(1)(1+1){^bug[]}[v5] }

   ^a.count[]
   ^show[$a]

3. $a[^array::create[]]
   ^a.append[0;1]
   ^a.count[]
   ^a.insert(2)[2;3]
   ^a.count[]
   $a[^array::create[]]
   ^a.insert(2)[2;3]
   ^a.count[] // counted, OK

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

E-mail: