Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bob for language changes #1022

Merged
merged 1 commit into from
Jan 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions exercises/bob/bob_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'minitest/autorun'
require_relative 'bob'

# Common test data version: 1.4.0 ca79943
# Common test data version: 1.6.0 42b9d45
class BobTest < Minitest::Test
def test_stating_something
# skip
Expand Down Expand Up @@ -41,20 +41,20 @@ def test_asking_gibberish

def test_talking_forcefully
skip
remark = "Let's go make out behind the gym!"
assert_equal "Whatever.", Bob.hey(remark), %q{Bob hears "Let's go make out behind the gym!", and..}
remark = "Hi there!"
assert_equal "Whatever.", Bob.hey(remark), %q{Bob hears "Hi there!", and..}
end

def test_using_acronyms_in_regular_speech
skip
remark = "It's OK if you don't want to go to the DMV."
assert_equal "Whatever.", Bob.hey(remark), %q{Bob hears "It's OK if you don't want to go to the DMV.", and..}
remark = "It's OK if you don't want to go work for NASA."
assert_equal "Whatever.", Bob.hey(remark), %q{Bob hears "It's OK if you don't want to go work for NASA.", and..}
end

def test_forceful_question
skip
remark = "WHAT THE HELL WERE YOU THINKING?"
assert_equal "Calm down, I know what I'm doing!", Bob.hey(remark), %q{Bob hears "WHAT THE HELL WERE YOU THINKING?", and..}
remark = "WHAT'S GOING ON?"
assert_equal "Calm down, I know what I'm doing!", Bob.hey(remark), %q{Bob hears "WHAT'S GOING ON?", and..}
end

def test_shouting_numbers
Expand Down Expand Up @@ -83,8 +83,8 @@ def test_shouting_with_special_characters

def test_shouting_with_no_exclamation_mark
skip
remark = "I HATE THE DMV"
assert_equal "Whoa, chill out!", Bob.hey(remark), %q{Bob hears "I HATE THE DMV", and..}
remark = "I HATE THE DENTIST"
assert_equal "Whoa, chill out!", Bob.hey(remark), %q{Bob hears "I HATE THE DENTIST", and..}
end

def test_statement_containing_question_mark
Expand Down