Word Count: Test cases don't include examples from description

Open
#1,990 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
testing

Research direction

Start by comparing the Word Count description's examples with its canonical-data test cases. Add any missing examples to canonical-data, then check whether the same mismatch occurs in other exercises and verify that each documented example is covered.

Written by the indexing model from the issue text.

Description

The example given in the word count description isn't actually included in the canonical data for it. This leads to issues like https://github.com/exercism/haskell/issues/1057 where the reference implementation doesn't solve the given example.
I think it would be good practice to include all examples if any as test case in canonical-data.
This might apply to other exercises too.

Dominant language
Ruby
Stars
362
Forks
566
Avg merge
15h 13m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/problem-specifications

All issues in exercism/problem-specifications

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.