1
exercism fetch elixir raindrops

raindrops_test.exs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
if !System.get_env("EXERCISM_TEST_EXAMPLES") do
  Code.load_file("raindrops.exs", __DIR__)
end

ExUnit.start
ExUnit.configure exclude: :pending, trace: true

defmodule RaindropsTest do
  use ExUnit.Case

  # @tag :pending
  test "1" do
    assert Raindrops.convert(1) == "1"
  end

  @tag :pending
  test "3" do
    assert Raindrops.convert(3) == "Pling"
  end

  @tag :pending
  test "5" do
    assert Raindrops.convert(5) == "Plang"
  end

  @tag :pending
  test "7" do
    assert Raindrops.convert(7) == "Plong"
  end

  @tag :pending
  test "6" do
    assert Raindrops.convert(6) == "Pling"
  end

  @tag :pending
  test "9" do
    assert Raindrops.convert(9) == "Pling"
  end

  @tag :pending
  test "10" do
    assert Raindrops.convert(10) == "Plang"
  end

  @tag :pending
  test "14" do
    assert Raindrops.convert(14) == "Plong"
  end

  @tag :pending
  test "15" do
    assert Raindrops.convert(15) == "PlingPlang"
  end

  @tag :pending
  test "21" do
    assert Raindrops.convert(21) == "PlingPlong"
  end

  @tag :pending
  test "25" do
    assert Raindrops.convert(25) == "Plang"
  end

  @tag :pending
  test "35" do
    assert Raindrops.convert(35) == "PlangPlong"
  end

  @tag :pending
  test "49" do
    assert Raindrops.convert(49) == "Plong"
  end

  @tag :pending
  test "52" do
    assert Raindrops.convert(52) == "52"
  end

  @tag :pending
  test "105" do
    assert Raindrops.convert(105) == "PlingPlangPlong"
  end

  @tag :pending
  test "12121" do
    assert Raindrops.convert(12121) == "12121"
  end
end