Sha256: 70f198e39d10362fa179ef210365b061cc61b8912a3e66c4865eb717bf1923b8
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
require_relative "../lib/unicode/age" require "minitest/autorun" describe Unicode::Age do it "returns required Unicode version to display a string" do assert_equal 1.1, Unicode::Age.of("A") assert_equal 2.0, Unicode::Age.of("\u{10FFFD}") assert_equal 3.0, Unicode::Age.of("ℜսᖯʏ") assert_equal 3.1, Unicode::Age.of("ℜ𝘂ᖯʏ") assert_equal 6.0, Unicode::Age.of("🚡") assert_equal 7.0, Unicode::Age.of("🛲") assert_equal 8.0, Unicode::Age.of("🌮 ") end it "returns nil for unassigned codepoints" do assert_equal nil, Unicode::Age.of("\u{10FFFF}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unicode-age-1.0.0 | spec/unicode_age_spec.rb |