tracinho 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tracinho/version.rb +1 -1
- data/lib/tracinho.rb +3 -0
- data/spec/tracinho_spec.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05d53905d331c7f2432c585ec35d383f765c8fe0934350614badca6fa434b746
|
4
|
+
data.tar.gz: 0575660c51075710cd2eba36262cb4e2026e5701370b1e0ec98e0adaa34fd72f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4757ce4cd655205c8525b35a993fcb76775bfc184098714402f115ccfa0f4832601444539a1474fa4a5551166ba0ae55ed439b1138d9d5a65c3e94727d31a901
|
7
|
+
data.tar.gz: 79a15a4fc3f47ad6b7012bd21ab6de1ded9023b90ad1628b196ad50fb7c29cdab579b12f95c6ac407ccabdd8bcc90d7ec04c643237380c78a677cb2c7cd9fb21
|
data/Gemfile.lock
CHANGED
data/lib/tracinho/version.rb
CHANGED
data/lib/tracinho.rb
CHANGED
data/spec/tracinho_spec.rb
CHANGED
@@ -18,6 +18,16 @@ describe Tracinho do
|
|
18
18
|
expect(described_class.pair?(w2, w1)).to be_falsey
|
19
19
|
end
|
20
20
|
|
21
|
+
it 'works with strings or Tracinho::Word objects' do
|
22
|
+
w1 = Tracinho::Word.new('fizeste')
|
23
|
+
w2 = 'fizes-te'
|
24
|
+
w3 = 'fizeste'
|
25
|
+
w4 = Tracinho::Word.new('fizes-te')
|
26
|
+
|
27
|
+
expect(described_class.pair?(w1, w2)).to be_truthy
|
28
|
+
expect(described_class.pair?(w4, w3)).to be_truthy
|
29
|
+
end
|
30
|
+
|
21
31
|
it 'has an alias `complementary?`' do
|
22
32
|
w1 = Tracinho::Word.new('fizeste')
|
23
33
|
w2 = Tracinho::Word.new('fizes-te')
|