cousin_roman 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cousin_roman/version.rb +1 -1
- data/spec/cousin_roman/roman_spec.rb +12 -12
- 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: b45cae2540c90b30061a2e8e74e350f3b69bfcc5
|
4
|
+
data.tar.gz: c0c11c4d0f97d4314eea9ebfa1f55e622778bae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e48cc37e421b0edcda6f46b6174c5a9e053970e3408b230b7726376d575db4dbc64865e5bc98876523f4ca126e34209853b73aa2e569dbab4ba0e9709404c5d5
|
7
|
+
data.tar.gz: dc558327fb0352bd5058058491b4135844f5c44d32088e93cb6a49e6e5a730167e25ee5e0c0c707d5d3cae16856c59c2cfbbf399068277ccc8169957f304e24b
|
data/lib/cousin_roman/version.rb
CHANGED
@@ -75,29 +75,29 @@ describe CousinRoman::Roman do
|
|
75
75
|
describe 'ordering validation' do
|
76
76
|
context 'when validating that factors are ordered by descreasing of power' do
|
77
77
|
ORDERINGS_RIGHT = [
|
78
|
-
'
|
79
|
-
'
|
80
|
-
'
|
81
|
-
'
|
82
|
-
'
|
83
|
-
'
|
78
|
+
'm-d', 'm-c',
|
79
|
+
'c-l', 'c-x',
|
80
|
+
'x-v', 'x-i',
|
81
|
+
'm-cm', 'm-cd',
|
82
|
+
'c-xc', 'c-xl',
|
83
|
+
'x-ix', 'x-iv'
|
84
84
|
]
|
85
85
|
ORDERINGS_WRONG = [
|
86
|
-
'
|
87
|
-
'
|
88
|
-
'
|
89
|
-
'
|
86
|
+
'd-m', 'l-c', 'v-x',
|
87
|
+
'cm-m', 'cd-m',
|
88
|
+
'xc-c', 'x-lc',
|
89
|
+
'ix-x', 'iv-x'
|
90
90
|
]
|
91
91
|
|
92
92
|
ORDERINGS_RIGHT.each do |pair|
|
93
|
-
high, low = pair.split(''
|
93
|
+
high, low = pair.split('-')
|
94
94
|
it "should allow #{high}#{low}" do
|
95
95
|
CousinRoman::Roman.valid?(high + low).should be_true
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
99
|
ORDERINGS_WRONG.each do |pair|
|
100
|
-
low, high = pair.split(''
|
100
|
+
low, high = pair.split('-')
|
101
101
|
it "should not allow #{low}#{high}" do
|
102
102
|
CousinRoman::Roman.valid?(low + high).should be_false
|
103
103
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cousin_roman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Pyanykh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|