Sha256: 10b82aef8a875e736b638f12399ff19bca331127f0aeb1ec31bd91e6c9a37be2

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 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

1 entries across 1 versions & 1 rubygems

Version Path
builtinextension-0.1.2 test/test_string_width.rb