File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -598,6 +598,13 @@ Rebol [
598
598
;@@ https://github.com/Oldes/Rebol-issues/issues/161
599
599
--assert [3 2 1 ] = sort/compare [1 2 3 ] func [a b] [return a > b]
600
600
601
+ --test-- "SORT/skip with negative skip"
602
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/736
603
+ --assert all [
604
+ error? e: try [sort/skip [2 1 ] -2 ]
605
+ e/id = 'out-of-range
606
+ ]
607
+
601
608
--test-- "SORT with invalid compare function"
602
609
;@@ https://github.com/Oldes/Rebol-issues/issues/1766
603
610
--assert error? try [sort/compare [1 2 3 ] func [/local loc-1 loc-2][local < loc-1] ]
@@ -1099,6 +1106,13 @@ Rebol [
1099
1106
--test-- "union with none and unset"
1100
1107
--assert [#[none!] #[unset!]] = union [#[none!]] [#[unset!]]
1101
1108
1109
+ --test-- "union/skip with negative skip"
1110
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/736
1111
+ --assert all [
1112
+ error? e: try [union /skip [2 1 ][2 1 ] -2 ]
1113
+ e/id = 'out-of-range
1114
+ ]
1115
+
1102
1116
===end-group===
1103
1117
1104
1118
===start-group=== "UNIQUE & DEDUPLICATE"
You can’t perform that action at this time.
0 commit comments