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
|
# 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()
|
||||||
|
@ -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"
|
||||||
|
@ -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?
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user