Skip to content

Instantly share code, notes, and snippets.

@darthdeus
Created December 7, 2010 16:59
Show Gist options
  • Save darthdeus/732059 to your computer and use it in GitHub Desktop.
Save darthdeus/732059 to your computer and use it in GitHub Desktop.
Ruby Arrays and Ranges Koans
def test_arrays_and_ranges
assert_equal __, (1..5).class
assert_not_equal __, (1..5)
assert_equal __, (1..5).to_a
assert_equal __, (1...5).to_a
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment