Annotation of parser3/tests/redis/config.p, revision 1.2

1.1       moko        1: # the redis-server started by run_tests.sh
                      2: 
                      3: @auto[]
                      4: $options[
                      5:        $.port(6399)
                      6:        $.password[test]
                      7: ]
                      8: 
                      9: @open_redis[extra][o]
                     10: $o[^hash::create[$options]]
                     11: ^if($extra is hash){^o.add[$extra]}
                     12: $result[^redis::open[$o]]
                     13: 
                     14: # the value as one-line json, to see the types
1.2     ! moko       15: @show[value]
        !            16: $result[^json:string[$value; $.one-line(true) ]]
1.1       moko       17: 
                     18: # the exception of the code, which is expected
                     19: @failed[code]
                     20: ^try{$code}{$exception.handled(true)$exception.type: $exception.comment}
                     21: 
                     22: @unhandled_exception[exception;stack]
                     23: $exception.type: $exception.comment

E-mail: