Sha256: 98fcac0934e90beb774429d8ac1f4121d124b0f78bd818e7b60bd09b42a7368e
Contents?: true
Size: 781 Bytes
Versions: 1
Compression:
Stored size: 781 Bytes
Contents
describe "type bound functions" do describe "boolean" do it "should evaluate minBool() to False" do expect(MinBool.new.evaluate).to eq(False.new) end it "should evaluate maxBool() to True" do expect(MaxBool.new.evaluate).to eq(True.new) end end describe "colors" do it "should evaluate minColor() to Azul" do expect(MinColor.new.evaluate).to eq(Azul.new) end it "should evaluate maxColor() to Verde" do expect(MaxColor.new.evaluate).to eq(Verde.new) end end describe "directions" do it "should evaluate minDir() to Norte" do expect(MinDir.new.evaluate).to eq(Norte.new) end it "should evaluate maxDir() to Oeste" do expect(MaxDir.new.evaluate).to eq(Oeste.new) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gobstones-0.0.1.1 | spec/lang/expressions/type_bound_functions_spec.rb |