Created
September 28, 2022 07:42
-
-
Save Wolwer1nE/3f73a884163c08d92d43f14f36378b9e to your computer and use it in GitHub Desktop.
Code and Test in single file
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
def my_method(a,b) | |
a+b | |
end | |
require 'test/unit' | |
class MyMethodTest < Test::Unit::TestCase | |
def test_zeroes | |
assert_equal(0, my_method(0, 0)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment