Skip to content

Commit 4e484db

Browse files
committed
Add "large" numbers case.
1 parent aada6f1 commit 4e484db

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

indexes/spec/lib/rust/array_spec.rb

+9
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,15 @@
329329
intersected.sort_by! { |x| -x }
330330
intersected.assert == Rust::Array.new << 15 << 14
331331
end
332+
it 'handles large numbers' do
333+
array << 10_000
334+
array << 10_001
335+
array << 10_002
336+
array.shift.assert == 10_000
337+
338+
array.sort_by! { |x| -x }
339+
array.assert == Rust::Array.new << 10_002 << 10_001
340+
end
332341
end
333342

334343
end

0 commit comments

Comments
 (0)