Sha256: 1e8dab6d4d7d84e7e90ddf46f580125c20ff2bcac011ad4bf4d1957f94ebf018
Contents?: true
Size: 387 Bytes
Versions: 6
Compression:
Stored size: 387 Bytes
Contents
require 'test/unit' require 'rubygems' require File.join(File.dirname(__FILE__), '../init') class MatchTest < Test::Unit::TestCase def test_match_range # succeeded assert_equal 1, 1.must.match(0..3) assert_equal 'b', 'b'.must.match('a'..'c') # failed assert_raises(Invalid) { 1.must.match(2..3) } assert_raises(Invalid) { 'a'.must.match('y'..'z') } end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
must-0.2.8 | test/match_test.rb |
must-0.2.7 | test/match_test.rb |
must-0.2.6 | test/match_test.rb |
must-0.2.5 | test/match_test.rb |
must-0.2.4 | test/match_test.rb |
must-0.2.3 | test/match_test.rb |