We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40888d commit 9b313adCopy full SHA for 9b313ad
src/ruby/min_max_dc.rb
@@ -1,4 +1,6 @@
1
-require 'test/unit/assertions'
+# frozen_string_literal: true
2
+
3
+require "test/unit/assertions"
4
include Test::Unit::Assertions
5
6
def min_max_dc(vector, start_index, end_index)
@@ -19,4 +21,4 @@ def min_max_dc(vector, start_index, end_index)
19
21
assert_equal([1, 5], min_max_dc([1, 2, 3, 4, 5], 0, 4))
20
22
assert_equal([14, 55], min_max_dc([13, 55, 42, 14, 15], 1, 3))
23
assert_equal([13, 13], min_max_dc([13, 55, 42, 14, 15], 0, 0))
-assert_equal([14, 15], min_max_dc([13, 55, 42, 14, 15], 3, 4))
24
+assert_equal([14, 15], min_max_dc([13, 55, 42, 14, 15], 3, 4))
0 commit comments