Start on Item and ItemSet

This commit is contained in:
josh committed 2021-08-28 09:02:19 -04:00
1 parent 6ce94e15af
commit 2e16b0bd6e
5 files changed
+86

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
class Imbecile
class Parser
describe Item do
it "operates properly with a set" do
rule = Object.new
item1 = Item.new(rule, 2)
item2 = Item.new(rule, 2)
expect(item1).to eq item2
expect(item1.eql?(item2)).to be_truthy
set = Set.new([item1, item2])
expect(set.size).to eq 1
end
end
end
end