Title / Description
Code require "test/unit" require "merge_sort" # Tests use Array#sort as authoritative; good enough for now. class TestMergeSort < Test::Unit::TestCase def test_empty_array a = [] assert_equal(a, a.merge_sort) end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code