Skip to content

Commit

Permalink
Sync test inputs for bob (#385)
Browse files Browse the repository at this point in the history
* Sync test inputs for bob

* Update stub
  • Loading branch information
BNAndras authored May 13, 2024
1 parent 76121e2 commit ee74738
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions exercises/practice/bob/bob-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@

(ert-deftest responds-to-talking-forcefully ()
(should
(string= "Whatever." (response-for "Let's go make out behind the gym!"))))
(string= "Whatever." (response-for "Hi there!"))))

(ert-deftest responds-to-using-acronyms-in-regular-speech ()
(should
(string= "Whatever." (response-for "It's OK if you don't want to go to the DMV."))))
(string= "Whatever." (response-for "It's OK if you don't want to go work for NASA."))))

(ert-deftest responds-to-forceful-question ()
(should
(string= "Calm down, I know what I'm doing!" (response-for "WHAT THE HELL WERE YOU THINKING?"))))
(string= "Calm down, I know what I'm doing!" (response-for "WHAT'S GOING ON?"))))

(ert-deftest responds-to-shouting-numbers ()
(should
(string= "Whoa, chill out!" (response-for "1, 2, 3, GO!"))))
(string= "Whoa, chill out!" (response-for "1, 2, 3 GO!"))))

(ert-deftest responds-to-only-numbers ()
(should
Expand All @@ -61,7 +61,7 @@

(ert-deftest responds-to-shouting-with-no-exclamation-mark ()
(should
(string= "Whoa, chill out!" (response-for "I HATE YOU"))))
(string= "Whoa, chill out!" (response-for "I HATE THE DENTIST"))))

(ert-deftest responds-to-statement-containing-question-mark ()
(should
Expand Down
9 changes: 6 additions & 3 deletions exercises/practice/bob/bob.el
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
;;; bob.el --- Bob exercise (exercism) -*- lexical-binding: t; -*-
;;; bob.el --- Bob (exercism) -*- lexical-binding: t; -*-

;;; Commentary:

(defun response-for (phrase)
;;; Code:
)


(defun response-for (phrase)
(error "Delete this S-Expression and write your own implementation"))


(provide 'bob)
;;; bob.el ends here

0 comments on commit ee74738

Please sign in to comment.