trackler 2.0.6.39 → 2.0.6.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad5428c146f9e6636b2a669586bae43dfe2aee40
4
- data.tar.gz: fb1cc9b23f967f79906fc911e724a606ee8134e0
3
+ metadata.gz: b9dd7b33f1e64f5706eb217f9a9fd9bea021b045
4
+ data.tar.gz: 8209d45d738da47c10ed9d039910330f1f4d6d43
5
5
  SHA512:
6
- metadata.gz: 2a01f0a853ebfcc1cbf1d02e9f6f274bd2797388db006ac7eff8c501bb3410d30ae296f6d3b665a1beedadae1c1a7216c003bbd03e0dd72da9a76038b218352e
7
- data.tar.gz: 45d11ce9819d26cc0ca110ba02bec6c4c6515e6f3b103ff711d43e2617f51d864bdf4a63839c13d0d1d459d4fa88270e0d346ae28ba1952da6409836e186a944
6
+ metadata.gz: 52e6304330e158e3c2587e1cd9951a9cca505bbc2c01d096de577b48d2ec2d6810623337c31e00ce522ccc303744cd6b9be5d055abd3edb453a507b39893cd55
7
+ data.tar.gz: 9aaec6c5a8d50017273f72c566b78d77337c7fe80ea078c00880df61b00d15fd8b80ab1361d7f976ce4eb74b41beeac62784a5c111b46647e5fd2312d01ec585
@@ -166,3 +166,6 @@
166
166
  [submodule "tracks/delphi"]
167
167
  path = tracks/delphi
168
168
  url = https://github.com/exercism/xdelphi
169
+ [submodule "tracks/typescript"]
170
+ path = tracks/typescript
171
+ url = https://github.com/exercism/xtypescript
@@ -0,0 +1,3 @@
1
+ **NOTE: This exercise has been deprecated**
2
+ Your track should implement protein-translation instead.
3
+ https://github.com/exercism/x-common/issues/268
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.0.6.39"
2
+ VERSION = "2.0.6.40"
3
3
  end
@@ -23,6 +23,12 @@ var squareTests = []struct {
23
23
  {-1, 0, true},
24
24
  }
25
25
 
26
+ func TestTestVersion(t *testing.T) {
27
+ if testVersion != targetTestVersion {
28
+ t.Fatalf("Found testVersion = %v, want %v.", testVersion, targetTestVersion)
29
+ }
30
+ }
31
+
26
32
  func TestSquare(t *testing.T) {
27
33
  for _, test := range squareTests {
28
34
  actualVal, actualErr := Square(test.input)
@@ -51,12 +57,6 @@ func TestTotal(t *testing.T) {
51
57
  }
52
58
  }
53
59
 
54
- func TestTestVersion(t *testing.T) {
55
- if testVersion != targetTestVersion {
56
- t.Errorf("Found testVersion = %v, want %v.", testVersion, targetTestVersion)
57
- }
58
- }
59
-
60
60
  func BenchmarkSquare(b *testing.B) {
61
61
  b.StopTimer()
62
62
 
@@ -21,7 +21,7 @@ impl School {
21
21
  s
22
22
  }
23
23
 
24
- pub fn grade(&self, grade: u32) -> Option<&Vec<String>> {
25
- self.grades.get(&grade)
24
+ pub fn grade(&self, grade: u32) -> Option<Vec<String>> {
25
+ self.grades.get(&grade).map(|v| v.iter().cloned().collect())
26
26
  }
27
27
  }
@@ -1,7 +1,7 @@
1
1
  extern crate grade_school as school;
2
2
 
3
- fn stringvec_to_strvec(v: &Vec<String>) -> Vec<&str> {
4
- v.iter().map(|s| s.as_ref()).collect()
3
+ fn some_strings(v: Vec<&str>) -> Option<Vec<String>> {
4
+ Some(v.iter().map(|s| s.to_string()).collect())
5
5
  }
6
6
 
7
7
  #[test]
@@ -58,8 +58,8 @@ fn test_grade_when_no_students_have_that_grade() {
58
58
  fn test_grade_for_one_student() {
59
59
  let mut s = school::School::new();
60
60
  s.add(2, "Aimee");
61
- assert_eq!(s.grade(2).map(|v| stringvec_to_strvec(v)),
62
- Some(vec!["Aimee"]))
61
+ assert_eq!(s.grade(2),
62
+ some_strings(vec!["Aimee"]));
63
63
  }
64
64
 
65
65
  #[test]
@@ -69,8 +69,8 @@ fn test_grade_returns_students_sorted_by_name() {
69
69
  s.add(2, "James");
70
70
  s.add(2, "Blair");
71
71
  s.add(2, "Paul");
72
- assert_eq!(s.grade(2).map(|v| stringvec_to_strvec(v)),
73
- Some(vec!["Blair", "James", "Paul"]));
72
+ assert_eq!(s.grade(2),
73
+ some_strings(vec!["Blair", "James", "Paul"]));
74
74
  }
75
75
 
76
76
  #[test]
@@ -80,8 +80,8 @@ fn test_add_students_to_different_grades() {
80
80
  s.add(3, "Chelsea");
81
81
  s.add(7, "Logan");
82
82
  assert_eq!(s.grades(), vec!(3, 7));
83
- assert_eq!(s.grade(3).map(|v| stringvec_to_strvec(v)),
84
- Some(vec!["Chelsea"]));
85
- assert_eq!(s.grade(7).map(|v| stringvec_to_strvec(v)),
86
- Some(vec!["Logan"]));
83
+ assert_eq!(s.grade(3),
84
+ some_strings(vec!["Chelsea"]));
85
+ assert_eq!(s.grade(7),
86
+ some_strings(vec!["Logan"]));
87
87
  }
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.6.39
4
+ version: 2.0.6.40
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-12 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -267,6 +267,7 @@ files:
267
267
  - common/exercises/nth-prime/canonical-data.json
268
268
  - common/exercises/nth-prime/description.md
269
269
  - common/exercises/nth-prime/metadata.yml
270
+ - common/exercises/nucleotide-codons/.deprecated
270
271
  - common/exercises/nucleotide-codons/description.md
271
272
  - common/exercises/nucleotide-codons/metadata.yml
272
273
  - common/exercises/nucleotide-count/canonical-data.json
@@ -6759,6 +6760,7 @@ files:
6759
6760
  - tracks/rust/exercises/grade-school/Cargo.lock
6760
6761
  - tracks/rust/exercises/grade-school/Cargo.toml
6761
6762
  - tracks/rust/exercises/grade-school/example.rs
6763
+ - tracks/rust/exercises/grade-school/src/lib.rs
6762
6764
  - tracks/rust/exercises/grade-school/tests/grade-school.rs
6763
6765
  - tracks/rust/exercises/grains/.gitignore
6764
6766
  - tracks/rust/exercises/grains/Cargo.toml
@@ -7882,22 +7884,22 @@ files:
7882
7884
  - tracks/vbnet/.travis.yml
7883
7885
  - tracks/vbnet/README.md
7884
7886
  - tracks/vbnet/SETUP.md
7885
- - tracks/vbnet/accumulate/AccumulateTest.vb
7886
- - tracks/vbnet/accumulate/Example.vb
7887
- - tracks/vbnet/allergies/AllergiesTest.vb
7888
- - tracks/vbnet/allergies/Example.vb
7889
- - tracks/vbnet/anagram/AnagramTest.vb
7890
- - tracks/vbnet/anagram/Example.vb
7891
- - tracks/vbnet/atbash-cipher/AtbashTest.vb
7892
- - tracks/vbnet/atbash-cipher/Example.vb
7893
7887
  - tracks/vbnet/bin/fetch-configlet
7894
- - tracks/vbnet/binary/BinaryTest.vb
7895
- - tracks/vbnet/binary/Example.vb
7896
- - tracks/vbnet/bob/BobTest.vb
7897
- - tracks/vbnet/bob/Example.vb
7898
7888
  - tracks/vbnet/config.json
7899
- - tracks/vbnet/crypto-square/CryptoSquareTest.vb
7900
- - tracks/vbnet/crypto-square/Example.vb
7889
+ - tracks/vbnet/exercises/accumulate/AccumulateTest.vb
7890
+ - tracks/vbnet/exercises/accumulate/Example.vb
7891
+ - tracks/vbnet/exercises/allergies/AllergiesTest.vb
7892
+ - tracks/vbnet/exercises/allergies/Example.vb
7893
+ - tracks/vbnet/exercises/anagram/AnagramTest.vb
7894
+ - tracks/vbnet/exercises/anagram/Example.vb
7895
+ - tracks/vbnet/exercises/atbash-cipher/AtbashTest.vb
7896
+ - tracks/vbnet/exercises/atbash-cipher/Example.vb
7897
+ - tracks/vbnet/exercises/binary/BinaryTest.vb
7898
+ - tracks/vbnet/exercises/binary/Example.vb
7899
+ - tracks/vbnet/exercises/bob/BobTest.vb
7900
+ - tracks/vbnet/exercises/bob/Example.vb
7901
+ - tracks/vbnet/exercises/crypto-square/CryptoSquareTest.vb
7902
+ - tracks/vbnet/exercises/crypto-square/Example.vb
7901
7903
  - tracks/vbnet/img/icon.png
7902
7904
  homepage: http://exercism.io
7903
7905
  licenses: