trackler 2.0.5.1 → 2.0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/common/exercises/tree-building/description.md +15 -3
- data/lib/trackler/version.rb +1 -1
- data/tracks/ecmascript/exercises/queen-attack/queen-attack.spec.js +1 -1
- data/tracks/elm/.gitignore +1 -0
- data/tracks/elm/.travis.yml +3 -3
- data/tracks/elm/SETUP.md +16 -3
- data/tracks/elm/bin/build.sh +10 -10
- data/tracks/elm/bin/install-elm-format +1 -1
- data/tracks/elm/docs/INSTALLATION.md +2 -2
- data/tracks/elm/docs/TESTS.md +3 -3
- data/tracks/elm/elm-package.json +5 -5
- data/tracks/elm/exercises/accumulate/{Accumulate.example → Accumulate.example.elm} +0 -0
- data/tracks/elm/exercises/accumulate/{AccumulateTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/accumulate/elm-package.json +4 -4
- data/tracks/elm/exercises/accumulate/package.json +13 -0
- data/tracks/elm/exercises/allergies/{Allergies.example → Allergies.example.elm} +2 -2
- data/tracks/elm/exercises/allergies/{AllergiesTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/allergies/elm-package.json +4 -4
- data/tracks/elm/exercises/allergies/package.json +13 -0
- data/tracks/elm/exercises/anagram/{Anagram.example → Anagram.example.elm} +0 -0
- data/tracks/elm/exercises/anagram/{AnagramTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/anagram/elm-package.json +4 -4
- data/tracks/elm/exercises/anagram/package.json +13 -0
- data/tracks/elm/exercises/atbash-cipher/{AtbashCipher.example → AtbashCipher.example.elm} +0 -0
- data/tracks/elm/exercises/atbash-cipher/{AtbashCipherTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/atbash-cipher/elm-package.json +4 -4
- data/tracks/elm/exercises/atbash-cipher/package.json +13 -0
- data/tracks/elm/exercises/bob/{Bob.example → Bob.example.elm} +0 -0
- data/tracks/elm/exercises/bob/{BobTests.elm → Tests.elm} +3 -3
- data/tracks/elm/exercises/bob/elm-package.json +4 -4
- data/tracks/elm/exercises/bob/package.json +13 -0
- data/tracks/elm/exercises/difference-of-squares/{DifferenceOfSquares.example → DifferenceOfSquares.example.elm} +1 -1
- data/tracks/elm/exercises/difference-of-squares/{DifferenceOfSquaresTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/difference-of-squares/elm-package.json +4 -4
- data/tracks/elm/exercises/difference-of-squares/package.json +13 -0
- data/tracks/elm/exercises/gigasecond/{Gigasecond.example → Gigasecond.example.elm} +0 -0
- data/tracks/elm/exercises/gigasecond/{GigasecondTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/gigasecond/elm-package.json +4 -4
- data/tracks/elm/exercises/gigasecond/package.json +13 -0
- data/tracks/elm/exercises/grade-school/{GradeSchool.example → GradeSchool.example.elm} +1 -1
- data/tracks/elm/exercises/grade-school/{GradeSchoolTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/grade-school/elm-package.json +4 -4
- data/tracks/elm/exercises/grade-school/package.json +13 -0
- data/tracks/elm/exercises/hamming/{Hamming.example → Hamming.example.elm} +0 -0
- data/tracks/elm/exercises/hamming/{HammingTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/hamming/elm-package.json +4 -4
- data/tracks/elm/exercises/hamming/package.json +13 -0
- data/tracks/elm/exercises/hello-world/HelloWorld.elm +8 -8
- data/tracks/elm/exercises/hello-world/{HelloWorld.example → HelloWorld.example.elm} +0 -0
- data/tracks/elm/exercises/hello-world/{HelloWorldTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/hello-world/elm-package.json +4 -4
- data/tracks/elm/exercises/hello-world/package.json +13 -0
- data/tracks/elm/exercises/hello-world/yarn.lock +1136 -0
- data/tracks/elm/exercises/largest-series-product/{LargestSeriesProduct.example → LargestSeriesProduct.example.elm} +0 -0
- data/tracks/elm/exercises/largest-series-product/{LargestSeriesProductTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/largest-series-product/elm-package.json +4 -4
- data/tracks/elm/exercises/largest-series-product/package.json +13 -0
- data/tracks/elm/exercises/leap/{Leap.example → Leap.example.elm} +0 -0
- data/tracks/elm/exercises/leap/{LeapTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/leap/elm-package.json +4 -4
- data/tracks/elm/exercises/leap/package.json +13 -0
- data/tracks/elm/exercises/list-ops/{ListOps.example → ListOps.example.elm} +0 -0
- data/tracks/elm/exercises/list-ops/{ListOpsTests.elm → Tests.elm} +14 -14
- data/tracks/elm/exercises/list-ops/elm-package.json +4 -4
- data/tracks/elm/exercises/list-ops/package.json +13 -0
- data/tracks/elm/exercises/nucleotide-count/{NucleotideCount.example → NucleotideCount.example.elm} +0 -0
- data/tracks/elm/exercises/nucleotide-count/{NucleotideCountTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/nucleotide-count/elm-package.json +4 -4
- data/tracks/elm/exercises/nucleotide-count/package.json +13 -0
- data/tracks/elm/exercises/pangram/{Pangram.example → Pangram.example.elm} +0 -0
- data/tracks/elm/exercises/pangram/{PangramTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/pangram/elm-package.json +4 -4
- data/tracks/elm/exercises/pangram/package.json +13 -0
- data/tracks/elm/exercises/phone-number/{PhoneNumber.example → PhoneNumber.example.elm} +0 -0
- data/tracks/elm/exercises/phone-number/{PhoneNumberTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/phone-number/elm-package.json +4 -4
- data/tracks/elm/exercises/phone-number/package.json +13 -0
- data/tracks/elm/exercises/raindrops/{Raindrops.example → Raindrops.example.elm} +0 -0
- data/tracks/elm/exercises/raindrops/{RaindropsTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/raindrops/elm-package.json +4 -4
- data/tracks/elm/exercises/raindrops/package.json +13 -0
- data/tracks/elm/exercises/rna-transcription/{RNATranscription.example → RNATranscription.example.elm} +0 -0
- data/tracks/elm/exercises/rna-transcription/{RNATranscriptionTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/rna-transcription/elm-package.json +4 -4
- data/tracks/elm/exercises/rna-transcription/package.json +13 -0
- data/tracks/elm/exercises/robot-simulator/{RobotSimulator.example → RobotSimulator.example.elm} +0 -0
- data/tracks/elm/exercises/robot-simulator/{RobotSimulatorTests.elm → Tests.elm} +4 -4
- data/tracks/elm/exercises/robot-simulator/elm-package.json +4 -4
- data/tracks/elm/exercises/robot-simulator/package.json +13 -0
- data/tracks/elm/exercises/roman-numerals/{RomanNumerals.example → RomanNumerals.example.elm} +0 -0
- data/tracks/elm/exercises/roman-numerals/{RomanNumeralsTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/roman-numerals/elm-package.json +4 -4
- data/tracks/elm/exercises/roman-numerals/package.json +13 -0
- data/tracks/elm/exercises/run-length-encoding/{RunLengthEncoding.example → RunLengthEncoding.example.elm} +2 -2
- data/tracks/elm/exercises/run-length-encoding/{RunLengthEncodingTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/run-length-encoding/elm-package.json +4 -4
- data/tracks/elm/exercises/run-length-encoding/package.json +13 -0
- data/tracks/elm/exercises/say/{Say.example → Say.example.elm} +0 -0
- data/tracks/elm/exercises/say/{SayTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/say/elm-package.json +4 -4
- data/tracks/elm/exercises/say/package.json +13 -0
- data/tracks/elm/exercises/scrabble-score/{ScrabbleScore.example → ScrabbleScore.example.elm} +0 -0
- data/tracks/elm/exercises/scrabble-score/{ScrabbleScoreTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/scrabble-score/elm-package.json +4 -4
- data/tracks/elm/exercises/scrabble-score/package.json +13 -0
- data/tracks/elm/exercises/series/{Series.example → Series.example.elm} +0 -0
- data/tracks/elm/exercises/series/{SeriesTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/series/elm-package.json +4 -4
- data/tracks/elm/exercises/series/package.json +13 -0
- data/tracks/elm/exercises/space-age/{SpaceAge.example → SpaceAge.example.elm} +0 -0
- data/tracks/elm/exercises/space-age/{SpaceAgeTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/space-age/elm-package.json +4 -4
- data/tracks/elm/exercises/space-age/package.json +13 -0
- data/tracks/elm/exercises/strain/{Strain.example → Strain.example.elm} +0 -0
- data/tracks/elm/exercises/strain/{StrainTests.elm → Tests.elm} +3 -3
- data/tracks/elm/exercises/strain/elm-package.json +4 -4
- data/tracks/elm/exercises/strain/package.json +13 -0
- data/tracks/elm/exercises/sublist/{Sublist.example → Sublist.example.elm} +0 -0
- data/tracks/elm/exercises/sublist/{SublistTests.elm → Tests.elm} +5 -5
- data/tracks/elm/exercises/sublist/elm-package.json +4 -4
- data/tracks/elm/exercises/sublist/package.json +13 -0
- data/tracks/elm/exercises/sum-of-multiples/{SumOfMultiples.example → SumOfMultiples.example.elm} +1 -1
- data/tracks/elm/exercises/sum-of-multiples/{SumOfMultiplesTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/sum-of-multiples/elm-package.json +4 -4
- data/tracks/elm/exercises/sum-of-multiples/package.json +13 -0
- data/tracks/elm/exercises/triangle/{TriangleTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/triangle/{Triangle.example → Triangle.example.elm} +1 -1
- data/tracks/elm/exercises/triangle/elm-package.json +4 -4
- data/tracks/elm/exercises/triangle/package.json +13 -0
- data/tracks/elm/exercises/word-count/{WordCountTests.elm → Tests.elm} +2 -2
- data/tracks/elm/exercises/word-count/{WordCount.example → WordCount.example.elm} +0 -0
- data/tracks/elm/exercises/word-count/elm-package.json +4 -4
- data/tracks/elm/exercises/word-count/package.json +13 -0
- data/tracks/elm/package.json +10 -0
- data/tracks/fsharp/exercises/beer-song/HINTS.md +2 -0
- data/tracks/fsharp/exercises/grade-school/HINTS.md +3 -0
- data/tracks/fsharp/exercises/tree-building/Example.fs +7 -3
- data/tracks/fsharp/exercises/tree-building/TreeBuilding.fs +7 -4
- data/tracks/fsharp/exercises/tree-building/TreeBuildingTest.fs +49 -49
- data/tracks/fsharp/exercises/wordy/HINTS.md +3 -0
- data/tracks/java/config.json +13 -1
- data/tracks/java/exercises/anagram/build.gradle +0 -1
- data/tracks/java/exercises/anagram/src/test/java/AnagramTest.java +17 -13
- data/tracks/java/exercises/etl/build.gradle +0 -2
- data/tracks/java/exercises/grade-school/build.gradle +0 -1
- data/tracks/java/exercises/grade-school/src/test/java/SchoolTest.java +17 -13
- data/tracks/java/exercises/linked-list/build.gradle +0 -1
- data/tracks/java/exercises/linked-list/src/test/java/DequeTest.java +16 -15
- data/tracks/java/exercises/meetup/build.gradle +0 -1
- data/tracks/java/exercises/meetup/src/test/java/MeetupTest.java +96 -95
- data/tracks/java/exercises/nth-prime/build.gradle +0 -1
- data/tracks/java/exercises/nth-prime/src/test/java/PrimeTest.java +6 -5
- data/tracks/java/exercises/palindrome-products/build.gradle +18 -0
- data/tracks/java/exercises/palindrome-products/src/example/java/Palindromes.java +77 -0
- data/tracks/java/exercises/palindrome-products/src/main/java/.keep +0 -0
- data/tracks/java/exercises/palindrome-products/src/test/java/PalindromesTest.java +162 -0
- data/tracks/java/exercises/settings.gradle +2 -0
- data/tracks/java/exercises/sum-of-multiples/src/example/java/SumOfMultiples.java +1 -2
- data/tracks/java/exercises/sum-of-multiples/src/main/java/SumOfMultiples.java +0 -1
- data/tracks/java/exercises/sum-of-multiples/src/test/{SumOfMultiplesTest.java → java/SumOfMultiplesTest.java} +12 -24
- data/tracks/java/exercises/wordy/build.gradle +17 -0
- data/tracks/java/exercises/wordy/src/example/java/WordProblemSolver.java +57 -0
- data/tracks/java/exercises/wordy/src/main/java/WordProblemSolver.java +5 -0
- data/tracks/java/exercises/wordy/src/test/java/WordProblemSolverTest.java +119 -0
- data/tracks/lua/docs/TESTS.md +1 -1
- data/tracks/ruby/lib/generator.rb +17 -8
- data/tracks/ruby/test/fixtures/exercises/alpha/.meta/.version +1 -0
- data/tracks/ruby/test/fixtures/exercises/alpha/alpha_test.rb +1 -0
- data/tracks/ruby/test/fixtures/exercises/alpha/example.rb +5 -0
- data/tracks/ruby/test/fixtures/exercises/alpha/example.tt +1 -0
- data/tracks/ruby/test/fixtures/metadata/exercises/alpha/canonical-data.json +11 -0
- data/tracks/ruby/test/generator_test.rb +54 -1
- data/tracks/swift/docs/TESTS.md +12 -12
- data/tracks/swift/{img/page_assets/001-splash.png → docs/img/tests_001-splash.png} +0 -0
- data/tracks/swift/{img/page_assets/002-templateChooser.png → docs/img/tests_002-templateChooser.png} +0 -0
- data/tracks/swift/{img/page_assets/003-nameProject.jpg → docs/img/tests_003-nameProject.jpg} +0 -0
- data/tracks/swift/{img/page_assets/004-saveProject.jpg → docs/img/tests_004-saveProject.jpg} +0 -0
- data/tracks/swift/{img/page_assets/005-folderLayout.png → docs/img/tests_005-folderLayout.png} +0 -0
- data/tracks/swift/{img/page_assets/006-newProjectInitial.jpg → docs/img/tests_006-newProjectInitial.jpg} +0 -0
- data/tracks/swift/{img/page_assets/007-fileInspectorUpdate.png → docs/img/tests_007-fileInspectorUpdate.png} +0 -0
- data/tracks/swift/{img/page_assets/008-templateChooserSwift.png → docs/img/tests_008-templateChooserSwift.png} +0 -0
- data/tracks/swift/{img/page_assets/009-importTestSource.png → docs/img/tests_009-importTestSource.png} +0 -0
- data/tracks/swift/{img/page_assets/010-testsImportExample.png → docs/img/tests_010-testsImportExample.png} +0 -0
- data/tracks/swift/{img/page_assets/011-finalLayoutExample.png → docs/img/tests_011-finalLayoutExample.png} +0 -0
- metadata +122 -134
- data/tracks/elm/exercises/accumulate/runtests.bat +0 -1
- data/tracks/elm/exercises/accumulate/runtests.sh +0 -2
- data/tracks/elm/exercises/allergies/runtests.bat +0 -1
- data/tracks/elm/exercises/allergies/runtests.sh +0 -2
- data/tracks/elm/exercises/anagram/runtests.bat +0 -1
- data/tracks/elm/exercises/anagram/runtests.sh +0 -2
- data/tracks/elm/exercises/atbash-cipher/runtests.bat +0 -1
- data/tracks/elm/exercises/atbash-cipher/runtests.sh +0 -2
- data/tracks/elm/exercises/bob/runtests.bat +0 -1
- data/tracks/elm/exercises/bob/runtests.sh +0 -2
- data/tracks/elm/exercises/difference-of-squares/runtests.bat +0 -1
- data/tracks/elm/exercises/difference-of-squares/runtests.sh +0 -2
- data/tracks/elm/exercises/gigasecond/runtests.bat +0 -1
- data/tracks/elm/exercises/gigasecond/runtests.sh +0 -2
- data/tracks/elm/exercises/grade-school/runtests.bat +0 -1
- data/tracks/elm/exercises/grade-school/runtests.sh +0 -2
- data/tracks/elm/exercises/hamming/runtests.bat +0 -1
- data/tracks/elm/exercises/hamming/runtests.sh +0 -2
- data/tracks/elm/exercises/hello-world/runtests.bat +0 -1
- data/tracks/elm/exercises/hello-world/runtests.sh +0 -2
- data/tracks/elm/exercises/largest-series-product/runtests.bat +0 -1
- data/tracks/elm/exercises/largest-series-product/runtests.sh +0 -2
- data/tracks/elm/exercises/leap/runtests.bat +0 -1
- data/tracks/elm/exercises/leap/runtests.sh +0 -2
- data/tracks/elm/exercises/list-ops/runtests.bat +0 -1
- data/tracks/elm/exercises/list-ops/runtests.sh +0 -2
- data/tracks/elm/exercises/nucleotide-count/runtests.bat +0 -1
- data/tracks/elm/exercises/nucleotide-count/runtests.sh +0 -2
- data/tracks/elm/exercises/pangram/runtests.bat +0 -1
- data/tracks/elm/exercises/pangram/runtests.sh +0 -2
- data/tracks/elm/exercises/phone-number/runtests.bat +0 -1
- data/tracks/elm/exercises/phone-number/runtests.sh +0 -2
- data/tracks/elm/exercises/raindrops/runtests.bat +0 -1
- data/tracks/elm/exercises/raindrops/runtests.sh +0 -2
- data/tracks/elm/exercises/rna-transcription/runtests.bat +0 -1
- data/tracks/elm/exercises/rna-transcription/runtests.sh +0 -2
- data/tracks/elm/exercises/robot-simulator/runtests.bat +0 -1
- data/tracks/elm/exercises/robot-simulator/runtests.sh +0 -2
- data/tracks/elm/exercises/roman-numerals/runtests.bat +0 -1
- data/tracks/elm/exercises/roman-numerals/runtests.sh +0 -2
- data/tracks/elm/exercises/run-length-encoding/runtests.bat +0 -1
- data/tracks/elm/exercises/run-length-encoding/runtests.sh +0 -2
- data/tracks/elm/exercises/say/runtests.bat +0 -1
- data/tracks/elm/exercises/say/runtests.sh +0 -2
- data/tracks/elm/exercises/scrabble-score/runtests.bat +0 -1
- data/tracks/elm/exercises/scrabble-score/runtests.sh +0 -2
- data/tracks/elm/exercises/series/runtests.bat +0 -1
- data/tracks/elm/exercises/series/runtests.sh +0 -2
- data/tracks/elm/exercises/space-age/runtests.bat +0 -1
- data/tracks/elm/exercises/space-age/runtests.sh +0 -2
- data/tracks/elm/exercises/strain/runtests.bat +0 -1
- data/tracks/elm/exercises/strain/runtests.sh +0 -2
- data/tracks/elm/exercises/sublist/runtests.bat +0 -1
- data/tracks/elm/exercises/sublist/runtests.sh +0 -2
- data/tracks/elm/exercises/sum-of-multiples/runtests.bat +0 -1
- data/tracks/elm/exercises/sum-of-multiples/runtests.sh +0 -2
- data/tracks/elm/exercises/triangle/runtests.bat +0 -1
- data/tracks/elm/exercises/triangle/runtests.sh +0 -2
- data/tracks/elm/exercises/word-count/runtests.bat +0 -1
- data/tracks/elm/exercises/word-count/runtests.sh +0 -2
File without changes
|
data/tracks/elm/exercises/largest-series-product/{LargestSeriesProductTests.elm → Tests.elm}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -47,7 +47,7 @@ tests =
|
|
47
47
|
]
|
48
48
|
|
49
49
|
|
50
|
-
main :
|
50
|
+
main : TestProgram
|
51
51
|
main =
|
52
52
|
run emit tests
|
53
53
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Excercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test Tests.elm"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "^0.18.0",
|
11
|
+
"elm-test": "^0.18.0"
|
12
|
+
}
|
13
|
+
}
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -27,7 +27,7 @@ tests =
|
|
27
27
|
]
|
28
28
|
|
29
29
|
|
30
|
-
main :
|
30
|
+
main : TestProgram
|
31
31
|
main =
|
32
32
|
run emit tests
|
33
33
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Excercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test Tests.elm"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "^0.18.0",
|
11
|
+
"elm-test": "^0.18.0"
|
12
|
+
}
|
13
|
+
}
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -14,62 +14,62 @@ tests =
|
|
14
14
|
[ test "empty list" <|
|
15
15
|
\() -> Expect.equal 0 (ListOps.length [])
|
16
16
|
, test "non-empty list" <|
|
17
|
-
\() -> Expect.equal 4 (ListOps.length
|
17
|
+
\() -> Expect.equal 4 (ListOps.length (List.range 1 4))
|
18
18
|
]
|
19
19
|
, describe "reverse"
|
20
20
|
[ test "empty list" <|
|
21
21
|
\() -> Expect.equal [] (ListOps.reverse [])
|
22
22
|
, test "non-empty list" <|
|
23
|
-
\() -> Expect.equal [ 4, 3, 2, 1 ] (ListOps.reverse
|
23
|
+
\() -> Expect.equal [ 4, 3, 2, 1 ] (ListOps.reverse (List.range 1 4))
|
24
24
|
]
|
25
25
|
, describe "map"
|
26
26
|
[ test "empty list" <|
|
27
27
|
\() -> Expect.equal [] (ListOps.map ((+) 1) [])
|
28
28
|
, test "non-empty list" <|
|
29
|
-
\() -> Expect.equal
|
29
|
+
\() -> Expect.equal (List.range 2 5) (ListOps.map ((+) 1) (List.range 1 4))
|
30
30
|
]
|
31
31
|
, describe "filter"
|
32
32
|
[ test "empty list" <|
|
33
33
|
\() -> Expect.equal [] (ListOps.filter (\_ -> True) [])
|
34
34
|
, test "non-empty list" <|
|
35
|
-
\() -> Expect.equal [ 2, 4 ] (ListOps.filter (\x -> x % 2 == 0)
|
35
|
+
\() -> Expect.equal [ 2, 4 ] (ListOps.filter (\x -> x % 2 == 0) (List.range 1 4))
|
36
36
|
]
|
37
37
|
, describe "foldl"
|
38
38
|
[ test "empty list" <|
|
39
39
|
\() -> Expect.equal 0 (ListOps.foldl (+) 0 [])
|
40
40
|
, test "non-empty list" <|
|
41
|
-
\() -> Expect.equal 10 (ListOps.foldl (+) 0
|
41
|
+
\() -> Expect.equal 10 (ListOps.foldl (+) 0 (List.range 1 4))
|
42
42
|
, test "direction" <|
|
43
|
-
\() -> Expect.equal [ 4, 3, 2, 1 ] (ListOps.foldl (::) []
|
43
|
+
\() -> Expect.equal [ 4, 3, 2, 1 ] (ListOps.foldl (::) [] (List.range 1 4))
|
44
44
|
]
|
45
45
|
, describe "foldr"
|
46
46
|
[ test "empty list" <|
|
47
47
|
\() -> Expect.equal 0 (ListOps.foldr (+) 0 [])
|
48
48
|
, test "non-empty list" <|
|
49
|
-
\() -> Expect.equal 10 (ListOps.foldr (+) 0
|
49
|
+
\() -> Expect.equal 10 (ListOps.foldr (+) 0 (List.range 1 4))
|
50
50
|
, test "direction" <|
|
51
|
-
\() -> Expect.equal
|
51
|
+
\() -> Expect.equal (List.range 1 4) (ListOps.foldr (::) [] (List.range 1 4))
|
52
52
|
]
|
53
53
|
, describe "append"
|
54
54
|
[ test "empty lists" <|
|
55
55
|
\() -> Expect.equal [] (ListOps.append [] [])
|
56
56
|
, test "empty and non-empty lists" <|
|
57
|
-
\() -> Expect.equal
|
57
|
+
\() -> Expect.equal (List.range 1 4) (ListOps.append [] (List.range 1 4))
|
58
58
|
, test "non-empty and empty lists" <|
|
59
|
-
\() -> Expect.equal
|
59
|
+
\() -> Expect.equal (List.range 1 4) (ListOps.append (List.range 1 4) [])
|
60
60
|
, test "non-empty lists" <|
|
61
|
-
\() -> Expect.equal
|
61
|
+
\() -> Expect.equal (List.range 1 8) (ListOps.append (List.range 1 4) (List.range 5 8))
|
62
62
|
]
|
63
63
|
, describe "concat"
|
64
64
|
[ test "empty list" <|
|
65
65
|
\() -> Expect.equal [] (ListOps.concat [])
|
66
66
|
, test "list of lists" <|
|
67
|
-
\() -> Expect.equal
|
67
|
+
\() -> Expect.equal (List.range 1 10) (ListOps.concat [ List.range 1 3, [], List.range 4 7, List.range 8 10 ])
|
68
68
|
]
|
69
69
|
]
|
70
70
|
|
71
71
|
|
72
|
-
main :
|
72
|
+
main : TestProgram
|
73
73
|
main =
|
74
74
|
run emit tests
|
75
75
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Excercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test Tests.elm"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "^0.18.0",
|
11
|
+
"elm-test": "^0.18.0"
|
12
|
+
}
|
13
|
+
}
|
data/tracks/elm/exercises/nucleotide-count/{NucleotideCount.example → NucleotideCount.example.elm}
RENAMED
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -27,7 +27,7 @@ tests =
|
|
27
27
|
]
|
28
28
|
|
29
29
|
|
30
|
-
main :
|
30
|
+
main : TestProgram
|
31
31
|
main =
|
32
32
|
run emit tests
|
33
33
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Excercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test Tests.elm"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "^0.18.0",
|
11
|
+
"elm-test": "^0.18.0"
|
12
|
+
}
|
13
|
+
}
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -49,7 +49,7 @@ tests =
|
|
49
49
|
]
|
50
50
|
|
51
51
|
|
52
|
-
main :
|
52
|
+
main : TestProgram
|
53
53
|
main =
|
54
54
|
run emit tests
|
55
55
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Excercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test Tests.elm"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "^0.18.0",
|
11
|
+
"elm-test": "^0.18.0"
|
12
|
+
}
|
13
|
+
}
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -37,7 +37,7 @@ tests =
|
|
37
37
|
]
|
38
38
|
|
39
39
|
|
40
|
-
main :
|
40
|
+
main : TestProgram
|
41
41
|
main =
|
42
42
|
run emit tests
|
43
43
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Excercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test Tests.elm"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "^0.18.0",
|
11
|
+
"elm-test": "^0.18.0"
|
12
|
+
}
|
13
|
+
}
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -43,7 +43,7 @@ tests =
|
|
43
43
|
]
|
44
44
|
|
45
45
|
|
46
|
-
main :
|
46
|
+
main : TestProgram
|
47
47
|
main =
|
48
48
|
run emit tests
|
49
49
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"description": "Excercism/Elm",
|
3
|
+
"repository": "https://github.com/exercism/xelm.git",
|
4
|
+
"license": "MIT",
|
5
|
+
"scripts": {
|
6
|
+
"postinstall": "elm-package install -y",
|
7
|
+
"test": "elm-test Tests.elm"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"elm": "^0.18.0",
|
11
|
+
"elm-test": "^0.18.0"
|
12
|
+
}
|
13
|
+
}
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
port module Main exposing (..)
|
2
2
|
|
3
|
-
import Test.Runner.Node exposing (run)
|
3
|
+
import Test.Runner.Node exposing (run, TestProgram)
|
4
4
|
import Json.Encode exposing (Value)
|
5
5
|
import Test exposing (..)
|
6
6
|
import Expect
|
@@ -27,7 +27,7 @@ tests =
|
|
27
27
|
]
|
28
28
|
|
29
29
|
|
30
|
-
main :
|
30
|
+
main : TestProgram
|
31
31
|
main =
|
32
32
|
run emit tests
|
33
33
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
],
|
9
9
|
"exposed-modules": [],
|
10
10
|
"dependencies": {
|
11
|
-
"elm-lang/core": "
|
12
|
-
"elm-community/elm-test": "
|
13
|
-
"rtfeldman/node-test-runner": "
|
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"
|
14
14
|
},
|
15
|
-
"elm-version": "0.
|
15
|
+
"elm-version": "0.18.0 <= v < 0.19.0"
|
16
16
|
}
|