div_by_3 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -1
- data/lib/div_by_3.rb +2 -2
- data/test/test_div_by_3.rb +8 -8
- 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: 738ff70503ae3e2fe564a1e38c93096a91cd7790
|
4
|
+
data.tar.gz: 3c749d4206a92fbc7f3206b828eddc44d12bfd48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b121be11413143b6d13a09a1993d385e972474155ce159602038cb14976bdc14016a0bfbe912ac47f5acd3bff4539be0924a8e325b8939bd3169b2eeb328d2d
|
7
|
+
data.tar.gz: 1976f80763cfcd2097713b2c0799e2d90911714893570c5e38840a9a29be05b8ede82bffc7036f6c17de4aa2d9dca051f603881cd4fc95595fd11af35a821cb3
|
data/History.txt
CHANGED
data/lib/div_by_3.rb
CHANGED
data/test/test_div_by_3.rb
CHANGED
@@ -8,37 +8,37 @@ require "div_by_3"
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def test_valid_val
|
11
|
-
assert
|
11
|
+
assert div_by_3(123)
|
12
12
|
end
|
13
13
|
|
14
14
|
def test_valid_val_zero
|
15
|
-
assert
|
15
|
+
assert div_by_3(0)
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_valid_val_negative
|
19
|
-
refute
|
19
|
+
refute div_by_3(-2)
|
20
20
|
end
|
21
21
|
|
22
22
|
|
23
23
|
def test_valid_val_but_false
|
24
|
-
refute
|
24
|
+
refute div_by_3(223)
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_invalid_string
|
28
|
-
assert_raises(TypeError) {
|
28
|
+
assert_raises(TypeError) { div_by_3("123") }
|
29
29
|
end
|
30
30
|
|
31
31
|
def test_invalid_array
|
32
|
-
assert_raises(TypeError){
|
32
|
+
assert_raises(TypeError){ div_by_3([123])}
|
33
33
|
end
|
34
34
|
|
35
35
|
|
36
36
|
def test_valid_val_very_big_false
|
37
|
-
refute
|
37
|
+
refute div_by_3(1231123232445353645667657567575)
|
38
38
|
end
|
39
39
|
|
40
40
|
def test_valid_val_very_big_true
|
41
|
-
assert
|
41
|
+
assert div_by_3(1231123232445353645667657567576)
|
42
42
|
end
|
43
43
|
|
44
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: div_by_3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fredrik Svärd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|