Skip to content

Instantly share code, notes, and snippets.

@squeedee
Created June 28, 2012 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squeedee/3008118 to your computer and use it in GitHub Desktop.
Save squeedee/3008118 to your computer and use it in GitHub Desktop.
# -*- 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