spec/unicode_age_spec.rb in unicode-age-1.0.1 vs spec/unicode_age_spec.rb in unicode-age-1.1.0

- old
+ new

@@ -6,11 +6,12 @@ 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("🛲") if RUBY_VERSION >= "2.2.0" + assert_equal 7.0, Unicode::Age.of("🛲 ") if RUBY_VERSION >= "2.2.0" assert_equal 8.0, Unicode::Age.of("🌮 ") if RUBY_VERSION >= "2.3.0" + assert_equal 9.0, Unicode::Age.of("🛒 ") if RUBY_VERSION >= "2.4.0" end it "returns nil for unassigned codepoints" do assert_equal nil, Unicode::Age.of("\u{10FFFF}") end