File:  [parser3project] / parser3 / tests / 134.html
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Mon Jul 4 17:26:49 2016 UTC (9 years, 11 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, HEAD
tests updated after hash blocking removed (related to feature #1073)

@main[]

Update current:
^action{
	$hash.a[-]
}

Insert:
^action{
	$hash.d[4]
}

Delete current:
^action{
	^hash.delete[a]
}

Delete before current:
^action{
	^if($key eq 'b'){
		delete: ^hash.delete[a]
	}
}

Delete after current:
^action{
	^hash.delete[b]
}

@action[code]

$hash[
	$.a[1]
	$.b[2]
	$.c[3]
]

^hash.foreach[key;value]{
	$code
	$key -> $value
}

^json:string[$hash; $.indent(true) ]

E-mail: