trackler 2.2.1.167 → 2.2.1.169
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/csharp/config/maintainers.json +2 -2
- data/tracks/fsharp/config/maintainers.json +2 -2
- data/tracks/fsharp/exercises/forth/Example.fs +13 -1
- data/tracks/fsharp/exercises/forth/ForthTest.fs +11 -1
- data/tracks/fsharp/exercises/isbn-verifier/IsbnVerifierTest.fs +5 -1
- data/tracks/fsharp/exercises/list-ops/ListOpsTest.fs +5 -1
- data/tracks/fsharp/exercises/luhn/LuhnTest.fs +5 -1
- data/tracks/fsharp/exercises/word-search/WordSearchTest.fs +1 -1
- data/tracks/fsharp/generators/Generators.fs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ac97baa3d95b5fac5839d39492fdc5ab7bb6475
|
4
|
+
data.tar.gz: 12d70c30408a6223a225465decb0e43fba0a1dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4e708c51b3e34a6947c4a0e24ac1e65577ff206edd47c28ecbdbb29015712e966656cbf484599e579fbc3c55994d8469bd42fdb4575b4ec108dccb420f32eff
|
7
|
+
data.tar.gz: 1ab16c23dfb945249683ac5b8ccd1c6bcc7556651fdbd66e3afe81be434fefaf3f88bee458a6fbed8b22a594e203f7a66a36ee4feab5381931868d4b80ffae10
|
data/lib/trackler/version.rb
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
"name": "Erik Schierboom",
|
9
9
|
"link_text": "My blog",
|
10
10
|
"link_url": "http://www.erikschierboom.com/",
|
11
|
-
"avatar_url":
|
12
|
-
"bio":
|
11
|
+
"avatar_url": "https://nl.gravatar.com/userimage/27030165/64dc5009cee6a1177883121d464d7743.jpg",
|
12
|
+
"bio": "I am a developer with a passion for learning new languages. C# is a well-designed and expressive language that I love programming in."
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"github_username": "burtlo",
|
@@ -8,8 +8,8 @@
|
|
8
8
|
"name": "Erik Schierboom",
|
9
9
|
"link_text": "My blog",
|
10
10
|
"link_url": "http://www.erikschierboom.com/",
|
11
|
-
"avatar_url":
|
12
|
-
"bio":
|
11
|
+
"avatar_url": "https://nl.gravatar.com/userimage/27030165/64dc5009cee6a1177883121d464d7743.jpg",
|
12
|
+
"bio": "I am a developer with a passion for learning new languages. After falling in love with functional languages, F# quickly became my favorite language."
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"github_username": "jwood803",
|
@@ -99,6 +99,17 @@ let evalWord word state =
|
|
99
99
|
| None -> None
|
100
100
|
| Some op -> applyOp op state
|
101
101
|
|
102
|
+
let flattenOperation state (operation: Item) =
|
103
|
+
match operation with
|
104
|
+
| Word word ->
|
105
|
+
match state.sMapping.TryFind word with
|
106
|
+
| Some (User operations) -> operations
|
107
|
+
| _ -> [operation]
|
108
|
+
| Value _ -> [operation]
|
109
|
+
|
110
|
+
let flattenOperations state (operations: Item list) =
|
111
|
+
List.collect (flattenOperation state) operations
|
112
|
+
|
102
113
|
let rec evalState state =
|
103
114
|
match state with
|
104
115
|
| None -> state
|
@@ -111,7 +122,8 @@ let rec evalState state =
|
|
111
122
|
| ":" ->
|
112
123
|
match breakBy (fun c -> c = Word ";") xs with
|
113
124
|
| ((Word userWord::operations), remainder) ->
|
114
|
-
|
125
|
+
let flattenedOperations = flattenOperations s operations
|
126
|
+
{ s with sInput = List.tail remainder; sMapping = Map.add (userWord.ToLower()) (User flattenedOperations) s.sMapping }
|
115
127
|
|> Some
|
116
128
|
|> evalState
|
117
129
|
| _ -> None
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// This file was auto-generated based on version 1.
|
1
|
+
// This file was auto-generated based on version 1.6.0 of the canonical data.
|
2
2
|
|
3
3
|
module ForthTest
|
4
4
|
|
@@ -187,6 +187,16 @@ let ``User-defined words - can override built-in operators`` () =
|
|
187
187
|
let expected = Some [12]
|
188
188
|
evaluate [": + * ;"; "3 4 +"] |> should equal expected
|
189
189
|
|
190
|
+
[<Fact(Skip = "Remove to run test")>]
|
191
|
+
let ``User-defined words - can use different words with the same name`` () =
|
192
|
+
let expected = Some [5; 6]
|
193
|
+
evaluate [": foo 5 ;"; ": bar foo ;"; ": foo 6 ;"; "bar foo"] |> should equal expected
|
194
|
+
|
195
|
+
[<Fact(Skip = "Remove to run test")>]
|
196
|
+
let ``User-defined words - can define word that uses word with the same name`` () =
|
197
|
+
let expected = Some [11]
|
198
|
+
evaluate [": foo 10 ;"; ": foo foo 1 + ;"; "foo"] |> should equal expected
|
199
|
+
|
190
200
|
[<Fact(Skip = "Remove to run test")>]
|
191
201
|
let ``User-defined words - cannot redefine numbers`` () =
|
192
202
|
let expected = None
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// This file was auto-generated based on version 2.
|
1
|
+
// This file was auto-generated based on version 2.5.0 of the canonical data.
|
2
2
|
|
3
3
|
module IsbnVerifierTest
|
4
4
|
|
@@ -67,3 +67,7 @@ let ``Empty isbn`` () =
|
|
67
67
|
let ``Input is 9 characters`` () =
|
68
68
|
isValid "134456729" |> should equal false
|
69
69
|
|
70
|
+
[<Fact(Skip = "Remove to run test")>]
|
71
|
+
let ``Invalid characters are not ignored`` () =
|
72
|
+
isValid "3132P34035" |> should equal false
|
73
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// This file was auto-generated based on version 2.
|
1
|
+
// This file was auto-generated based on version 2.3.0 of the canonical data.
|
2
2
|
|
3
3
|
module ListOpsTest
|
4
4
|
|
@@ -27,6 +27,10 @@ let ``concat empty list`` () =
|
|
27
27
|
let ``concat list of lists`` () =
|
28
28
|
concat [[1; 2]; [3]; []; [4; 5; 6]] |> should equal [1; 2; 3; 4; 5; 6]
|
29
29
|
|
30
|
+
[<Fact(Skip = "Remove to run test")>]
|
31
|
+
let ``concat list of nested lists`` () =
|
32
|
+
concat [[[1]; [2]]; [[3]]; [[]]; [[4; 5; 6]]] |> should equal [[1]; [2]; [3]; []; [4; 5; 6]]
|
33
|
+
|
30
34
|
[<Fact(Skip = "Remove to run test")>]
|
31
35
|
let ``filter empty list`` () =
|
32
36
|
filter (fun x -> x % 2 = 1) [] |> should be Empty
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// This file was auto-generated based on version 1.
|
1
|
+
// This file was auto-generated based on version 1.2.0 of the canonical data.
|
2
2
|
|
3
3
|
module LuhnTest
|
4
4
|
|
@@ -59,3 +59,7 @@ let ``More than a single zero is valid`` () =
|
|
59
59
|
let ``Input digit 9 is correctly converted to output digit 9`` () =
|
60
60
|
valid "091" |> should equal true
|
61
61
|
|
62
|
+
[<Fact(Skip = "Remove to run test")>]
|
63
|
+
let ``Strings with non-digits is invalid`` () =
|
64
|
+
valid ":9" |> should equal false
|
65
|
+
|
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.2.1.
|
4
|
+
version: 2.2.1.169
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Owen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|