File:  [parser3project] / parser3 / tests / 444.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Dec 7 15:16:25 2024 UTC (17 months, 3 weeks ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
tests for named params (related to feature #1205)

@main[]

$v[main]
$v1[main]
$arg1[main]
$arg2[main]

1. ^test[value]
2. ^test[value;  ]
3. ^try-catch{ ^test[value; not ok] }
4. ^try-catch{ ^test[value;;extra arg] }
5. ^test[value; $.arg1[x] ]
6. ^test[value; $.arg2[y] $.arg1[x] ]
7. ^test[value; $.extra[extra] $.arg2[y] $.arg1[x] ]

8.1 ^try-catch{ ^test2[] }
8.2 ^try-catch{ ^test3[] }
8.3 ^try-catch{ ^test4[] }

9. ^try-catch{ ^test2[;] }

10. ^json:string[^reflection:method_info[$test5]]
11. ^json:string[^reflection:method_info[$test6]]
12. ^json:string[^reflection:method_info[$test7]]

@test[v;.arg1;.arg2]
v: $v
arg1:^json:string[$arg1]
arg2:^json:string[$arg2]

@test2[.arg1;.arg2]
arg1:^json:string[$arg1]
arg2:^json:string[$arg2]

@test3[*v]
v: ^json:string[$v]

@test4[v;v1]
v: ^json:string[$v]
v1: ^json:string[$v1]

@test5[v1;.v2;v3]
# no code to avoid file

@test6[v1;.v2;v3;.v4;.v5]
# no code to avoid file

@test7[v1;*v2]
# no code to avoid file

E-mail: