Sha256: 3ad73bd3d659979d66f472120913ecb2e620eaa2d2c862b614049708692e7583
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
#!/usr/bin/env ruby # tuple.rb # Kernel#Tuple unit tests require 'test/unit' require 'pathname' dir = Pathname.new(File.expand_path(__FILE__)).realpath require File.join(File.dirname(dir.to_s), '../lib/rex') class TupleTests < Test::Unit::TestCase def test_tuple expected = true actual = false assert_nothing_raised do t1 = Tuple([1,2,3]) t2 = Tuple(1, 3, 4) actual = t1 < t2 end assert_instance_of(TrueClass, actual) assert_equal(expected, actual) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rex-0.0.4 | test/tuple.rb |