Skip to content

Instantly share code, notes, and snippets.

@Wolwer1nE
Created September 28, 2022 07:42
Show Gist options
  • Save Wolwer1nE/3f73a884163c08d92d43f14f36378b9e to your computer and use it in GitHub Desktop.
Save Wolwer1nE/3f73a884163c08d92d43f14f36378b9e to your computer and use it in GitHub Desktop.
Code and Test in single file
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