Skip to content

Commit 5ba2ee8

Browse files
committed
1 parent f88c2ed commit 5ba2ee8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/extension/test.c

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const char *init_block =
1515
"addi2: command [i1 [integer!] i2 [integer!]]\n" // this one is not exported
1616
"bad-args: command [{generic error}]\n"
1717
"error: command [{throws an error with text}]\n"
18+
// https://github.com/Oldes/Rebol-issues/issues/1809
19+
"export test-ctx: context [ a: 1 ]\n"
20+
"export echo-value: command [{returns the input value} value]\n"
1821
;
1922

2023
RXIEXT const char *RX_Init(int opts, RL_LIB *lib) {
@@ -42,6 +45,8 @@ RXIEXT int RX_Call(int cmd, RXIFRM *frm, void *ctx) {
4245
case 3:
4346
RXA_SERIES(frm,1) = "test error!";
4447
return RXR_ERROR;
48+
case 4:
49+
return RXR_VALUE;
4550

4651
}
4752
return RXR_VALUE;

0 commit comments

Comments
 (0)