Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 8eac608e96
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.424 kB
require 'test/unit'
require 'properties_helper'
class TestIsOrdered < Test::Unit::TestCase
include PropertiesHelper
def test_empty
assert is_ordered?([])
end
def test_one
assert is_ordered?([1])
end
def test_two
assert is_ordered?([1, 2])
end
def test_two_disordered
assert !is_ordered?([2, 1])
end
def test_repeated
assert is_ordered?([1, 2, 2, 2, 3])
end
end
Jump to Line
Something went wrong with that request. Please try again.