Sha256: a2510ae7dc881c3ca109564d14e2f3b770aac36235cb7318fd27200a77746943

Contents?: true

Size: 304 Bytes

Versions: 27

Compression:

Stored size: 304 Bytes

Contents

require File.dirname(__FILE__) + '/../lib/yawast'
require File.dirname(__FILE__) + '/base'

class TestStringExtensions < Minitest::Test
  include TestBase

  def test_valid_number
    assert_equal '42'.is_number?, true
  end

  def test_invalid_number
    assert_equal '4two'.is_number?, false
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
yawast-0.7.2 test/test_string_ext.rb
yawast-0.7.1 test/test_string_ext.rb
yawast-0.7.0 test/test_string_ext.rb
yawast-0.7.0.beta3 test/test_string_ext.rb
yawast-0.7.0.beta2 test/test_string_ext.rb
yawast-0.7.0.beta1 test/test_string_ext.rb
yawast-0.6.0 test/test_string_ext.rb
yawast-0.6.0.beta6 test/test_string_ext.rb
yawast-0.6.0.beta5 test/test_string_ext.rb
yawast-0.6.0.beta4 test/test_string_ext.rb
yawast-0.6.0.beta3 test/test_string_ext.rb
yawast-0.6.0.beta2 test/test_string_ext.rb
yawast-0.6.0.beta1 test/test_string_ext.rb
yawast-0.5.2 test/test_string_ext.rb
yawast-0.5.1 test/test_string_ext.rb
yawast-0.5.1.beta1 test/test_string_ext.rb
yawast-0.5.0 test/test_string_ext.rb
yawast-0.5.0.beta8 test/test_string_ext.rb
yawast-0.5.0.beta7 test/test_string_ext.rb
yawast-0.5.0.beta6 test/test_string_ext.rb