scripref 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Changelog +3 -0
- data/lib/scripref/formatter.rb +1 -1
- data/lib/scripref.rb +1 -1
- data/test/test_formatter.rb +15 -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: 1b86988fd1527cd91715024994bc47a03f0b564a74c5ebf11781e00a7a9ebe82
|
|
4
|
+
data.tar.gz: cf809a65188207a7688dfe150af32d90acb038a871c93e9e250e8a200945f68c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b00eee0bf3b0126a320f1908e2312e4fbe86c99fa504ffc598fa709d887bc51fff6ecb140a16f25dc8897276f2717c28baa738e35dbb9869c31c2d44953154f9
|
|
7
|
+
data.tar.gz: aec528ec46bb8e7470c7ef06fac6411d4c36ccf3e3595541d07a611309a545e91404eb28c8de8e3189039a2b4be7ff04e437c023f170163a2558433a72f3bee6
|
data/Changelog
CHANGED
data/lib/scripref/formatter.rb
CHANGED
data/lib/scripref.rb
CHANGED
data/test/test_formatter.rb
CHANGED
|
@@ -238,6 +238,21 @@ class TestFormatter < Test::Unit::TestCase
|
|
|
238
238
|
assert_formated_text_for_ast text, [pass(text: t1, b1: :Matt, c1: 3, v1: 4, b2: :Matt, c2: 3, v2: 4), semi, pass(text: t2, b1: :Matt, c1: 8, b2: :Matt, c2: 8), semi, pass(text: t3, b1: :John, c1: 3, v1: 16, b2: :John, c2: 3, v2: 16)]
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
+
def test_verse_after_addon
|
|
242
|
+
text = 'Johannes 1,1-3.1-3a.1-3b.1a-3.1b-3.1a-3a.1a-3b'
|
|
243
|
+
ast = [
|
|
244
|
+
pass(b1: :John, c1: 1, v1: 1, b2: :John, c2: 1, v2: 3), dot,
|
|
245
|
+
pass(b1: :John, c1: 1, v1: 1, b2: :John, c2: 1, v2: 3, a2: :a), dot,
|
|
246
|
+
pass(b1: :John, c1: 1, v1: 1, b2: :John, c2: 1, v2: 3, a2: :b), dot,
|
|
247
|
+
pass(b1: :John, c1: 1, v1: 1, b2: :John, c2: 1, v2: 3, a1: :a), dot,
|
|
248
|
+
pass(b1: :John, c1: 1, v1: 1, b2: :John, c2: 1, v2: 3, a1: :b), dot,
|
|
249
|
+
pass(b1: :John, c1: 1, v1: 1, b2: :John, c2: 1, v2: 3, a1: :a, a2: :a), dot,
|
|
250
|
+
pass(b1: :John, c1: 1, v1: 1, b2: :John, c2: 1, v2: 3, a1: :a, a2: :b)
|
|
251
|
+
]
|
|
252
|
+
assert_formated_text_for_ast text, ast
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
|
|
241
256
|
######################################################################
|
|
242
257
|
# complex variants of references
|
|
243
258
|
######################################################################
|