Sha256: 0a0b1eefad2909dd2b62735197ceecafcbebcfc9810fa8415d051a6dd5baf9c7

Contents?: true

Size: 331 Bytes

Versions: 10

Compression:

Stored size: 331 Bytes

Contents

require 'minitest/autorun'
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

10 entries across 10 versions & 1 rubygems

Version Path
yawast-0.4.0.beta4 test/test_string_ext.rb
yawast-0.4.0.beta3 test/test_string_ext.rb
yawast-0.4.0.beta2 test/test_string_ext.rb
yawast-0.4.0.beta1 test/test_string_ext.rb
yawast-0.3.0 test/test_string_ext.rb
yawast-0.3.0.beta2 test/test_string_ext.rb
yawast-0.3.0.beta1 test/test_string_ext.rb
yawast-0.2.2 test/test_string_ext.rb
yawast-0.2.1 test/test_string_ext.rb
yawast-0.2.0.beta3 test/test_string_ext.rb