Sha256: 875c712d509247ef6c61106014766f3a2090886f2da5df02654895904d8bfc43
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
require 'minitest/autorun' require 'widen' class TestWiden < Minitest::Test def test_no_mutation assert_equal 'ABCDE', 'abcde'.upcase.widen assert_equal 'abcde', 'ABCDE'.narrowen.downcase end def test_mutation x = 'abcde'.upcase x.widen! assert_equal 'ABCDE', x x = 'ABCDE'.downcase x.narrowen! assert_equal 'abcde', x end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
widen-1.0.0 | test/test_widen.rb |