trackler 2.1.0.23 → 2.1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/tracks/ceylon/LICENSE +2 -2
- data/tracks/ceylon/README.md +0 -5
- data/tracks/ecmascript/.editorconfig +7 -0
- data/tracks/ecmascript/Makefile +8 -0
- data/tracks/ecmascript/bin/md5-hash +21 -0
- data/tracks/ecmascript/exercises/connect/package.json +3 -3
- data/tracks/elixir/exercises/atbash-cipher/{atbash.exs → atbash_cipher.exs} +4 -0
- data/tracks/elixir/exercises/atbash-cipher/atbash_cipher_test.exs +29 -1
- data/tracks/elixir/exercises/atbash-cipher/example.exs +12 -6
- data/tracks/elixir/exercises/phone-number/example.exs +71 -29
- data/tracks/elixir/exercises/phone-number/phone_number.exs +22 -10
- data/tracks/elixir/exercises/phone-number/phone_number_test.exs +37 -12
- data/tracks/elm/.github/stale.yml +0 -0
- data/tracks/elm/.gitignore +1 -0
- data/tracks/elm/.travis.yml +20 -1
- data/tracks/elm/README.md +9 -20
- data/tracks/elm/bin/build.sh +15 -18
- data/tracks/elm/bin/install-elm-format +1 -1
- data/tracks/elm/config.json +172 -167
- data/tracks/elm/exercises/accumulate/elm-package.json +1 -3
- data/tracks/elm/exercises/accumulate/package.json +3 -3
- data/tracks/elm/exercises/accumulate/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/accumulate/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/allergies/elm-package.json +2 -3
- data/tracks/elm/exercises/allergies/package.json +3 -3
- data/tracks/elm/exercises/allergies/{Tests.elm → tests/Tests.elm} +2 -12
- data/tracks/elm/exercises/allergies/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/anagram/elm-package.json +2 -3
- data/tracks/elm/exercises/anagram/package.json +3 -3
- data/tracks/elm/exercises/anagram/{Tests.elm → tests/Tests.elm} +4 -14
- data/tracks/elm/exercises/anagram/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/atbash-cipher/elm-package.json +2 -3
- data/tracks/elm/exercises/atbash-cipher/package.json +3 -3
- data/tracks/elm/exercises/atbash-cipher/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/atbash-cipher/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/bob/elm-package.json +2 -3
- data/tracks/elm/exercises/bob/package.json +3 -3
- data/tracks/elm/exercises/bob/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/bob/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/difference-of-squares/elm-package.json +2 -3
- data/tracks/elm/exercises/difference-of-squares/package.json +3 -3
- data/tracks/elm/exercises/difference-of-squares/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/difference-of-squares/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/gigasecond/elm-package.json +2 -3
- data/tracks/elm/exercises/gigasecond/package.json +3 -3
- data/tracks/elm/exercises/gigasecond/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/gigasecond/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/grade-school/elm-package.json +2 -3
- data/tracks/elm/exercises/grade-school/package.json +3 -3
- data/tracks/elm/exercises/grade-school/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/grade-school/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/grains/Grains.elm +2 -0
- data/tracks/elm/exercises/grains/Grains.example.elm +9 -0
- data/tracks/elm/exercises/grains/elm-package.json +14 -0
- data/tracks/elm/exercises/grains/package.json +13 -0
- data/tracks/elm/exercises/grains/tests/Tests.elm +38 -0
- data/tracks/elm/exercises/grains/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/hamming/elm-package.json +2 -3
- data/tracks/elm/exercises/hamming/package.json +3 -3
- data/tracks/elm/exercises/hamming/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/hamming/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/hello-world/elm-package.json +2 -3
- data/tracks/elm/exercises/hello-world/package.json +3 -3
- data/tracks/elm/exercises/hello-world/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/hello-world/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/largest-series-product/elm-package.json +2 -3
- data/tracks/elm/exercises/largest-series-product/package.json +3 -3
- data/tracks/elm/exercises/largest-series-product/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/largest-series-product/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/leap/elm-package.json +2 -3
- data/tracks/elm/exercises/leap/package.json +3 -3
- data/tracks/elm/exercises/leap/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/leap/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/list-ops/elm-package.json +2 -3
- data/tracks/elm/exercises/list-ops/package.json +3 -3
- data/tracks/elm/exercises/list-ops/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/list-ops/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/nucleotide-count/elm-package.json +2 -3
- data/tracks/elm/exercises/nucleotide-count/package.json +3 -3
- data/tracks/elm/exercises/nucleotide-count/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/nucleotide-count/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/pangram/elm-package.json +2 -3
- data/tracks/elm/exercises/pangram/package.json +3 -3
- data/tracks/elm/exercises/pangram/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/pangram/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/phone-number/elm-package.json +2 -3
- data/tracks/elm/exercises/phone-number/package.json +3 -3
- data/tracks/elm/exercises/phone-number/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/phone-number/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/raindrops/elm-package.json +2 -3
- data/tracks/elm/exercises/raindrops/package.json +3 -3
- data/tracks/elm/exercises/raindrops/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/raindrops/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/rna-transcription/elm-package.json +2 -3
- data/tracks/elm/exercises/rna-transcription/package.json +3 -3
- data/tracks/elm/exercises/rna-transcription/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/rna-transcription/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/robot-simulator/elm-package.json +2 -3
- data/tracks/elm/exercises/robot-simulator/package.json +3 -3
- data/tracks/elm/exercises/robot-simulator/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/robot-simulator/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/roman-numerals/elm-package.json +2 -3
- data/tracks/elm/exercises/roman-numerals/package.json +3 -3
- data/tracks/elm/exercises/roman-numerals/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/roman-numerals/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/run-length-encoding/elm-package.json +2 -3
- data/tracks/elm/exercises/run-length-encoding/package.json +3 -3
- data/tracks/elm/exercises/run-length-encoding/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/run-length-encoding/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/say/elm-package.json +2 -3
- data/tracks/elm/exercises/say/package.json +3 -3
- data/tracks/elm/exercises/say/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/say/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/scrabble-score/elm-package.json +2 -3
- data/tracks/elm/exercises/scrabble-score/package.json +3 -3
- data/tracks/elm/exercises/scrabble-score/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/scrabble-score/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/series/elm-package.json +2 -3
- data/tracks/elm/exercises/series/package.json +3 -3
- data/tracks/elm/exercises/series/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/series/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/space-age/elm-package.json +2 -3
- data/tracks/elm/exercises/space-age/package.json +3 -3
- data/tracks/elm/exercises/space-age/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/space-age/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/strain/elm-package.json +2 -3
- data/tracks/elm/exercises/strain/package.json +3 -3
- data/tracks/elm/exercises/strain/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/strain/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/sublist/elm-package.json +2 -3
- data/tracks/elm/exercises/sublist/package.json +3 -3
- data/tracks/elm/exercises/sublist/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/sublist/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/sum-of-multiples/elm-package.json +2 -3
- data/tracks/elm/exercises/sum-of-multiples/package.json +3 -3
- data/tracks/elm/exercises/sum-of-multiples/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/sum-of-multiples/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/triangle/elm-package.json +2 -3
- data/tracks/elm/exercises/triangle/package.json +3 -3
- data/tracks/elm/exercises/triangle/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/triangle/tests/elm-package.json +16 -0
- data/tracks/elm/exercises/word-count/elm-package.json +2 -3
- data/tracks/elm/exercises/word-count/package.json +3 -3
- data/tracks/elm/exercises/word-count/{Tests.elm → tests/Tests.elm} +1 -11
- data/tracks/elm/exercises/word-count/tests/elm-package.json +16 -0
- data/tracks/elm/package.json +2 -2
- data/tracks/java/exercises/clock/HINT.md +3 -0
- data/tracks/java/exercises/clock/src/test/java/ClockAddTest.java +3 -0
- data/tracks/java/exercises/clock/src/test/java/ClockCreationTest.java +3 -0
- data/tracks/java/exercises/clock/src/test/java/ClockEqualTest.java +21 -17
- data/tracks/java/exercises/simple-linked-list/src/example/java/SimpleLinkedList.java +13 -13
- data/tracks/java/exercises/sublist/src/example/java/RelationshipComputer.java +1 -1
- data/tracks/java/exercises/sublist/src/main/java/RelationshipComputer.java +1 -1
- data/tracks/perl5/docs/TESTS.md +2 -2
- data/tracks/ruby/LICENSE +2 -2
- data/tracks/ruby/README.md +0 -5
- data/tracks/typescript/LICENSE +2 -2
- data/tracks/typescript/README.md +0 -5
- data/tracks/vimscript/README.md +1 -0
- data/tracks/vimscript/TRACK_HINTS.md +26 -1
- data/tracks/vimscript/config.json +15 -0
- data/tracks/vimscript/docs/ABOUT.md +1 -1
- data/tracks/vimscript/exercises/nucleotide-count/example.vim +18 -0
- data/tracks/vimscript/exercises/nucleotide-count/nucleotide_count.vader +38 -0
- data/tracks/vimscript/exercises/nucleotide-count/nucleotide_count.vim +16 -0
- data/tracks/vimscript/exercises/phone-number/example.vim +4 -0
- data/tracks/vimscript/exercises/phone-number/phone_number.vader +36 -0
- data/tracks/vimscript/exercises/phone-number/phone_number.vim +11 -0
- data/tracks/vimscript/exercises/roman-numerals/example.vim +29 -0
- data/tracks/vimscript/exercises/roman-numerals/roman_numerals.vader +53 -0
- data/tracks/vimscript/exercises/roman-numerals/roman_numerals.vim +14 -0
- metadata +81 -35
- data/tracks/elm/elm-package.json +0 -46
- data/tracks/elm/exercises/hello-world/yarn.lock +0 -1136
@@ -1,7 +1,5 @@
|
|
1
|
-
|
1
|
+
module Tests exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run, TestProgram)
|
4
|
-
import Json.Encode exposing (Value)
|
5
3
|
import Test exposing (..)
|
6
4
|
import Expect
|
7
5
|
import Date
|
@@ -39,11 +37,3 @@ date input =
|
|
39
37
|
|
40
38
|
Err reason ->
|
41
39
|
Debug.crash reason
|
42
|
-
|
43
|
-
|
44
|
-
main : TestProgram
|
45
|
-
main =
|
46
|
-
run emit tests
|
47
|
-
|
48
|
-
|
49
|
-
port emit : ( String, Value ) -> Cmd msg
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"version": "3.0.0",
|
3
|
+
"summary": "Exercism problems in Elm.",
|
4
|
+
"repository": "https://github.com/exercism/xelm.git",
|
5
|
+
"license": "BSD3",
|
6
|
+
"source-directories": [
|
7
|
+
".",
|
8
|
+
".."
|
9
|
+
],
|
10
|
+
"exposed-modules": [],
|
11
|
+
"dependencies": {
|
12
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
13
|
+
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
|
14
|
+
},
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
|
+
}
|
@@ -8,9 +8,8 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
12
|
-
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
|
13
|
-
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
|
11
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
14
12
|
},
|
15
13
|
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
14
|
}
|
15
|
+
|
@@ -4,10 +4,10 @@
|
|
4
4
|
"license": "MIT",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "elm-package install -y",
|
7
|
-
"test": "elm-test
|
7
|
+
"test": "elm-test"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"elm": "
|
11
|
-
"elm-test": "
|
10
|
+
"elm": "0.18.0",
|
11
|
+
"elm-test": "0.18.3"
|
12
12
|
}
|
13
13
|
}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
1
|
+
module Tests exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run, TestProgram)
|
4
|
-
import Json.Encode exposing (Value)
|
5
3
|
import Test exposing (..)
|
6
4
|
import Expect
|
7
5
|
import GradeSchool exposing (addStudent, studentsInGrade, allStudents)
|
@@ -59,11 +57,3 @@ tests =
|
|
59
57
|
, test "get students in a non-existent grade" <|
|
60
58
|
\() -> Expect.equal [] (studentsInGrade 1 GradeSchool.empty)
|
61
59
|
]
|
62
|
-
|
63
|
-
|
64
|
-
main : TestProgram
|
65
|
-
main =
|
66
|
-
run emit tests
|
67
|
-
|
68
|
-
|
69
|
-
port emit : ( String, Value ) -> Cmd msg
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"version": "3.0.0",
|
3
|
+
"summary": "Exercism problems in Elm.",
|
4
|
+
"repository": "https://github.com/exercism/xelm.git",
|
5
|
+
"license": "BSD3",
|
6
|
+
"source-directories": [
|
7
|
+
".",
|
8
|
+
".."
|
9
|
+
],
|
10
|
+
"exposed-modules": [],
|
11
|
+
"dependencies": {
|
12
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
13
|
+
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
|
14
|
+
},
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"version": "3.0.0",
|
3
|
+
"summary": "Exercism problems in Elm.",
|
4
|
+
"repository": "https://github.com/exercism/xelm.git",
|
5
|
+
"license": "BSD3",
|
6
|
+
"source-directories": [
|
7
|
+
"."
|
8
|
+
],
|
9
|
+
"exposed-modules": [],
|
10
|
+
"dependencies": {
|
11
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
12
|
+
},
|
13
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
14
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Exercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "0.18.0",
|
11
|
+
"elm-test": "0.18.3"
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Tests exposing (..)
|
2
|
+
|
3
|
+
import Expect
|
4
|
+
import Grains exposing (square)
|
5
|
+
import Json.Encode exposing (Value)
|
6
|
+
import Test exposing (..)
|
7
|
+
|
8
|
+
|
9
|
+
tests : Test
|
10
|
+
tests =
|
11
|
+
describe "Grains"
|
12
|
+
[ describe "square"
|
13
|
+
[ test "of 1" <|
|
14
|
+
\() -> Expect.equal (Just 1) (square 1)
|
15
|
+
, test "of 2" <|
|
16
|
+
\() -> Expect.equal (Just 2) (square 2)
|
17
|
+
, test "of 3" <|
|
18
|
+
\() -> Expect.equal (Just 4) (square 3)
|
19
|
+
, test "of 4" <|
|
20
|
+
\() -> Expect.equal (Just 8) (square 4)
|
21
|
+
, test "of 16" <|
|
22
|
+
\() -> Expect.equal (Just 32768) (square 16)
|
23
|
+
, test "of 32" <|
|
24
|
+
\() -> Expect.equal (Just 2147483648) (square 32)
|
25
|
+
, test "square 0 raises an exception" <|
|
26
|
+
\() -> Expect.equal Nothing (square 0)
|
27
|
+
, test "negative square raises an exception" <|
|
28
|
+
\() -> Expect.equal Nothing (square -1)
|
29
|
+
|
30
|
+
{-
|
31
|
+
Where are the bigger test values?!? Because Javascript's numbers
|
32
|
+
can't represent values higher than `Number.MAX_SAFE_INTEGER`
|
33
|
+
(i.e. 9007199254740991), we chose to exclude these final values
|
34
|
+
to avoid the weirdness. A bit more information can be found
|
35
|
+
here: https://github.com/elm-lang/elm-compiler/issues/1246
|
36
|
+
-}
|
37
|
+
]
|
38
|
+
]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"version": "3.0.0",
|
3
|
+
"summary": "Exercism problems in Elm.",
|
4
|
+
"repository": "https://github.com/exercism/xelm.git",
|
5
|
+
"license": "BSD3",
|
6
|
+
"source-directories": [
|
7
|
+
".",
|
8
|
+
".."
|
9
|
+
],
|
10
|
+
"exposed-modules": [],
|
11
|
+
"dependencies": {
|
12
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
13
|
+
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
|
14
|
+
},
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
|
+
}
|
@@ -8,9 +8,8 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
12
|
-
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
|
13
|
-
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
|
11
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
14
12
|
},
|
15
13
|
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
14
|
}
|
15
|
+
|
@@ -4,10 +4,10 @@
|
|
4
4
|
"license": "MIT",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "elm-package install -y",
|
7
|
-
"test": "elm-test
|
7
|
+
"test": "elm-test"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"elm": "
|
11
|
-
"elm-test": "
|
10
|
+
"elm": "0.18.0",
|
11
|
+
"elm-test": "0.18.3"
|
12
12
|
}
|
13
13
|
}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
1
|
+
module Tests exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run, TestProgram)
|
4
|
-
import Json.Encode exposing (Value)
|
5
3
|
import Test exposing (..)
|
6
4
|
import Expect
|
7
5
|
import Hamming exposing (distance)
|
@@ -39,11 +37,3 @@ tests =
|
|
39
37
|
, test "disallow second strand longer" <|
|
40
38
|
\() -> Expect.equal Nothing (distance "ATA" "AGTG")
|
41
39
|
]
|
42
|
-
|
43
|
-
|
44
|
-
main : TestProgram
|
45
|
-
main =
|
46
|
-
run emit tests
|
47
|
-
|
48
|
-
|
49
|
-
port emit : ( String, Value ) -> Cmd msg
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"version": "3.0.0",
|
3
|
+
"summary": "Exercism problems in Elm.",
|
4
|
+
"repository": "https://github.com/exercism/xelm.git",
|
5
|
+
"license": "BSD3",
|
6
|
+
"source-directories": [
|
7
|
+
".",
|
8
|
+
".."
|
9
|
+
],
|
10
|
+
"exposed-modules": [],
|
11
|
+
"dependencies": {
|
12
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
13
|
+
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
|
14
|
+
},
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
|
+
}
|
@@ -8,9 +8,8 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
12
|
-
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
|
13
|
-
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
|
11
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
14
12
|
},
|
15
13
|
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
14
|
}
|
15
|
+
|
@@ -4,10 +4,10 @@
|
|
4
4
|
"license": "MIT",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "elm-package install -y",
|
7
|
-
"test": "elm-test
|
7
|
+
"test": "elm-test"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"elm": "
|
11
|
-
"elm-test": "
|
10
|
+
"elm": "0.18.0",
|
11
|
+
"elm-test": "0.18.3"
|
12
12
|
}
|
13
13
|
}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
1
|
+
module Tests exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run, TestProgram)
|
4
|
-
import Json.Encode exposing (Value)
|
5
3
|
import Test exposing (..)
|
6
4
|
import Expect
|
7
5
|
import HelloWorld exposing (helloWorld)
|
@@ -20,11 +18,3 @@ tests =
|
|
20
18
|
\() ->
|
21
19
|
Expect.equal "Hello, Bob!" (helloWorld (Just "Bob"))
|
22
20
|
]
|
23
|
-
|
24
|
-
|
25
|
-
main : TestProgram
|
26
|
-
main =
|
27
|
-
run emit tests
|
28
|
-
|
29
|
-
|
30
|
-
port emit : ( String, Value ) -> Cmd msg
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"version": "3.0.0",
|
3
|
+
"summary": "Exercism problems in Elm.",
|
4
|
+
"repository": "https://github.com/exercism/xelm.git",
|
5
|
+
"license": "BSD3",
|
6
|
+
"source-directories": [
|
7
|
+
".",
|
8
|
+
".."
|
9
|
+
],
|
10
|
+
"exposed-modules": [],
|
11
|
+
"dependencies": {
|
12
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
13
|
+
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
|
14
|
+
},
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
|
+
}
|
@@ -8,9 +8,8 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
12
|
-
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
|
13
|
-
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
|
11
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
14
12
|
},
|
15
13
|
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
14
|
}
|
15
|
+
|
@@ -4,10 +4,10 @@
|
|
4
4
|
"license": "MIT",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "elm-package install -y",
|
7
|
-
"test": "elm-test
|
7
|
+
"test": "elm-test"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"elm": "
|
11
|
-
"elm-test": "
|
10
|
+
"elm": "0.18.0",
|
11
|
+
"elm-test": "0.18.3"
|
12
12
|
}
|
13
13
|
}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
1
|
+
module Tests exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run, TestProgram)
|
4
|
-
import Json.Encode exposing (Value)
|
5
3
|
import Test exposing (..)
|
6
4
|
import Expect
|
7
5
|
import LargestSeriesProduct exposing (largestProduct)
|
@@ -45,11 +43,3 @@ tests =
|
|
45
43
|
, test "rejects negative span" <|
|
46
44
|
\() -> Expect.equal Nothing (largestProduct -1 "12345")
|
47
45
|
]
|
48
|
-
|
49
|
-
|
50
|
-
main : TestProgram
|
51
|
-
main =
|
52
|
-
run emit tests
|
53
|
-
|
54
|
-
|
55
|
-
port emit : ( String, Value ) -> Cmd msg
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"version": "3.0.0",
|
3
|
+
"summary": "Exercism problems in Elm.",
|
4
|
+
"repository": "https://github.com/exercism/xelm.git",
|
5
|
+
"license": "BSD3",
|
6
|
+
"source-directories": [
|
7
|
+
".",
|
8
|
+
".."
|
9
|
+
],
|
10
|
+
"exposed-modules": [],
|
11
|
+
"dependencies": {
|
12
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
13
|
+
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
|
14
|
+
},
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
|
+
}
|
@@ -8,9 +8,8 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
12
|
-
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
|
13
|
-
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
|
11
|
+
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
14
12
|
},
|
15
13
|
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
14
|
}
|
15
|
+
|
@@ -4,10 +4,10 @@
|
|
4
4
|
"license": "MIT",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "elm-package install -y",
|
7
|
-
"test": "elm-test
|
7
|
+
"test": "elm-test"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"elm": "
|
11
|
-
"elm-test": "
|
10
|
+
"elm": "0.18.0",
|
11
|
+
"elm-test": "0.18.3"
|
12
12
|
}
|
13
13
|
}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
1
|
+
module Tests exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run, TestProgram)
|
4
|
-
import Json.Encode exposing (Value)
|
5
3
|
import Test exposing (..)
|
6
4
|
import Expect
|
7
5
|
import Leap
|
@@ -25,11 +23,3 @@ tests =
|
|
25
23
|
, test "y2k" <|
|
26
24
|
\() -> Expect.equal True (Leap.isLeapYear 2000)
|
27
25
|
]
|
28
|
-
|
29
|
-
|
30
|
-
main : TestProgram
|
31
|
-
main =
|
32
|
-
run emit tests
|
33
|
-
|
34
|
-
|
35
|
-
port emit : ( String, Value ) -> Cmd msg
|