Skip to content

Instantly share code, notes, and snippets.

@havenwood

havenwood/intelo.rb Secret

Created Sep 7, 2019
Embed
What would you like to do?
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
You can’t perform that action at this time.