Sha256: a4733bac25ee4fd4e98c78bd2c492324f306ee41c2a2b3908e74e42926e24627
Contents?: true
Size: 1.08 KB
Versions: 87
Compression:
Stored size: 1.08 KB
Contents
# Word Count Given a phrase, count the occurrences of each word in that phrase. For example for the input `"olly olly in come free"` ```text olly: 2 in: 1 come: 1 free: 1 ``` ## Running tests Execute the tests with: ```bash $ elixir word_count_test.exs ``` ### Pending tests In the test suites, all but the first test have been skipped. Once you get a test passing, you can unskip the next one by commenting out the relevant `@tag :pending` with a `#` symbol. For example: ```elixir # @tag :pending test "shouting" do assert Bob.hey("WATCH OUT!") == "Whoa, chill out!" end ``` Or, you can enable all the tests by commenting out the `ExUnit.configure` line in the test suite. ```elixir # ExUnit.configure exclude: :pending, trace: true ``` For more detailed information about the Elixir track, please see the [help page](http://exercism.io/languages/elixir). ## Source This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour. ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
87 entries across 87 versions & 1 rubygems