Sha256: ee40ae3b73b27ba27fe0c8d00c6a59225943087d09dc67c5e9b2e38810c37fc5
Contents?: true
Size: 460 Bytes
Versions: 38
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true require "test/unit" require_relative "../lib/rust_blank" class BlankTest < Test::Unit::TestCase def test_blank? assert { "".blank? } assert { " ".blank? } assert { " \n\t \r ".blank? } assert { " ".blank? } assert { "\u00a0".blank? } assert { " ".encode("UTF-16LE").blank? } end def test_not_blank? assert { !"a".blank? } assert { !"my value".encode("UTF-16LE").blank? } end end
Version data entries
38 entries across 38 versions & 1 rubygems