Skip to content

queen-attack: Rewrite tests to use hspec with fail-fast. #252

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

Merged
merged 1 commit into from
Aug 6, 2016
Merged

queen-attack: Rewrite tests to use hspec with fail-fast. #252

merged 1 commit into from
Aug 6, 2016

Conversation

rbasso
Copy link
Contributor

@rbasso rbasso commented Aug 2, 2016

  • Rewrite tests to use hspec.
  • Update canAttack tests to match x-common
  • Suppress test suite warning on polymorphic solutions.

Related to #211.

The exercise matches only partially the JSON file, because it doesn't have a functions to create queens. That function would probably make more sense in a object-oriented language, but seems artificial here.

Also, the coordinate system used is artificial for chess players. Maybe the JSON file deserves a rewrite to remove the create function and use a right-up orientation starting on (1, 1), as explained in this comment.

- Rewrite tests to use `hspec`.
- Update `canAttack` tests to match `x-common`
- Suppress test suite warning on polymorphic solutions.
@petertseng
Copy link
Member

👍 , I'll defer to others' judgments on the JSON file

@rbasso rbasso merged commit 826b585 into exercism:hspec-fail-fast Aug 6, 2016
@rbasso rbasso deleted the hspec-queen-attack branch August 6, 2016 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants