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 # almost simplest hash imaginable. make good use of arrays
class Hash module Parfait
end
class Parfait::Hash
def initialize def initialize
@keys = Array.new() @keys = Array.new()
@values = Array.new() @values = Array.new()

View File

@ -8,3 +8,5 @@ require "ast/all"
require "sof/all" require "sof/all"
require "register/register_machine" 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_relative "../helper"
require "parfait/hash"
class TestLists < MiniTest::Test class TestLists < MiniTest::Test
def setup def setup
@list = Hash.new @list = ::Parfait::Hash.new
end end
def test_list_create def test_list_create
assert @list.empty? 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 # All working tests (ahm), still working on the others, so no use to be constantly reminded
require_relative "arm/test_all" require_relative "arm/test_all"
require_relative "parfait/hash"
require_relative "sof" require_relative "sof"
require "parfait/hash_test"
#require_relative "virtual/test_all" #require_relative "virtual/test_all"