Created
December 7, 2010 16:59
-
-
Save darthdeus/732059 to your computer and use it in GitHub Desktop.
Ruby Arrays and Ranges Koans
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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