File:  [parser3project] / parser3 / tests / redis / config.p
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Oct 10 13:10:22 2026 UTC (13 days, 18 hours ago) by moko
Branches: MAIN
CVS tags: HEAD
minor code cleanup in tests

# the redis-server started by run_tests.sh

@auto[]
$options[
	$.port(6399)
	$.password[test]
]

@open_redis[extra][o]
$o[^hash::create[$options]]
^if($extra is hash){^o.add[$extra]}
$result[^redis::open[$o]]

# the value as one-line json, to see the types
@show[value]
$result[^json:string[$value; $.one-line(true) ]]

# the exception of the code, which is expected
@failed[code]
^try{$code}{$exception.handled(true)$exception.type: $exception.comment}

@unhandled_exception[exception;stack]
$exception.type: $exception.comment

E-mail: