File:  [parser3project] / parser3 / tests / 324.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Tue Nov 10 23:33:16 2015 UTC (10 years, 6 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, HEAD
parser 3.4.3 execution support added (related to feature #1017)

@main[]

^rem{ OP_GET_ELEMENT4CALL, OP_GET_OBJECT_ELEMENT4CALL, OP_GET_OBJECT_VAR_ELEMENT4CALL are tested here }

^test[ $.name[value] ]
^test[ $._count[is count] $.name[value] ]

^test[ ^table::create{name
value} ]

^test[ ^table::create{name	count
value	is count} ]

@test[h]
Testing $h.CLASS_NAME

Test-hash:
^test-hash[$h]
Test-table:
^test-table[$h]
Test-no-such-method:
^test-no-such-method[$h]

@test-hash[h][deep;var]

$deep[ $.h[$h] ]
$var[_count]

^t-c{var: $deep.h._count}
^t-c{method: ^deep.h._count[]}
^t-c{var: $deep.h.$var}
^t-c{method: ^deep.h.$var[]}

^t-c{var: $h._count}
^t-c{method: ^h._count[]}
^t-c{var: $h.$var}
^t-c{method: ^h.$var[]}

@test-table[h][deep;var]

$deep[ $.h[$h] ]
$var[count]

^t-c{var: $deep.h.count}
^t-c{method: ^deep.h.count[]}
^t-c{var: $deep.h.$var}
^t-c{method: ^deep.h.$var[]}

^t-c{var: $h.count}
^t-c{method: ^h.count[]}
^t-c{var: $h.$var}
^t-c{method: ^h.$var[]}

@test-no-such-method[h][deep;var]

$deep[ $.h[$h] ]
$var[no-such-method]

^t-c{var: $deep.h.no-such-method}
^t-c{method: ^deep.h.no-such-method[]}
^t-c{var: $deep.h.$var}
^t-c{method: ^deep.h.$var[]}

^t-c{var: $h.no-such-method}
^t-c{method: ^h.no-such-method[]}
^t-c{var: $h.$var}
^t-c{method: ^h.$var[]}

@t-c[code]
$result[^try-catch{$code}]
^if($result is junction){$result[junction]}

E-mail: