Sha256: be92eb43d8c2c9e65c50f95023ecc5d562d81a9e7f7e21a30168d35e86edcf69
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
#-- # $Id: tc_tuple.rb 1 2006-08-24 20:34:21Z prelude $ # # # This file is part of the Prelude library that provides tools to # enable Haskell style functional programming in Ruby. # # http://prelude.rubyforge.org # # Copyright (C) 2006 APP Design, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #++ class TestTuple < Test::Unit::TestCase def setup # Nothing end # setup def teardown # Nothing end # teardown def test_tuple result = Tuple.new([1, 2, 3, 4, 5]) expect = [1, [2, 3, 4, 5]] assert_equal(expect, result) end end # TestTuple
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prelude-0.0.1 | test/tc_tuple.rb |