Skip to content

Instantly share code, notes, and snippets.

@ga-wolf
Created June 29, 2015 23:06
Show Gist options
  • Save ga-wolf/7c38ba73f2a7786e1637 to your computer and use it in GitHub Desktop.
Save ga-wolf/7c38ba73f2a7786e1637 to your computer and use it in GitHub Desktop.
Wordy Calculator 1 Test
require_relative './calculator'
require 'minitest/autorun'
require 'minitest/pride'
class CalculatorTest < MiniTest::Test
def setup
@calculator = Calculator.new
end
def test_add_1
assert_equal 2, @calculator.ask('What is 1 plus 1?')
end
def test_add_2
skip
assert_equal 3, @calculator.ask('What is 1 plus 2?')
end
def test_add_more_digits
skip
assert_equal 45801, @calculator.ask('What is 123 plus 45678?')
end
def test_add_negative_numbers
skip
assert_equal -11, @calculator.ask('What is -1 plus -10?')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment