-
-
Save ga-wolf/7c38ba73f2a7786e1637 to your computer and use it in GitHub Desktop.
Wordy Calculator 1 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_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