trackler 2.2.1.167 → 2.2.1.169

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a7e4b7f60198ad1fd83f45ace0dd5e1370a4183
4
- data.tar.gz: 4cc482c7996ab6feb83fef78709d892c7db4d679
3
+ metadata.gz: 7ac97baa3d95b5fac5839d39492fdc5ab7bb6475
4
+ data.tar.gz: 12d70c30408a6223a225465decb0e43fba0a1dc9
5
5
  SHA512:
6
- metadata.gz: 74643fd7a7aeee2d74dee4476aeaa9b1b30def943ba53d1e810bb858d31d620da9ced430bf50699d2e6efb23b2956e0607648d85b84a068aa3ef3b70935eed3e
7
- data.tar.gz: 56d091db74ec5efcb72412214b4174d90624578f1ddaea1355669d52e0ccba13d02318f104c011db303cc8095974d3abb4bcbb564c301e1b52f91f39cd3da412
6
+ metadata.gz: f4e708c51b3e34a6947c4a0e24ac1e65577ff206edd47c28ecbdbb29015712e966656cbf484599e579fbc3c55994d8469bd42fdb4575b4ec108dccb420f32eff
7
+ data.tar.gz: 1ab16c23dfb945249683ac5b8ccd1c6bcc7556651fdbd66e3afe81be434fefaf3f88bee458a6fbed8b22a594e203f7a66a36ee4feab5381931868d4b80ffae10
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.2.1.167"
2
+ VERSION = "2.2.1.169"
3
3
  end
@@ -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": null,
12
- "bio": null
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": null,
12
- "bio": null
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
- { s with sInput = List.tail remainder; sMapping = Map.add (userWord.ToLower()) (User operations) s.sMapping }
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.5.0 of the canonical data.
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.4.0 of the canonical data.
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.2.0 of the canonical data.
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.0 of the canonical data.
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
+
@@ -1,4 +1,4 @@
1
- // This file was auto-generated based on version 1.2.0 of the canonical data.
1
+ // This file was auto-generated based on version 1.2.1 of the canonical data.
2
2
 
3
3
  module WordSearchTest
4
4
 
@@ -206,7 +206,7 @@ type Change() =
206
206
  type CircularBuffer() =
207
207
  inherit GeneratorExercise()
208
208
 
209
- override __.AdditionalNamespaces = [ "System" ]
209
+ override __.AdditionalNamespaces = [typeof<Exception>.Namespace]
210
210
 
211
211
  override __.RenderAssert _ = []
212
212
 
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.167
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-17 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip