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

Version Path
wasmtime-14.0.3 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-14.0.1 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-14.0.0 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-13.0.0 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-12.0.1 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-12.0.0 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-11.0.0 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-10.0.1 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-10.0.0 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-9.0.4 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb
wasmtime-9.0.1 ./ext/cargo-vendor/magnus-0.5.3/examples/rust_blank/test/blank_test.rb
wasmtime-8.0.0 ./ext/cargo-vendor/magnus-0.5.3/examples/rust_blank/test/blank_test.rb
wasmtime-7.0.0 ./ext/cargo-vendor/magnus-0.5.2/examples/rust_blank/test/blank_test.rb
wasmtime-6.0.1 ./ext/cargo-vendor/magnus-0.5.1/examples/rust_blank/test/blank_test.rb
wasmtime-6.0.0 ./ext/cargo-vendor/magnus-0.5.1/examples/rust_blank/test/blank_test.rb
wasmtime-5.0.0 ./ext/cargo-vendor/magnus-0.4.4/examples/rust_blank/test/blank_test.rb
wasmtime-0.4.1 ./ext/cargo-vendor/magnus-0.4.4/examples/rust_blank/test/blank_test.rb
wasmtime-0.4.0 ./ext/cargo-vendor/magnus-0.4.3/examples/rust_blank/test/blank_test.rb