Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 470 Bytes

README.markdown

File metadata and controls

23 lines (17 loc) · 470 Bytes

ExampleSet

It's a Ruby thing, yes?

describe "String#reverse" do
  it "should reverse strings consistently" do
    @example_set = ExampleSet.new
    @example_set.inputs = "foo", "bar", "baz"
    @example_set.outputs = "oof", "rab", "zab"
    @example_set.compare do |input, expected|
      expected.should == input.reverse
    end        
  end
end

More in the spec.

Licence

The One True Licence: BSD.