Sha256: 9f3a4a040f40eb8c2d1e90b9095d1497a64fa37a57032f21205e7afa463589d8

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

require 'helper'
require "test/unit"
require "string/width.rb"

class TC_String_width < Test::Unit::TestCase
#describe String, "for width in displayed terminal" do
  def test_width
    assert_equal( 3, "abc".width       )
    assert_equal( 6, "あいう".width    )
    assert_equal( 9, "あaいbうc".width )
    assert_equal( 1, "’".width         )
    assert_equal( 1, "”".width         )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
builtinextension-0.1.4 test/string/test_width.rb
builtinextension-0.1.3 test/test_string_width.rb