fix parfait test

This commit is contained in:
Torsten Ruger 2014-09-04 14:22:28 +03:00
parent 5bb03f2d8b
commit d94ec6c72c
4 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,7 @@
# almost simplest hash imaginable. make good use of arrays
class Hash
module Parfait
end
class Parfait::Hash
def initialize
@keys = Array.new()
@values = Array.new()

View File

@ -7,4 +7,6 @@ require "virtual/machine"
require "ast/all"
require "sof/all"
require "register/register_machine"
require_relative "stream_reader"
require_relative "stream_reader"
require_relative "parfait/hash"

View File

@ -1,10 +1,9 @@
require_relative "../helper"
require "parfait/hash"
class TestLists < MiniTest::Test
def setup
@list = Hash.new
@list = ::Parfait::Hash.new
end
def test_list_create
assert @list.empty?

View File

@ -1,6 +1,6 @@
# All working tests (ahm), still working on the others, so no use to be constantly reminded
require_relative "arm/test_all"
require_relative "parfait/hash"
require_relative "sof"
require "parfait/hash_test"
#require_relative "virtual/test_all"