test for references

still failing
This commit is contained in:
Torsten Ruger 2015-06-14 00:06:49 +03:00
parent bdd67b3213
commit 5ca9eed89c
1 changed files with 25 additions and 0 deletions

25
test/test_refs.rb Normal file
View 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