Sha256: c5f42b2f654161b3025bbe2955bf9ca8f259377e9bea6f6b0f7c86589fa9792f
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require 'helper' require "test/unit" require "string/float" class TC_String_Float < Test::Unit::TestCase def test_float? assert_equal(false, String.float?("あいうえお")) assert_equal(true , String.float?("123" )) assert_equal(true , String.float?("3.14" )) assert_equal(false, String.float?("12345")) assert_equal(false, "あいうえお".float?) assert_equal(true , "123" .float?) assert_equal(true , "3.14" .float?) assert_equal(false, "12345".float?) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
builtinextension-0.1.4 | test/string/test_float.rb |