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-29.0.0 ./ext/cargo-vendor/magnus-0.7.1/examples/rust_blank/test/blank_test.rb
wasmtime-28.0.0 ./ext/cargo-vendor/magnus-0.7.1/examples/rust_blank/test/blank_test.rb
wasmtime-27.0.0 ./ext/cargo-vendor/magnus-0.7.1/examples/rust_blank/test/blank_test.rb
wasmtime-26.0.0 ./ext/cargo-vendor/magnus-0.7.1/examples/rust_blank/test/blank_test.rb
wasmtime-25.0.2 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-25.0.1 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-25.0.0 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-24.0.0 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-23.0.2 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-22.0.0 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-21.0.1 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-20.0.2 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-20.0.0 ./ext/cargo-vendor/magnus-0.6.4/examples/rust_blank/test/blank_test.rb
wasmtime-18.0.3 ./ext/cargo-vendor/magnus-0.6.2/examples/rust_blank/test/blank_test.rb
wasmtime-17.0.1 ./ext/cargo-vendor/magnus-0.6.2/examples/rust_blank/test/blank_test.rb
wasmtime-17.0.0 ./ext/cargo-vendor/magnus-0.6.2/examples/rust_blank/test/blank_test.rb
wasmtime-16.0.0 ./ext/cargo-vendor/magnus-0.6.2/examples/rust_blank/test/blank_test.rb
wasmtime-15.0.1 ./ext/cargo-vendor/magnus-0.6.2/examples/rust_blank/test/blank_test.rb
wasmtime-15.0.0 ./ext/cargo-vendor/magnus-0.6.2/examples/rust_blank/test/blank_test.rb
wasmtime-14.0.4 ./ext/cargo-vendor/magnus-0.5.5/examples/rust_blank/test/blank_test.rb