test for references
still failing
This commit is contained in:
parent
bdd67b3213
commit
5ca9eed89c
25
test/test_refs.rb
Normal file
25
test/test_refs.rb
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
require_relative "helper"
|
||||||
|
|
||||||
|
class TestRefs < MiniTest::Test
|
||||||
|
include Checker
|
||||||
|
|
||||||
|
def setup
|
||||||
|
@hash = {}
|
||||||
|
@array =[]
|
||||||
|
end
|
||||||
|
def fill_some
|
||||||
|
@hash[:some] = @array
|
||||||
|
@array[1] = :one
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_one_empty
|
||||||
|
@out = @array << @hash
|
||||||
|
check "-{}"
|
||||||
|
end
|
||||||
|
def test_two_empty
|
||||||
|
@out = @array << @hash
|
||||||
|
@out << @hash
|
||||||
|
check "-&1 {}
|
||||||
|
-*1"
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user