trackler 2.2.1.174 → 2.2.1.175

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trackler/version.rb +1 -1
  3. data/tracks/ecmascript/config.json +1 -0
  4. data/tracks/javascript/README.md +9 -0
  5. data/tracks/reasonml/.travis.yml +19 -2
  6. data/tracks/reasonml/Makefile +35 -0
  7. data/tracks/reasonml/README.md +2 -1
  8. data/tracks/reasonml/bsconfig.json +25 -0
  9. data/tracks/reasonml/config/maintainers.json +12 -1
  10. data/tracks/reasonml/config.json +22 -0
  11. data/tracks/reasonml/exercises/anagram/README.md +18 -0
  12. data/tracks/reasonml/exercises/binary-search/README.md +50 -0
  13. data/tracks/reasonml/exercises/binary-search/__tests__/BinarySearch_test.re +39 -0
  14. data/tracks/reasonml/exercises/binary-search/bsconfig.json +30 -0
  15. data/tracks/reasonml/exercises/binary-search/package.json +20 -0
  16. data/tracks/reasonml/exercises/binary-search/src/Example.re +17 -0
  17. data/tracks/reasonml/exercises/bob/README.md +0 -1
  18. data/tracks/reasonml/exercises/leap/README.md +26 -0
  19. data/tracks/reasonml/exercises/rna-transcription/README.md +31 -0
  20. data/tracks/reasonml/exercises/run-length-encoding/README.md +39 -0
  21. data/tracks/reasonml/exercises/run-length-encoding/__tests__/RunLengthEncoding_test.re +51 -0
  22. data/tracks/reasonml/exercises/run-length-encoding/bsconfig.json +30 -0
  23. data/tracks/reasonml/exercises/run-length-encoding/package.json +20 -0
  24. data/tracks/reasonml/exercises/run-length-encoding/src/Example.re +60 -0
  25. data/tracks/reasonml/exercises/space-age/README.md +30 -0
  26. data/tracks/reasonml/exercises/space-age/__tests__/SpaceAge_test.re +37 -0
  27. data/tracks/reasonml/package-lock.json +5853 -0
  28. data/tracks/reasonml/package.json +20 -0
  29. metadata +20 -4
  30. data/tracks/reasonml/exercises/hello-world/.gitignore +0 -8
  31. data/tracks/reasonml/exercises/space-age/__tests__/Space_age_test.re +0 -29
@@ -0,0 +1,37 @@
1
+ open Jest;
2
+ open Expect;
3
+
4
+ describe("Space Age", () => {
5
+ test("age on Earth", () =>
6
+ expect(SpaceAge.age_on(Earth, 1000000000.0))
7
+ |> toBeSoCloseTo(31.69, ~digits=2)
8
+ );
9
+ test("age on Mercury", () =>
10
+ expect(SpaceAge.age_on(Mercury, 2134835688.0))
11
+ |> toBeSoCloseTo(280.88, ~digits=2)
12
+ );
13
+ test("age on Venus", () =>
14
+ expect(SpaceAge.age_on(Venus, 189839836.0))
15
+ |> toBeSoCloseTo(9.78, ~digits=2)
16
+ );
17
+ test("age on Mars", () =>
18
+ expect(SpaceAge.age_on(Mars, 2329871239.0))
19
+ |> toBeSoCloseTo(39.25, ~digits=2)
20
+ );
21
+ test("age on Jupiter", () =>
22
+ expect(SpaceAge.age_on(Jupiter, 901876382.0))
23
+ |> toBeSoCloseTo(2.41, ~digits=2)
24
+ );
25
+ test("age on Saturn", () =>
26
+ expect(SpaceAge.age_on(Saturn, 3000000000.0))
27
+ |> toBeSoCloseTo(3.23, ~digits=2)
28
+ );
29
+ test("age on Uranus", () =>
30
+ expect(SpaceAge.age_on(Uranus, 3210123456.0))
31
+ |> toBeSoCloseTo(1.21, ~digits=2)
32
+ );
33
+ test("age on Neptune", () =>
34
+ expect(SpaceAge.age_on(Neptune, 8210123456.0))
35
+ |> toBeSoCloseTo(1.58, ~digits=2)
36
+ );
37
+ });