File tree 2 files changed +16
-3
lines changed
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 47
47
return (num > 0 );
48
48
}
49
49
50
- static void No_Nones (REBVAL * arg ) {
50
+ static void No_Nones_Or_Logic (REBVAL * arg ) {
51
51
arg = VAL_BLK_DATA (arg );
52
52
for (; NOT_END (arg ); arg ++ ) {
53
- if (IS_NONE (arg )) Trap_Arg (arg );
53
+ if (IS_NONE (arg ) || IS_LOGIC ( arg ) ) Trap_Arg (arg );
54
54
}
55
55
}
56
56
@@ -289,7 +289,7 @@ static void No_Nones(REBVAL *arg) {
289
289
if (ANY_BLOCK (arg )) {
290
290
len = VAL_BLK_LEN (arg );
291
291
if (len > 0 && type >= REB_PATH && type <= REB_LIT_PATH )
292
- No_Nones (arg );
292
+ No_Nones_Or_Logic (arg );
293
293
ser = Copy_Values (VAL_BLK_DATA (arg ), len );
294
294
goto done ;
295
295
}
Original file line number Diff line number Diff line change @@ -648,6 +648,19 @@ Rebol [
648
648
===end-group===
649
649
650
650
651
+ ===start-group=== "TO-*"
652
+
653
+ --test-- "to-path"
654
+ --assert (mold to-path [1 2 3 ]) = "1/2/3"
655
+ --assert (mold to-path [1 none 3 ]) = "1/none/3"
656
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/477
657
+ --assert error? try [to-path [1 #[none] 3 ]]
658
+ --assert error? try [to-path [1 #[true] 3 ]]
659
+ --assert error? try [to-path [1 #[false] 3 ]]
660
+
661
+ ===end-group===
662
+
663
+
651
664
;-- VECTOR related tests moved to %vector-test.r3
652
665
653
666
~~~end-file~~~
You can’t perform that action at this time.
0 commit comments