-
-
Save havenwood/8e55cb14ce064d9b04a9f7d48a08a18d to your computer and use it in GitHub Desktop.
An example failing test.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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