Sha256: d817a83d5b82cbb2451eac3b9fd4a443d58afa535adb6e0e3976f4eae07795e3
Contents?: true
Size: 745 Bytes
Versions: 3
Compression:
Stored size: 745 Bytes
Contents
#! /usr/bin/ruby #encoding: utf-8 require 'minitest/autorun' require_relative '../../lib/y_support/misc/local_object' describe "LocalObject" do describe "Object" do it "should have constructor #LocalObject, alias #L!" do assert_equal LocalObject, LocalObject().class assert_equal LocalObject, L!.class end it "should have #local_object?, alias #ℓ?" do assert_equal false, Object.new.local_object? assert_equal false, Object.new.ℓ? end end describe "LocalObject" do it "should exist and comply" do n = LocalObject.new 'whatever' assert ! n.ℓ? assert n.ℓ? 'whatever' assert_equal 'whatever', n.signature assert_equal 'whatever', n.σ end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
y_support-2.5.3 | test/misc/local_object_test.rb |
y_support-2.5.2 | test/misc/local_object_test.rb |
y_support-2.5.1 | test/misc/local_object_test.rb |