File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 170
170
171
171
// Append new value the target series:
172
172
if (mode > 1 ) {
173
- hashes [hash ] = SERIES_TAIL (series )+ 1 ;
173
+ hashes [hash ] = ( SERIES_TAIL (series ) / wide ) + 1 ;
174
174
//Debug_Num("hash:", hashes[hash]);
175
175
Append_Series (series , (REBYTE * )key , wide );
176
176
//Dump_Series(series, "hash");
Original file line number Diff line number Diff line change @@ -2162,6 +2162,15 @@ Rebol [
2162
2162
--test-- "union with none and unset"
2163
2163
--assert [#[none] # [unset]] = union [#[none]] [# [unset]]
2164
2164
2165
+ --test-- "union/skip"
2166
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2520
2167
+ --assert (union [a 1 b 2 ] [a 1 b 2 ] ) == [a 1 b 2 ]
2168
+ --assert (union /skip [b 1 b 2 ] [b 1 b 2 ] 2 ) == [b 1 ]
2169
+ --assert (union /skip [b 1 b 2 ] [b 2 b 2 ] 2 ) == [b 1 ]
2170
+ --assert (union /skip [b 2 b 2 ] [b 2 b 2 ] 2 ) == [b 2 ]
2171
+ --assert (union /skip [a 1 b 2 ] [a 1 b 2 ] 2 ) == [a 1 b 2 ]
2172
+ --assert (union /skip ["a" 1 "b" 2 ] ["a" 1 "b" 2 ] 2 ) == ["a" 1 "b" 2 ]
2173
+
2165
2174
--test-- "union/skip with negative skip"
2166
2175
;@@ https://github.com/Oldes/Rebol-issues/issues/736
2167
2176
--assert all [
You can’t perform that action at this time.
0 commit comments