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 +4 -4
- data/.gitmodules +3 -0
- data/common/exercises/nucleotide-codons/.deprecated +3 -0
- data/lib/trackler/version.rb +1 -1
- data/tracks/go/exercises/grains/grains_test.go +6 -6
- data/tracks/rust/exercises/grade-school/example.rs +2 -2
- data/tracks/rust/exercises/grade-school/tests/grade-school.rs +10 -10
- data/tracks/vbnet/{accumulate → exercises/accumulate}/AccumulateTest.vb +0 -0
- data/tracks/vbnet/{accumulate → exercises/accumulate}/Example.vb +0 -0
- data/tracks/vbnet/{allergies → exercises/allergies}/AllergiesTest.vb +0 -0
- data/tracks/vbnet/{allergies → exercises/allergies}/Example.vb +0 -0
- data/tracks/vbnet/{anagram → exercises/anagram}/AnagramTest.vb +0 -0
- data/tracks/vbnet/{anagram → exercises/anagram}/Example.vb +0 -0
- data/tracks/vbnet/{atbash-cipher → exercises/atbash-cipher}/AtbashTest.vb +0 -0
- data/tracks/vbnet/{atbash-cipher → exercises/atbash-cipher}/Example.vb +0 -0
- data/tracks/vbnet/{binary → exercises/binary}/BinaryTest.vb +0 -0
- data/tracks/vbnet/{binary → exercises/binary}/Example.vb +0 -0
- data/tracks/vbnet/{bob → exercises/bob}/BobTest.vb +0 -0
- data/tracks/vbnet/{bob → exercises/bob}/Example.vb +0 -0
- data/tracks/vbnet/{crypto-square → exercises/crypto-square}/CryptoSquareTest.vb +0 -0
- data/tracks/vbnet/{crypto-square → exercises/crypto-square}/Example.vb +0 -0
- metadata +18 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9dd7b33f1e64f5706eb217f9a9fd9bea021b045
|
4
|
+
data.tar.gz: 8209d45d738da47c10ed9d039910330f1f4d6d43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e6304330e158e3c2587e1cd9951a9cca505bbc2c01d096de577b48d2ec2d6810623337c31e00ce522ccc303744cd6b9be5d055abd3edb453a507b39893cd55
|
7
|
+
data.tar.gz: 9aaec6c5a8d50017273f72c566b78d77337c7fe80ea078c00880df61b00d15fd8b80ab1361d7f976ce4eb74b41beeac62784a5c111b46647e5fd2312d01ec585
|
data/.gitmodules
CHANGED
data/lib/trackler/version.rb
CHANGED
@@ -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
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
extern crate grade_school as school;
|
2
2
|
|
3
|
-
fn
|
4
|
-
v.iter().map(|s| s.
|
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)
|
62
|
-
|
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)
|
73
|
-
|
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)
|
84
|
-
|
85
|
-
assert_eq!(s.grade(7)
|
86
|
-
|
83
|
+
assert_eq!(s.grade(3),
|
84
|
+
some_strings(vec!["Chelsea"]));
|
85
|
+
assert_eq!(s.grade(7),
|
86
|
+
some_strings(vec!["Logan"]));
|
87
87
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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.
|
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-
|
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/
|
7900
|
-
- tracks/vbnet/
|
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:
|