fix parfait test
This commit is contained in:
parent
5bb03f2d8b
commit
d94ec6c72c
@ -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()
|
||||
|
@ -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"
|
||||
|
@ -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?
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user