From c8edcddcf630fe7c367f38d99d2a0d16972dd542 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Fri, 16 Dec 2011 11:42:45 +0100 Subject: [PATCH] tests added --- test/functional_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/functional_test.rb diff --git a/test/functional_test.rb b/test/functional_test.rb new file mode 100644 index 0000000..20aa11e --- /dev/null +++ b/test/functional_test.rb @@ -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