Created
June 28, 2012 01:31
-
-
Save squeedee/3008118 to your computer and use it in GitHub Desktop.
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
# -*- encoding: utf-8 -*- | |
require 'test/unit' | |
require 'set_assertions' | |
class SetAssertionsTest < Test::Unit::TestCase | |
def test_two_empty_tests_pass | |
assert_identical_set([],[]) | |
end | |
def test_two_identical_sets_of_length_1_pass | |
assert_identical_set([:a],[:a]) | |
end | |
def test_an_empty_set_and_a_unit_set_fail | |
!assert_identical_set([:a],[]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment