tests added

master
Denis Knauf 2011-12-16 11:42:45 +01:00
parent 53033b8cdd
commit c8edcddcf6
1 changed files with 14 additions and 0 deletions

14
test/functional_test.rb Normal file
View File

@ -0,0 +1,14 @@
require 'test/unit'
require 'functional'
class FunTest < Test::Unit::TestCase
def test_to_fun_exists
assert_respond_to Object, :to_fun
end
def test_to_fun_to_a
assert_equal (0..100).to_a, (0..100).to_fun.to_a
end
end