Ad
  • Custom User Avatar

    You should compare winning and losing against the 2 duelling teams, not across all matches. So, Tottenham wins and so he has 3 points.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Test.assert_equals(lt.get_points("Tottenham"), 3, "Nope!")

  • Default User Avatar

    My code fails a test under the heading "Totenham should now have 4 goals for":

    Nope! -  Expected: 3, instead got: 4
    

    right after the test

    Test Passed: Value == 4
    

    What is this second test supposed to check? Is the heading maybe missing some information as it seems to check something more than just how many goals Totenham has? The stderr log just gives

    /runner/frameworks/ruby/cw-2.rb:60:in `block in describe': Nope! -  Expected: 3, instead got: 4 (Test::Error)
    	from /runner/frameworks/ruby/cw-2.rb:46:in `measure'
    	from /runner/frameworks/ruby/cw-2.rb:51:in `describe'
    	from /runner/frameworks/ruby/cw-2.rb:202:in `describe'
    	from main.rb:131:in `block in <main>'
    	from /runner/frameworks/ruby/cw-2.rb:55:in `block in describe'
    	from /runner/frameworks/ruby/cw-2.rb:46:in `measure'
    	from /runner/frameworks/ruby/cw-2.rb:51:in `describe'
    	from /runner/frameworks/ruby/cw-2.rb:202:in `describe'
    	from main.rb:91:in `<main>'