Skip to content

Commit a8bfe77

Browse files
committed
1 parent a35adc7 commit a8bfe77

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/tests/units/series-test.r3

+14
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,13 @@ Rebol [
598598
;@@ https://github.com/Oldes/Rebol-issues/issues/161
599599
--assert [3 2 1] = sort/compare [1 2 3] func [a b] [return a > b]
600600

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+
601608
--test-- "SORT with invalid compare function"
602609
;@@ https://github.com/Oldes/Rebol-issues/issues/1766
603610
--assert error? try [sort/compare [1 2 3] func [/local loc-1 loc-2][local < loc-1] ]
@@ -1099,6 +1106,13 @@ Rebol [
10991106
--test-- "union with none and unset"
11001107
--assert [#[none!] #[unset!]] = union [#[none!]] [#[unset!]]
11011108

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+
11021116
===end-group===
11031117

11041118
===start-group=== "UNIQUE & DEDUPLICATE"

0 commit comments

Comments
 (0)