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

wordy 1.5.0.8: Test question What is? with no operands or operators #779

Merged
merged 1 commit into from
Nov 23, 2018
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion exercises/wordy/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: wordy
version: 1.4.0.7
version: 1.5.0.8

dependencies:
- base
Expand Down
6 changes: 5 additions & 1 deletion exercises/wordy/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ cases = [ Case { description = "just a number"
, input = "Who is the President of the United States?"
, expected = Nothing
}
, Case { description = "reject incomplete problem"
, Case { description = "reject problem missing an operand"
, input = "What is 1 plus?"
, expected = Nothing
}
, Case { description = "reject problem with no operands or operators"
, input = "What is?"
, expected = Nothing
}
, Case { description = "reject two operations in a row"
, input = "What is 1 plus plus 2?"
, expected = Nothing
Expand Down