trackler 2.0.8.4 → 2.0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/tracks/c/config.json +12 -6
- data/tracks/c/exercises/space-age/makefile +16 -0
- data/tracks/c/exercises/space-age/src/example.c +53 -0
- data/tracks/c/exercises/space-age/src/example.h +13 -0
- data/tracks/c/exercises/space-age/test/test_space_age.c +57 -0
- data/tracks/c/exercises/space-age/test/vendor/unity.c +1300 -0
- data/tracks/c/exercises/space-age/test/vendor/unity.h +274 -0
- data/tracks/c/exercises/space-age/test/vendor/unity_internals.h +701 -0
- data/tracks/delphi/config.json +10 -1
- data/tracks/delphi/exercises/hello-world/uHelloWorldExample.pas +3 -3
- data/tracks/delphi/exercises/hello-world/uTestHelloWorld.pas +2 -18
- data/tracks/delphi/exercises/poker/Poker.dpr +60 -0
- data/tracks/delphi/exercises/poker/uPokerExample.pas +253 -0
- data/tracks/delphi/exercises/poker/uPokerTest.pas +582 -0
- data/tracks/fsharp/README.md +5 -0
- data/tracks/fsharp/docs/RESOURCES.md +2 -0
- data/tracks/python/exercises/atbash-cipher/atbash_cipher_test.py +12 -0
- data/tracks/python/exercises/poker/poker_test.py +12 -0
- data/tracks/rust/README.md +1 -0
- metadata +12 -2
data/tracks/fsharp/README.md
CHANGED
@@ -4,6 +4,11 @@
|
|
4
4
|
|
5
5
|
Exercism exercises in F#
|
6
6
|
|
7
|
+
## Support and Discussion
|
8
|
+
|
9
|
+
We have a [gitter channel](https://gitter.im/exercism/xfsharp) where you can get support for any issues you might be facing (build setup, failing tests, etc.) or brainstorm with other people for the solution.
|
10
|
+
|
11
|
+
|
7
12
|
## Contributing Guide
|
8
13
|
|
9
14
|
Please see the [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data)
|
@@ -9,6 +9,8 @@
|
|
9
9
|
* The [F# channel](https://functionalprogramming.slack.com/messages/fsharp/) of the [functionalprogramming slack account](https://functionalprogramming.slack.com/). To join, go to [fpchat.com](http://fpchat.com/).
|
10
10
|
* The [F# slack account](https://fsharp.slack.com). To join, you have to [become a member of the F# foundation](http://fsharp.org/guides/slack/).
|
11
11
|
* [/r/fsharp](https://www.reddit.com/r/fsharp) is the F# subreddit.
|
12
|
+
* The [Gitter channel](https://gitter.im/exercism/xfsharp) can be used to ask questions and get support for any issues related to the F# track.
|
13
|
+
|
12
14
|
|
13
15
|
### Videos
|
14
16
|
* The [Community for F#](https://www.youtube.com/channel/UCCQPh0mSMaVpRcKUeWPotSA/feed) YouTube channel has got lots of F# videos.
|
@@ -42,6 +42,18 @@ class AtbashCipherTest(unittest.TestCase):
|
|
42
42
|
decode("zmlyh gzxov rhlug vmzhg vkkrm thglm v")
|
43
43
|
)
|
44
44
|
|
45
|
+
def test_decode_numbers(self):
|
46
|
+
self.assertMultiLineEqual(
|
47
|
+
"testing123testing",
|
48
|
+
decode("gvhgr mt123 gvhgr mt")
|
49
|
+
)
|
50
|
+
|
51
|
+
def test_encode_decode(self):
|
52
|
+
self.assertMultiLineEqual(
|
53
|
+
"testing123testing",
|
54
|
+
decode(encode("Testing, 1 2 3, testing."))
|
55
|
+
)
|
56
|
+
|
45
57
|
|
46
58
|
if __name__ == '__main__':
|
47
59
|
unittest.main()
|
@@ -29,6 +29,18 @@ class PokerTest(unittest.TestCase):
|
|
29
29
|
self.assertEqual([doublePair2and8],
|
30
30
|
poker([doublePair2and8, doublePair4and5]))
|
31
31
|
|
32
|
+
def test_two_double_pair_lower(self):
|
33
|
+
doublePair2and8 = '2S 8H 2S 8C JH'.split()
|
34
|
+
doublePair3and8 = '4S 3H 8S 8D 3H'.split()
|
35
|
+
self.assertEqual([doublePair3and8],
|
36
|
+
poker([doublePair2and8, doublePair3and8]))
|
37
|
+
|
38
|
+
def test_two_double_pair_and_high(self):
|
39
|
+
doublePair2and8 = '2S 8H 2C 8C 3H'.split()
|
40
|
+
doublePair2and8high = '2D 2H 8S 8D AH'.split()
|
41
|
+
self.assertEqual([doublePair2and8high],
|
42
|
+
poker([doublePair2and8high, doublePair2and8]))
|
43
|
+
|
32
44
|
def test_double_pair_vs_three(self):
|
33
45
|
doublePair2and8 = '2S 8H 2S 8D JH'.split()
|
34
46
|
threeOf4 = '4S 5H 4S 8D 4H'.split()
|
data/tracks/rust/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# xRust
|
2
2
|
|
3
|
+
[](https://travis-ci.org/exercism/xrust)
|
3
4
|
[](https://gitter.im/exercism/xrust?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
5
|
|
5
6
|
Exercism exercises in Rust
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.8.
|
4
|
+
version: 2.0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Owen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -742,6 +742,13 @@ files:
|
|
742
742
|
- tracks/c/exercises/sieve/test/vendor/unity.c
|
743
743
|
- tracks/c/exercises/sieve/test/vendor/unity.h
|
744
744
|
- tracks/c/exercises/sieve/test/vendor/unity_internals.h
|
745
|
+
- tracks/c/exercises/space-age/makefile
|
746
|
+
- tracks/c/exercises/space-age/src/example.c
|
747
|
+
- tracks/c/exercises/space-age/src/example.h
|
748
|
+
- tracks/c/exercises/space-age/test/test_space_age.c
|
749
|
+
- tracks/c/exercises/space-age/test/vendor/unity.c
|
750
|
+
- tracks/c/exercises/space-age/test/vendor/unity.h
|
751
|
+
- tracks/c/exercises/space-age/test/vendor/unity_internals.h
|
745
752
|
- tracks/c/exercises/sum-of-multiples/makefile
|
746
753
|
- tracks/c/exercises/sum-of-multiples/src/example.c
|
747
754
|
- tracks/c/exercises/sum-of-multiples/src/example.h
|
@@ -1667,6 +1674,9 @@ files:
|
|
1667
1674
|
- tracks/delphi/exercises/phone-number/PhoneNumberTests.dpr
|
1668
1675
|
- tracks/delphi/exercises/phone-number/uPhoneNumberExample.pas
|
1669
1676
|
- tracks/delphi/exercises/phone-number/uPhoneNumberTests.pas
|
1677
|
+
- tracks/delphi/exercises/poker/Poker.dpr
|
1678
|
+
- tracks/delphi/exercises/poker/uPokerExample.pas
|
1679
|
+
- tracks/delphi/exercises/poker/uPokerTest.pas
|
1670
1680
|
- tracks/delphi/exercises/rna-transcription/TestRnaTranscription.dpr
|
1671
1681
|
- tracks/delphi/exercises/rna-transcription/uRnaTranscriptionExample.pas
|
1672
1682
|
- tracks/delphi/exercises/rna-transcription/uTestRnaTranscription.pas
|