Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created September 7, 2019 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havenwood/8e55cb14ce064d9b04a9f7d48a08a18d to your computer and use it in GitHub Desktop.
Save havenwood/8e55cb14ce064d9b04a9f7d48a08a18d to your computer and use it in GitHub Desktop.
An example failing test.
require 'minitest/autorun'
def foo(has)
end
describe "Intelo's problem" do
let :has do
[[1, 1], [["a", "a"], ["b", "b"]], [2, 2], [["c", "c"], ["d", "d"]], [3, 3]]
end
let :wants do
{1=>1, "a"=>"a", "b"=>"b", 2=>2, "c"=>"c", "d"=>"d", 3=>3}
end
it 'is as desired' do
assert_equal foo(has), wants
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment