bible-ref-parse 3.0.0 → 3.0.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.
Files changed (97) hide show
  1. package/dist/ar-bcv-parser.js +7480 -0
  2. package/dist/bg-bcv-parser.js +7568 -0
  3. package/dist/ceb-bcv-parser.js +7498 -0
  4. package/dist/cs-bcv-parser.js +7613 -0
  5. package/dist/da-bcv-parser.js +7560 -0
  6. package/dist/de-bcv-parser.js +8406 -0
  7. package/dist/el-bcv-parser.js +7929 -0
  8. package/dist/en-bcv-parser.js +8404 -0
  9. package/dist/es-bcv-parser.js +8164 -0
  10. package/dist/fa-bcv-parser.js +7603 -0
  11. package/dist/fi-bcv-parser.js +7630 -0
  12. package/dist/fr-bcv-parser.js +7867 -0
  13. package/dist/he-bcv-parser.js +7504 -0
  14. package/dist/hi-bcv-parser.js +7480 -0
  15. package/dist/hr-bcv-parser.js +7500 -0
  16. package/dist/ht-bcv-parser.js +7526 -0
  17. package/dist/hu-bcv-parser.js +7785 -0
  18. package/dist/is-bcv-parser.js +7553 -0
  19. package/dist/it-bcv-parser.js +7875 -0
  20. package/dist/ja-bcv-parser.js +7528 -0
  21. package/dist/jv-bcv-parser.js +7489 -0
  22. package/dist/ko-bcv-parser.js +7528 -0
  23. package/dist/la-bcv-parser.js +7736 -0
  24. package/dist/mk-bcv-parser.js +7507 -0
  25. package/dist/mr-bcv-parser.js +7480 -0
  26. package/dist/ne-bcv-parser.js +7478 -0
  27. package/dist/nl-bcv-parser.js +7750 -0
  28. package/dist/no-bcv-parser.js +7633 -0
  29. package/dist/or-bcv-parser.js +7480 -0
  30. package/dist/pa-bcv-parser.js +7478 -0
  31. package/dist/pl-bcv-parser.js +7910 -0
  32. package/dist/pt-bcv-parser.js +8001 -0
  33. package/dist/ro-bcv-parser.js +7772 -0
  34. package/dist/ru-bcv-parser.js +7602 -0
  35. package/dist/sk-bcv-parser.js +7713 -0
  36. package/dist/so-bcv-parser.js +7490 -0
  37. package/dist/sq-bcv-parser.js +7478 -0
  38. package/dist/sr-bcv-parser.js +7510 -0
  39. package/dist/sv-bcv-parser.js +7695 -0
  40. package/dist/sw-bcv-parser.js +7540 -0
  41. package/dist/ta-bcv-parser.js +7514 -0
  42. package/dist/test/ar.spec.js +2634 -0
  43. package/dist/test/bg.spec.js +3849 -0
  44. package/dist/test/ceb.spec.js +2533 -0
  45. package/dist/test/cs.spec.js +6593 -0
  46. package/dist/test/da.spec.js +2976 -0
  47. package/dist/test/de.spec.js +3114 -0
  48. package/dist/test/el.spec.js +4287 -0
  49. package/dist/test/en.spec.js +13196 -0
  50. package/dist/test/es.spec.js +5634 -0
  51. package/dist/test/fa.spec.js +16707 -0
  52. package/dist/test/fi.spec.js +3001 -0
  53. package/dist/test/fr.spec.js +3712 -0
  54. package/dist/test/he.spec.js +2411 -0
  55. package/dist/test/hi.spec.js +2754 -0
  56. package/dist/test/hr.spec.js +2851 -0
  57. package/dist/test/ht.spec.js +2749 -0
  58. package/dist/test/hu.spec.js +3951 -0
  59. package/dist/test/is.spec.js +3753 -0
  60. package/dist/test/it.spec.js +2917 -0
  61. package/dist/test/ja.spec.js +3079 -0
  62. package/dist/test/jv.spec.js +2470 -0
  63. package/dist/test/ko.spec.js +2682 -0
  64. package/dist/test/la.spec.js +2915 -0
  65. package/dist/test/mk.spec.js +3064 -0
  66. package/dist/test/mr.spec.js +3664 -0
  67. package/dist/test/ne.spec.js +4300 -0
  68. package/dist/test/nl.spec.js +3849 -0
  69. package/dist/test/no.spec.js +2867 -0
  70. package/dist/test/or.spec.js +2411 -0
  71. package/dist/test/pa.spec.js +2460 -0
  72. package/dist/test/pl.spec.js +7682 -0
  73. package/dist/test/pt.spec.js +3318 -0
  74. package/dist/test/ro.spec.js +3065 -0
  75. package/dist/test/ru.spec.js +3796 -0
  76. package/dist/test/sk.spec.js +5611 -0
  77. package/dist/test/so.spec.js +2613 -0
  78. package/dist/test/sq.spec.js +2643 -0
  79. package/dist/test/sr.spec.js +3150 -0
  80. package/dist/test/sv.spec.js +2785 -0
  81. package/dist/test/sw.spec.js +2994 -0
  82. package/dist/test/ta.spec.js +4859 -0
  83. package/dist/test/th.spec.js +2403 -0
  84. package/dist/test/tl.spec.js +3728 -0
  85. package/dist/test/tr.spec.js +19459 -0
  86. package/dist/test/uk.spec.js +6852 -0
  87. package/dist/test/ur.spec.js +3536 -0
  88. package/dist/test/vi.spec.js +2897 -0
  89. package/dist/test/zh.spec.js +4744 -0
  90. package/dist/th-bcv-parser.js +7478 -0
  91. package/dist/tl-bcv-parser.js +7555 -0
  92. package/dist/tr-bcv-parser.js +7673 -0
  93. package/dist/uk-bcv-parser.js +7541 -0
  94. package/dist/ur-bcv-parser.js +7564 -0
  95. package/dist/vi-bcv-parser.js +7480 -0
  96. package/dist/zh-bcv-parser.js +7588 -0
  97. package/package.json +2 -2
@@ -0,0 +1,2470 @@
1
+ (function() {
2
+ var bcv_parser;
3
+
4
+ bcv_parser = require("../../dist/jv-bcv-parser.js").bcv_parser;
5
+
6
+ describe("Parsing", function() {
7
+ var p;
8
+ p = {};
9
+ beforeEach(function() {
10
+ p = new bcv_parser();
11
+ p.options.osis_compaction_strategy = "b";
12
+ return p.options.sequence_combination_strategy = "combine";
13
+ });
14
+ it("should round-trip OSIS references", function() {
15
+ var bc, bcv, bcv_range, book, books, i, len, results;
16
+ p.set_options({
17
+ osis_compaction_strategy: "bc"
18
+ });
19
+ books = ["Gen", "Exod", "Lev", "Num", "Deut", "Josh", "Judg", "Ruth", "1Sam", "2Sam", "1Kgs", "2Kgs", "1Chr", "2Chr", "Ezra", "Neh", "Esth", "Job", "Ps", "Prov", "Eccl", "Song", "Isa", "Jer", "Lam", "Ezek", "Dan", "Hos", "Joel", "Amos", "Obad", "Jonah", "Mic", "Nah", "Hab", "Zeph", "Hag", "Zech", "Mal", "Matt", "Mark", "Luke", "John", "Acts", "Rom", "1Cor", "2Cor", "Gal", "Eph", "Phil", "Col", "1Thess", "2Thess", "1Tim", "2Tim", "Titus", "Phlm", "Heb", "Jas", "1Pet", "2Pet", "1John", "2John", "3John", "Jude", "Rev"];
20
+ results = [];
21
+ for (i = 0, len = books.length; i < len; i++) {
22
+ book = books[i];
23
+ bc = book + ".1";
24
+ bcv = bc + ".1";
25
+ bcv_range = bcv + "-" + bc + ".2";
26
+ expect(p.parse(bc).osis()).toEqual(bc);
27
+ expect(p.parse(bcv).osis()).toEqual(bcv);
28
+ results.push(expect(p.parse(bcv_range).osis()).toEqual(bcv_range));
29
+ }
30
+ return results;
31
+ });
32
+ it("should round-trip OSIS Apocrypha references", function() {
33
+ var bc, bcv, bcv_range, book, books, i, j, len, len1, results;
34
+ p.set_options({
35
+ osis_compaction_strategy: "bc",
36
+ ps151_strategy: "b"
37
+ });
38
+ p.include_apocrypha(true);
39
+ books = ["Tob", "Jdt", "GkEsth", "Wis", "Sir", "Bar", "PrAzar", "Sus", "Bel", "SgThree", "EpJer", "1Macc", "2Macc", "3Macc", "4Macc", "1Esd", "2Esd", "PrMan", "Ps151"];
40
+ for (i = 0, len = books.length; i < len; i++) {
41
+ book = books[i];
42
+ bc = book + ".1";
43
+ bcv = bc + ".1";
44
+ bcv_range = bcv + "-" + bc + ".2";
45
+ expect(p.parse(bc).osis()).toEqual(bc);
46
+ expect(p.parse(bcv).osis()).toEqual(bcv);
47
+ expect(p.parse(bcv_range).osis()).toEqual(bcv_range);
48
+ }
49
+ p.set_options({
50
+ ps151_strategy: "bc"
51
+ });
52
+ expect(p.parse("Ps151.1").osis()).toEqual("Ps.151");
53
+ expect(p.parse("Ps151.1.1").osis()).toEqual("Ps.151.1");
54
+ expect(p.parse("Ps151.1-Ps151.2").osis()).toEqual("Ps.151.1-Ps.151.2");
55
+ p.include_apocrypha(false);
56
+ results = [];
57
+ for (j = 0, len1 = books.length; j < len1; j++) {
58
+ book = books[j];
59
+ bc = book + ".1";
60
+ results.push(expect(p.parse(bc).osis()).toEqual(""));
61
+ }
62
+ return results;
63
+ });
64
+ return it("should handle a preceding character", function() {
65
+ expect(p.parse(" Gen 1").osis()).toEqual("Gen.1");
66
+ expect(p.parse("Matt5John3").osis()).toEqual("Matt.5,John.3");
67
+ expect(p.parse("1Ps 1").osis()).toEqual("");
68
+ return expect(p.parse("11Sam 1").osis()).toEqual("");
69
+ });
70
+ });
71
+
72
+ describe("Localized book Gen (jv)", function() {
73
+ var p;
74
+ p = {};
75
+ beforeEach(function() {
76
+ p = new bcv_parser();
77
+ p.set_options({
78
+ book_alone_strategy: "ignore",
79
+ book_sequence_strategy: "ignore",
80
+ osis_compaction_strategy: "bc",
81
+ captive_end_digits_strategy: "delete"
82
+ });
83
+ return p.include_apocrypha(true);
84
+ });
85
+ return it("should handle book: Gen (jv)", function() {
86
+
87
+ expect(p.parse("Purwaning Dumadi 1:1").osis()).toEqual("Gen.1.1", "parsing: 'Purwaning Dumadi 1:1'")
88
+ expect(p.parse("Gen 1:1").osis()).toEqual("Gen.1.1", "parsing: 'Gen 1:1'")
89
+ p.include_apocrypha(false)
90
+ expect(p.parse("PURWANING DUMADI 1:1").osis()).toEqual("Gen.1.1", "parsing: 'PURWANING DUMADI 1:1'")
91
+ expect(p.parse("GEN 1:1").osis()).toEqual("Gen.1.1", "parsing: 'GEN 1:1'")
92
+ ;
93
+ return true;
94
+ });
95
+ });
96
+
97
+ describe("Localized book Exod (jv)", function() {
98
+ var p;
99
+ p = {};
100
+ beforeEach(function() {
101
+ p = new bcv_parser();
102
+ p.set_options({
103
+ book_alone_strategy: "ignore",
104
+ book_sequence_strategy: "ignore",
105
+ osis_compaction_strategy: "bc",
106
+ captive_end_digits_strategy: "delete"
107
+ });
108
+ return p.include_apocrypha(true);
109
+ });
110
+ return it("should handle book: Exod (jv)", function() {
111
+
112
+ expect(p.parse("Pangentasan 1:1").osis()).toEqual("Exod.1.1", "parsing: 'Pangentasan 1:1'")
113
+ expect(p.parse("Exod 1:1").osis()).toEqual("Exod.1.1", "parsing: 'Exod 1:1'")
114
+ p.include_apocrypha(false)
115
+ expect(p.parse("PANGENTASAN 1:1").osis()).toEqual("Exod.1.1", "parsing: 'PANGENTASAN 1:1'")
116
+ expect(p.parse("EXOD 1:1").osis()).toEqual("Exod.1.1", "parsing: 'EXOD 1:1'")
117
+ ;
118
+ return true;
119
+ });
120
+ });
121
+
122
+ describe("Localized book Bel (jv)", function() {
123
+ var p;
124
+ p = {};
125
+ beforeEach(function() {
126
+ p = new bcv_parser();
127
+ p.set_options({
128
+ book_alone_strategy: "ignore",
129
+ book_sequence_strategy: "ignore",
130
+ osis_compaction_strategy: "bc",
131
+ captive_end_digits_strategy: "delete"
132
+ });
133
+ return p.include_apocrypha(true);
134
+ });
135
+ return it("should handle book: Bel (jv)", function() {
136
+
137
+ expect(p.parse("Bel 1:1").osis()).toEqual("Bel.1.1", "parsing: 'Bel 1:1'")
138
+ ;
139
+ return true;
140
+ });
141
+ });
142
+
143
+ describe("Localized book Lev (jv)", function() {
144
+ var p;
145
+ p = {};
146
+ beforeEach(function() {
147
+ p = new bcv_parser();
148
+ p.set_options({
149
+ book_alone_strategy: "ignore",
150
+ book_sequence_strategy: "ignore",
151
+ osis_compaction_strategy: "bc",
152
+ captive_end_digits_strategy: "delete"
153
+ });
154
+ return p.include_apocrypha(true);
155
+ });
156
+ return it("should handle book: Lev (jv)", function() {
157
+
158
+ expect(p.parse("Kaimaman 1:1").osis()).toEqual("Lev.1.1", "parsing: 'Kaimaman 1:1'")
159
+ expect(p.parse("Lev 1:1").osis()).toEqual("Lev.1.1", "parsing: 'Lev 1:1'")
160
+ p.include_apocrypha(false)
161
+ expect(p.parse("KAIMAMAN 1:1").osis()).toEqual("Lev.1.1", "parsing: 'KAIMAMAN 1:1'")
162
+ expect(p.parse("LEV 1:1").osis()).toEqual("Lev.1.1", "parsing: 'LEV 1:1'")
163
+ ;
164
+ return true;
165
+ });
166
+ });
167
+
168
+ describe("Localized book Num (jv)", function() {
169
+ var p;
170
+ p = {};
171
+ beforeEach(function() {
172
+ p = new bcv_parser();
173
+ p.set_options({
174
+ book_alone_strategy: "ignore",
175
+ book_sequence_strategy: "ignore",
176
+ osis_compaction_strategy: "bc",
177
+ captive_end_digits_strategy: "delete"
178
+ });
179
+ return p.include_apocrypha(true);
180
+ });
181
+ return it("should handle book: Num (jv)", function() {
182
+
183
+ expect(p.parse("Wilangan 1:1").osis()).toEqual("Num.1.1", "parsing: 'Wilangan 1:1'")
184
+ expect(p.parse("Num 1:1").osis()).toEqual("Num.1.1", "parsing: 'Num 1:1'")
185
+ p.include_apocrypha(false)
186
+ expect(p.parse("WILANGAN 1:1").osis()).toEqual("Num.1.1", "parsing: 'WILANGAN 1:1'")
187
+ expect(p.parse("NUM 1:1").osis()).toEqual("Num.1.1", "parsing: 'NUM 1:1'")
188
+ ;
189
+ return true;
190
+ });
191
+ });
192
+
193
+ describe("Localized book Sir (jv)", function() {
194
+ var p;
195
+ p = {};
196
+ beforeEach(function() {
197
+ p = new bcv_parser();
198
+ p.set_options({
199
+ book_alone_strategy: "ignore",
200
+ book_sequence_strategy: "ignore",
201
+ osis_compaction_strategy: "bc",
202
+ captive_end_digits_strategy: "delete"
203
+ });
204
+ return p.include_apocrypha(true);
205
+ });
206
+ return it("should handle book: Sir (jv)", function() {
207
+
208
+ expect(p.parse("Kitab Yesus bin Sirakh 1:1").osis()).toEqual("Sir.1.1", "parsing: 'Kitab Yesus bin Sirakh 1:1'")
209
+ expect(p.parse("Sirakh 1:1").osis()).toEqual("Sir.1.1", "parsing: 'Sirakh 1:1'")
210
+ expect(p.parse("Sir 1:1").osis()).toEqual("Sir.1.1", "parsing: 'Sir 1:1'")
211
+ ;
212
+ return true;
213
+ });
214
+ });
215
+
216
+ describe("Localized book Wis (jv)", function() {
217
+ var p;
218
+ p = {};
219
+ beforeEach(function() {
220
+ p = new bcv_parser();
221
+ p.set_options({
222
+ book_alone_strategy: "ignore",
223
+ book_sequence_strategy: "ignore",
224
+ osis_compaction_strategy: "bc",
225
+ captive_end_digits_strategy: "delete"
226
+ });
227
+ return p.include_apocrypha(true);
228
+ });
229
+ return it("should handle book: Wis (jv)", function() {
230
+
231
+ expect(p.parse("Kawicaksanan Salomo 1:1").osis()).toEqual("Wis.1.1", "parsing: 'Kawicaksanan Salomo 1:1'")
232
+ expect(p.parse("Kawicaksanan 1:1").osis()).toEqual("Wis.1.1", "parsing: 'Kawicaksanan 1:1'")
233
+ expect(p.parse("Wis 1:1").osis()).toEqual("Wis.1.1", "parsing: 'Wis 1:1'")
234
+ ;
235
+ return true;
236
+ });
237
+ });
238
+
239
+ describe("Localized book Lam (jv)", function() {
240
+ var p;
241
+ p = {};
242
+ beforeEach(function() {
243
+ p = new bcv_parser();
244
+ p.set_options({
245
+ book_alone_strategy: "ignore",
246
+ book_sequence_strategy: "ignore",
247
+ osis_compaction_strategy: "bc",
248
+ captive_end_digits_strategy: "delete"
249
+ });
250
+ return p.include_apocrypha(true);
251
+ });
252
+ return it("should handle book: Lam (jv)", function() {
253
+
254
+ expect(p.parse("Kidung Pangadhuh 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Kidung Pangadhuh 1:1'")
255
+ expect(p.parse("Kidung Pasambat 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Kidung Pasambat 1:1'")
256
+ expect(p.parse("Lam 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Lam 1:1'")
257
+ p.include_apocrypha(false)
258
+ expect(p.parse("KIDUNG PANGADHUH 1:1").osis()).toEqual("Lam.1.1", "parsing: 'KIDUNG PANGADHUH 1:1'")
259
+ expect(p.parse("KIDUNG PASAMBAT 1:1").osis()).toEqual("Lam.1.1", "parsing: 'KIDUNG PASAMBAT 1:1'")
260
+ expect(p.parse("LAM 1:1").osis()).toEqual("Lam.1.1", "parsing: 'LAM 1:1'")
261
+ ;
262
+ return true;
263
+ });
264
+ });
265
+
266
+ describe("Localized book EpJer (jv)", function() {
267
+ var p;
268
+ p = {};
269
+ beforeEach(function() {
270
+ p = new bcv_parser();
271
+ p.set_options({
272
+ book_alone_strategy: "ignore",
273
+ book_sequence_strategy: "ignore",
274
+ osis_compaction_strategy: "bc",
275
+ captive_end_digits_strategy: "delete"
276
+ });
277
+ return p.include_apocrypha(true);
278
+ });
279
+ return it("should handle book: EpJer (jv)", function() {
280
+
281
+ expect(p.parse("EpJer 1:1").osis()).toEqual("EpJer.1.1", "parsing: 'EpJer 1:1'")
282
+ ;
283
+ return true;
284
+ });
285
+ });
286
+
287
+ describe("Localized book Rev (jv)", function() {
288
+ var p;
289
+ p = {};
290
+ beforeEach(function() {
291
+ p = new bcv_parser();
292
+ p.set_options({
293
+ book_alone_strategy: "ignore",
294
+ book_sequence_strategy: "ignore",
295
+ osis_compaction_strategy: "bc",
296
+ captive_end_digits_strategy: "delete"
297
+ });
298
+ return p.include_apocrypha(true);
299
+ });
300
+ return it("should handle book: Rev (jv)", function() {
301
+
302
+ expect(p.parse("Kitab Wahyu 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Kitab Wahyu 1:1'")
303
+ expect(p.parse("Pamedaran 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Pamedaran 1:1'")
304
+ expect(p.parse("Wahyu 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Wahyu 1:1'")
305
+ expect(p.parse("Rev 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Rev 1:1'")
306
+ p.include_apocrypha(false)
307
+ expect(p.parse("KITAB WAHYU 1:1").osis()).toEqual("Rev.1.1", "parsing: 'KITAB WAHYU 1:1'")
308
+ expect(p.parse("PAMEDARAN 1:1").osis()).toEqual("Rev.1.1", "parsing: 'PAMEDARAN 1:1'")
309
+ expect(p.parse("WAHYU 1:1").osis()).toEqual("Rev.1.1", "parsing: 'WAHYU 1:1'")
310
+ expect(p.parse("REV 1:1").osis()).toEqual("Rev.1.1", "parsing: 'REV 1:1'")
311
+ ;
312
+ return true;
313
+ });
314
+ });
315
+
316
+ describe("Localized book PrMan (jv)", function() {
317
+ var p;
318
+ p = {};
319
+ beforeEach(function() {
320
+ p = new bcv_parser();
321
+ p.set_options({
322
+ book_alone_strategy: "ignore",
323
+ book_sequence_strategy: "ignore",
324
+ osis_compaction_strategy: "bc",
325
+ captive_end_digits_strategy: "delete"
326
+ });
327
+ return p.include_apocrypha(true);
328
+ });
329
+ return it("should handle book: PrMan (jv)", function() {
330
+
331
+ expect(p.parse("PrMan 1:1").osis()).toEqual("PrMan.1.1", "parsing: 'PrMan 1:1'")
332
+ ;
333
+ return true;
334
+ });
335
+ });
336
+
337
+ describe("Localized book Deut (jv)", function() {
338
+ var p;
339
+ p = {};
340
+ beforeEach(function() {
341
+ p = new bcv_parser();
342
+ p.set_options({
343
+ book_alone_strategy: "ignore",
344
+ book_sequence_strategy: "ignore",
345
+ osis_compaction_strategy: "bc",
346
+ captive_end_digits_strategy: "delete"
347
+ });
348
+ return p.include_apocrypha(true);
349
+ });
350
+ return it("should handle book: Deut (jv)", function() {
351
+
352
+ expect(p.parse("Pangandharing Toret 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Pangandharing Toret 1:1'")
353
+ expect(p.parse("Andharaning Toret 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Andharaning Toret 1:1'")
354
+ expect(p.parse("Andharaning Torèt 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Andharaning Torèt 1:1'")
355
+ expect(p.parse("Deut 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Deut 1:1'")
356
+ p.include_apocrypha(false)
357
+ expect(p.parse("PANGANDHARING TORET 1:1").osis()).toEqual("Deut.1.1", "parsing: 'PANGANDHARING TORET 1:1'")
358
+ expect(p.parse("ANDHARANING TORET 1:1").osis()).toEqual("Deut.1.1", "parsing: 'ANDHARANING TORET 1:1'")
359
+ expect(p.parse("ANDHARANING TORÈT 1:1").osis()).toEqual("Deut.1.1", "parsing: 'ANDHARANING TORÈT 1:1'")
360
+ expect(p.parse("DEUT 1:1").osis()).toEqual("Deut.1.1", "parsing: 'DEUT 1:1'")
361
+ ;
362
+ return true;
363
+ });
364
+ });
365
+
366
+ describe("Localized book Josh (jv)", function() {
367
+ var p;
368
+ p = {};
369
+ beforeEach(function() {
370
+ p = new bcv_parser();
371
+ p.set_options({
372
+ book_alone_strategy: "ignore",
373
+ book_sequence_strategy: "ignore",
374
+ osis_compaction_strategy: "bc",
375
+ captive_end_digits_strategy: "delete"
376
+ });
377
+ return p.include_apocrypha(true);
378
+ });
379
+ return it("should handle book: Josh (jv)", function() {
380
+
381
+ expect(p.parse("Yosua 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Yosua 1:1'")
382
+ expect(p.parse("Yusak 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Yusak 1:1'")
383
+ expect(p.parse("Josh 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Josh 1:1'")
384
+ p.include_apocrypha(false)
385
+ expect(p.parse("YOSUA 1:1").osis()).toEqual("Josh.1.1", "parsing: 'YOSUA 1:1'")
386
+ expect(p.parse("YUSAK 1:1").osis()).toEqual("Josh.1.1", "parsing: 'YUSAK 1:1'")
387
+ expect(p.parse("JOSH 1:1").osis()).toEqual("Josh.1.1", "parsing: 'JOSH 1:1'")
388
+ ;
389
+ return true;
390
+ });
391
+ });
392
+
393
+ describe("Localized book Judg (jv)", function() {
394
+ var p;
395
+ p = {};
396
+ beforeEach(function() {
397
+ p = new bcv_parser();
398
+ p.set_options({
399
+ book_alone_strategy: "ignore",
400
+ book_sequence_strategy: "ignore",
401
+ osis_compaction_strategy: "bc",
402
+ captive_end_digits_strategy: "delete"
403
+ });
404
+ return p.include_apocrypha(true);
405
+ });
406
+ return it("should handle book: Judg (jv)", function() {
407
+
408
+ expect(p.parse("Para Hakim 1:1").osis()).toEqual("Judg.1.1", "parsing: 'Para Hakim 1:1'")
409
+ expect(p.parse("Judg 1:1").osis()).toEqual("Judg.1.1", "parsing: 'Judg 1:1'")
410
+ p.include_apocrypha(false)
411
+ expect(p.parse("PARA HAKIM 1:1").osis()).toEqual("Judg.1.1", "parsing: 'PARA HAKIM 1:1'")
412
+ expect(p.parse("JUDG 1:1").osis()).toEqual("Judg.1.1", "parsing: 'JUDG 1:1'")
413
+ ;
414
+ return true;
415
+ });
416
+ });
417
+
418
+ describe("Localized book Ruth (jv)", function() {
419
+ var p;
420
+ p = {};
421
+ beforeEach(function() {
422
+ p = new bcv_parser();
423
+ p.set_options({
424
+ book_alone_strategy: "ignore",
425
+ book_sequence_strategy: "ignore",
426
+ osis_compaction_strategy: "bc",
427
+ captive_end_digits_strategy: "delete"
428
+ });
429
+ return p.include_apocrypha(true);
430
+ });
431
+ return it("should handle book: Ruth (jv)", function() {
432
+
433
+ expect(p.parse("Ruth 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'Ruth 1:1'")
434
+ expect(p.parse("Rut 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'Rut 1:1'")
435
+ p.include_apocrypha(false)
436
+ expect(p.parse("RUTH 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'RUTH 1:1'")
437
+ expect(p.parse("RUT 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'RUT 1:1'")
438
+ ;
439
+ return true;
440
+ });
441
+ });
442
+
443
+ describe("Localized book 1Esd (jv)", function() {
444
+ var p;
445
+ p = {};
446
+ beforeEach(function() {
447
+ p = new bcv_parser();
448
+ p.set_options({
449
+ book_alone_strategy: "ignore",
450
+ book_sequence_strategy: "ignore",
451
+ osis_compaction_strategy: "bc",
452
+ captive_end_digits_strategy: "delete"
453
+ });
454
+ return p.include_apocrypha(true);
455
+ });
456
+ return it("should handle book: 1Esd (jv)", function() {
457
+
458
+ expect(p.parse("1Esd 1:1").osis()).toEqual("1Esd.1.1", "parsing: '1Esd 1:1'")
459
+ ;
460
+ return true;
461
+ });
462
+ });
463
+
464
+ describe("Localized book 2Esd (jv)", function() {
465
+ var p;
466
+ p = {};
467
+ beforeEach(function() {
468
+ p = new bcv_parser();
469
+ p.set_options({
470
+ book_alone_strategy: "ignore",
471
+ book_sequence_strategy: "ignore",
472
+ osis_compaction_strategy: "bc",
473
+ captive_end_digits_strategy: "delete"
474
+ });
475
+ return p.include_apocrypha(true);
476
+ });
477
+ return it("should handle book: 2Esd (jv)", function() {
478
+
479
+ expect(p.parse("2Esd 1:1").osis()).toEqual("2Esd.1.1", "parsing: '2Esd 1:1'")
480
+ ;
481
+ return true;
482
+ });
483
+ });
484
+
485
+ describe("Localized book Isa (jv)", function() {
486
+ var p;
487
+ p = {};
488
+ beforeEach(function() {
489
+ p = new bcv_parser();
490
+ p.set_options({
491
+ book_alone_strategy: "ignore",
492
+ book_sequence_strategy: "ignore",
493
+ osis_compaction_strategy: "bc",
494
+ captive_end_digits_strategy: "delete"
495
+ });
496
+ return p.include_apocrypha(true);
497
+ });
498
+ return it("should handle book: Isa (jv)", function() {
499
+
500
+ expect(p.parse("Yesaya 1:1").osis()).toEqual("Isa.1.1", "parsing: 'Yesaya 1:1'")
501
+ expect(p.parse("Yésaya 1:1").osis()).toEqual("Isa.1.1", "parsing: 'Yésaya 1:1'")
502
+ expect(p.parse("Isa 1:1").osis()).toEqual("Isa.1.1", "parsing: 'Isa 1:1'")
503
+ p.include_apocrypha(false)
504
+ expect(p.parse("YESAYA 1:1").osis()).toEqual("Isa.1.1", "parsing: 'YESAYA 1:1'")
505
+ expect(p.parse("YÉSAYA 1:1").osis()).toEqual("Isa.1.1", "parsing: 'YÉSAYA 1:1'")
506
+ expect(p.parse("ISA 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ISA 1:1'")
507
+ ;
508
+ return true;
509
+ });
510
+ });
511
+
512
+ describe("Localized book 2Sam (jv)", function() {
513
+ var p;
514
+ p = {};
515
+ beforeEach(function() {
516
+ p = new bcv_parser();
517
+ p.set_options({
518
+ book_alone_strategy: "ignore",
519
+ book_sequence_strategy: "ignore",
520
+ osis_compaction_strategy: "bc",
521
+ captive_end_digits_strategy: "delete"
522
+ });
523
+ return p.include_apocrypha(true);
524
+ });
525
+ return it("should handle book: 2Sam (jv)", function() {
526
+
527
+ expect(p.parse("II. Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II. Samuel 1:1'")
528
+ expect(p.parse("2. Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2. Samuel 1:1'")
529
+ expect(p.parse("II Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II Samuel 1:1'")
530
+ expect(p.parse("2 Samuel 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 Samuel 1:1'")
531
+ expect(p.parse("2Sam 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2Sam 1:1'")
532
+ p.include_apocrypha(false)
533
+ expect(p.parse("II. SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II. SAMUEL 1:1'")
534
+ expect(p.parse("2. SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2. SAMUEL 1:1'")
535
+ expect(p.parse("II SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'II SAMUEL 1:1'")
536
+ expect(p.parse("2 SAMUEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 SAMUEL 1:1'")
537
+ expect(p.parse("2SAM 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2SAM 1:1'")
538
+ ;
539
+ return true;
540
+ });
541
+ });
542
+
543
+ describe("Localized book 1Sam (jv)", function() {
544
+ var p;
545
+ p = {};
546
+ beforeEach(function() {
547
+ p = new bcv_parser();
548
+ p.set_options({
549
+ book_alone_strategy: "ignore",
550
+ book_sequence_strategy: "ignore",
551
+ osis_compaction_strategy: "bc",
552
+ captive_end_digits_strategy: "delete"
553
+ });
554
+ return p.include_apocrypha(true);
555
+ });
556
+ return it("should handle book: 1Sam (jv)", function() {
557
+
558
+ expect(p.parse("1. Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1. Samuel 1:1'")
559
+ expect(p.parse("I. Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I. Samuel 1:1'")
560
+ expect(p.parse("1 Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 Samuel 1:1'")
561
+ expect(p.parse("I Samuel 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I Samuel 1:1'")
562
+ expect(p.parse("1Sam 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1Sam 1:1'")
563
+ p.include_apocrypha(false)
564
+ expect(p.parse("1. SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1. SAMUEL 1:1'")
565
+ expect(p.parse("I. SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I. SAMUEL 1:1'")
566
+ expect(p.parse("1 SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 SAMUEL 1:1'")
567
+ expect(p.parse("I SAMUEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'I SAMUEL 1:1'")
568
+ expect(p.parse("1SAM 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1SAM 1:1'")
569
+ ;
570
+ return true;
571
+ });
572
+ });
573
+
574
+ describe("Localized book 2Kgs (jv)", function() {
575
+ var p;
576
+ p = {};
577
+ beforeEach(function() {
578
+ p = new bcv_parser();
579
+ p.set_options({
580
+ book_alone_strategy: "ignore",
581
+ book_sequence_strategy: "ignore",
582
+ osis_compaction_strategy: "bc",
583
+ captive_end_digits_strategy: "delete"
584
+ });
585
+ return p.include_apocrypha(true);
586
+ });
587
+ return it("should handle book: 2Kgs (jv)", function() {
588
+
589
+ expect(p.parse("II. Para Raja 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II. Para Raja 1:1'")
590
+ expect(p.parse("2. Para Raja 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2. Para Raja 1:1'")
591
+ expect(p.parse("II Para Raja 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II Para Raja 1:1'")
592
+ expect(p.parse("2 Para Raja 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 Para Raja 1:1'")
593
+ expect(p.parse("2Kgs 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2Kgs 1:1'")
594
+ p.include_apocrypha(false)
595
+ expect(p.parse("II. PARA RAJA 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II. PARA RAJA 1:1'")
596
+ expect(p.parse("2. PARA RAJA 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2. PARA RAJA 1:1'")
597
+ expect(p.parse("II PARA RAJA 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'II PARA RAJA 1:1'")
598
+ expect(p.parse("2 PARA RAJA 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 PARA RAJA 1:1'")
599
+ expect(p.parse("2KGS 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2KGS 1:1'")
600
+ ;
601
+ return true;
602
+ });
603
+ });
604
+
605
+ describe("Localized book 1Kgs (jv)", function() {
606
+ var p;
607
+ p = {};
608
+ beforeEach(function() {
609
+ p = new bcv_parser();
610
+ p.set_options({
611
+ book_alone_strategy: "ignore",
612
+ book_sequence_strategy: "ignore",
613
+ osis_compaction_strategy: "bc",
614
+ captive_end_digits_strategy: "delete"
615
+ });
616
+ return p.include_apocrypha(true);
617
+ });
618
+ return it("should handle book: 1Kgs (jv)", function() {
619
+
620
+ expect(p.parse("1. Para Raja 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1. Para Raja 1:1'")
621
+ expect(p.parse("I. Para Raja 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I. Para Raja 1:1'")
622
+ expect(p.parse("1 Para Raja 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 Para Raja 1:1'")
623
+ expect(p.parse("I Para Raja 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I Para Raja 1:1'")
624
+ expect(p.parse("1Kgs 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1Kgs 1:1'")
625
+ p.include_apocrypha(false)
626
+ expect(p.parse("1. PARA RAJA 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1. PARA RAJA 1:1'")
627
+ expect(p.parse("I. PARA RAJA 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I. PARA RAJA 1:1'")
628
+ expect(p.parse("1 PARA RAJA 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 PARA RAJA 1:1'")
629
+ expect(p.parse("I PARA RAJA 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'I PARA RAJA 1:1'")
630
+ expect(p.parse("1KGS 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1KGS 1:1'")
631
+ ;
632
+ return true;
633
+ });
634
+ });
635
+
636
+ describe("Localized book 2Chr (jv)", function() {
637
+ var p;
638
+ p = {};
639
+ beforeEach(function() {
640
+ p = new bcv_parser();
641
+ p.set_options({
642
+ book_alone_strategy: "ignore",
643
+ book_sequence_strategy: "ignore",
644
+ osis_compaction_strategy: "bc",
645
+ captive_end_digits_strategy: "delete"
646
+ });
647
+ return p.include_apocrypha(true);
648
+ });
649
+ return it("should handle book: 2Chr (jv)", function() {
650
+
651
+ expect(p.parse("II. Babad 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II. Babad 1:1'")
652
+ expect(p.parse("2. Babad 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2. Babad 1:1'")
653
+ expect(p.parse("II Babad 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II Babad 1:1'")
654
+ expect(p.parse("2 Babad 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 Babad 1:1'")
655
+ expect(p.parse("2Chr 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2Chr 1:1'")
656
+ p.include_apocrypha(false)
657
+ expect(p.parse("II. BABAD 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II. BABAD 1:1'")
658
+ expect(p.parse("2. BABAD 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2. BABAD 1:1'")
659
+ expect(p.parse("II BABAD 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'II BABAD 1:1'")
660
+ expect(p.parse("2 BABAD 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 BABAD 1:1'")
661
+ expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2CHR 1:1'")
662
+ ;
663
+ return true;
664
+ });
665
+ });
666
+
667
+ describe("Localized book 1Chr (jv)", function() {
668
+ var p;
669
+ p = {};
670
+ beforeEach(function() {
671
+ p = new bcv_parser();
672
+ p.set_options({
673
+ book_alone_strategy: "ignore",
674
+ book_sequence_strategy: "ignore",
675
+ osis_compaction_strategy: "bc",
676
+ captive_end_digits_strategy: "delete"
677
+ });
678
+ return p.include_apocrypha(true);
679
+ });
680
+ return it("should handle book: 1Chr (jv)", function() {
681
+
682
+ expect(p.parse("1. Babad 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1. Babad 1:1'")
683
+ expect(p.parse("I. Babad 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I. Babad 1:1'")
684
+ expect(p.parse("1 Babad 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 Babad 1:1'")
685
+ expect(p.parse("I Babad 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I Babad 1:1'")
686
+ expect(p.parse("1Chr 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1Chr 1:1'")
687
+ p.include_apocrypha(false)
688
+ expect(p.parse("1. BABAD 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1. BABAD 1:1'")
689
+ expect(p.parse("I. BABAD 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I. BABAD 1:1'")
690
+ expect(p.parse("1 BABAD 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 BABAD 1:1'")
691
+ expect(p.parse("I BABAD 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'I BABAD 1:1'")
692
+ expect(p.parse("1CHR 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1CHR 1:1'")
693
+ ;
694
+ return true;
695
+ });
696
+ });
697
+
698
+ describe("Localized book Ezra (jv)", function() {
699
+ var p;
700
+ p = {};
701
+ beforeEach(function() {
702
+ p = new bcv_parser();
703
+ p.set_options({
704
+ book_alone_strategy: "ignore",
705
+ book_sequence_strategy: "ignore",
706
+ osis_compaction_strategy: "bc",
707
+ captive_end_digits_strategy: "delete"
708
+ });
709
+ return p.include_apocrypha(true);
710
+ });
711
+ return it("should handle book: Ezra (jv)", function() {
712
+
713
+ expect(p.parse("Ezra 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'Ezra 1:1'")
714
+ p.include_apocrypha(false)
715
+ expect(p.parse("EZRA 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'EZRA 1:1'")
716
+ ;
717
+ return true;
718
+ });
719
+ });
720
+
721
+ describe("Localized book Neh (jv)", function() {
722
+ var p;
723
+ p = {};
724
+ beforeEach(function() {
725
+ p = new bcv_parser();
726
+ p.set_options({
727
+ book_alone_strategy: "ignore",
728
+ book_sequence_strategy: "ignore",
729
+ osis_compaction_strategy: "bc",
730
+ captive_end_digits_strategy: "delete"
731
+ });
732
+ return p.include_apocrypha(true);
733
+ });
734
+ return it("should handle book: Neh (jv)", function() {
735
+
736
+ expect(p.parse("Nehemia 1:1").osis()).toEqual("Neh.1.1", "parsing: 'Nehemia 1:1'")
737
+ expect(p.parse("Nehemya 1:1").osis()).toEqual("Neh.1.1", "parsing: 'Nehemya 1:1'")
738
+ expect(p.parse("Neh 1:1").osis()).toEqual("Neh.1.1", "parsing: 'Neh 1:1'")
739
+ p.include_apocrypha(false)
740
+ expect(p.parse("NEHEMIA 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NEHEMIA 1:1'")
741
+ expect(p.parse("NEHEMYA 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NEHEMYA 1:1'")
742
+ expect(p.parse("NEH 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NEH 1:1'")
743
+ ;
744
+ return true;
745
+ });
746
+ });
747
+
748
+ describe("Localized book GkEsth (jv)", function() {
749
+ var p;
750
+ p = {};
751
+ beforeEach(function() {
752
+ p = new bcv_parser();
753
+ p.set_options({
754
+ book_alone_strategy: "ignore",
755
+ book_sequence_strategy: "ignore",
756
+ osis_compaction_strategy: "bc",
757
+ captive_end_digits_strategy: "delete"
758
+ });
759
+ return p.include_apocrypha(true);
760
+ });
761
+ return it("should handle book: GkEsth (jv)", function() {
762
+
763
+ expect(p.parse("GkEsth 1:1").osis()).toEqual("GkEsth.1.1", "parsing: 'GkEsth 1:1'")
764
+ ;
765
+ return true;
766
+ });
767
+ });
768
+
769
+ describe("Localized book Esth (jv)", function() {
770
+ var p;
771
+ p = {};
772
+ beforeEach(function() {
773
+ p = new bcv_parser();
774
+ p.set_options({
775
+ book_alone_strategy: "ignore",
776
+ book_sequence_strategy: "ignore",
777
+ osis_compaction_strategy: "bc",
778
+ captive_end_digits_strategy: "delete"
779
+ });
780
+ return p.include_apocrypha(true);
781
+ });
782
+ return it("should handle book: Esth (jv)", function() {
783
+
784
+ expect(p.parse("Ester 1:1").osis()).toEqual("Esth.1.1", "parsing: 'Ester 1:1'")
785
+ expect(p.parse("Esth 1:1").osis()).toEqual("Esth.1.1", "parsing: 'Esth 1:1'")
786
+ p.include_apocrypha(false)
787
+ expect(p.parse("ESTER 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ESTER 1:1'")
788
+ expect(p.parse("ESTH 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ESTH 1:1'")
789
+ ;
790
+ return true;
791
+ });
792
+ });
793
+
794
+ describe("Localized book Job (jv)", function() {
795
+ var p;
796
+ p = {};
797
+ beforeEach(function() {
798
+ p = new bcv_parser();
799
+ p.set_options({
800
+ book_alone_strategy: "ignore",
801
+ book_sequence_strategy: "ignore",
802
+ osis_compaction_strategy: "bc",
803
+ captive_end_digits_strategy: "delete"
804
+ });
805
+ return p.include_apocrypha(true);
806
+ });
807
+ return it("should handle book: Job (jv)", function() {
808
+
809
+ expect(p.parse("Ayub 1:1").osis()).toEqual("Job.1.1", "parsing: 'Ayub 1:1'")
810
+ expect(p.parse("Job 1:1").osis()).toEqual("Job.1.1", "parsing: 'Job 1:1'")
811
+ p.include_apocrypha(false)
812
+ expect(p.parse("AYUB 1:1").osis()).toEqual("Job.1.1", "parsing: 'AYUB 1:1'")
813
+ expect(p.parse("JOB 1:1").osis()).toEqual("Job.1.1", "parsing: 'JOB 1:1'")
814
+ ;
815
+ return true;
816
+ });
817
+ });
818
+
819
+ describe("Localized book Ps (jv)", function() {
820
+ var p;
821
+ p = {};
822
+ beforeEach(function() {
823
+ p = new bcv_parser();
824
+ p.set_options({
825
+ book_alone_strategy: "ignore",
826
+ book_sequence_strategy: "ignore",
827
+ osis_compaction_strategy: "bc",
828
+ captive_end_digits_strategy: "delete"
829
+ });
830
+ return p.include_apocrypha(true);
831
+ });
832
+ return it("should handle book: Ps (jv)", function() {
833
+
834
+ expect(p.parse("Masmur 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Masmur 1:1'")
835
+ expect(p.parse("Jabur 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Jabur 1:1'")
836
+ expect(p.parse("Zabur 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Zabur 1:1'")
837
+ expect(p.parse("Ps 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Ps 1:1'")
838
+ p.include_apocrypha(false)
839
+ expect(p.parse("MASMUR 1:1").osis()).toEqual("Ps.1.1", "parsing: 'MASMUR 1:1'")
840
+ expect(p.parse("JABUR 1:1").osis()).toEqual("Ps.1.1", "parsing: 'JABUR 1:1'")
841
+ expect(p.parse("ZABUR 1:1").osis()).toEqual("Ps.1.1", "parsing: 'ZABUR 1:1'")
842
+ expect(p.parse("PS 1:1").osis()).toEqual("Ps.1.1", "parsing: 'PS 1:1'")
843
+ ;
844
+ return true;
845
+ });
846
+ });
847
+
848
+ describe("Localized book PrAzar (jv)", function() {
849
+ var p;
850
+ p = {};
851
+ beforeEach(function() {
852
+ p = new bcv_parser();
853
+ p.set_options({
854
+ book_alone_strategy: "ignore",
855
+ book_sequence_strategy: "ignore",
856
+ osis_compaction_strategy: "bc",
857
+ captive_end_digits_strategy: "delete"
858
+ });
859
+ return p.include_apocrypha(true);
860
+ });
861
+ return it("should handle book: PrAzar (jv)", function() {
862
+
863
+ expect(p.parse("PrAzar 1:1").osis()).toEqual("PrAzar.1.1", "parsing: 'PrAzar 1:1'")
864
+ ;
865
+ return true;
866
+ });
867
+ });
868
+
869
+ describe("Localized book Prov (jv)", function() {
870
+ var p;
871
+ p = {};
872
+ beforeEach(function() {
873
+ p = new bcv_parser();
874
+ p.set_options({
875
+ book_alone_strategy: "ignore",
876
+ book_sequence_strategy: "ignore",
877
+ osis_compaction_strategy: "bc",
878
+ captive_end_digits_strategy: "delete"
879
+ });
880
+ return p.include_apocrypha(true);
881
+ });
882
+ return it("should handle book: Prov (jv)", function() {
883
+
884
+ expect(p.parse("Wulang Bebasan 1:1").osis()).toEqual("Prov.1.1", "parsing: 'Wulang Bebasan 1:1'")
885
+ expect(p.parse("Prov 1:1").osis()).toEqual("Prov.1.1", "parsing: 'Prov 1:1'")
886
+ p.include_apocrypha(false)
887
+ expect(p.parse("WULANG BEBASAN 1:1").osis()).toEqual("Prov.1.1", "parsing: 'WULANG BEBASAN 1:1'")
888
+ expect(p.parse("PROV 1:1").osis()).toEqual("Prov.1.1", "parsing: 'PROV 1:1'")
889
+ ;
890
+ return true;
891
+ });
892
+ });
893
+
894
+ describe("Localized book Eccl (jv)", function() {
895
+ var p;
896
+ p = {};
897
+ beforeEach(function() {
898
+ p = new bcv_parser();
899
+ p.set_options({
900
+ book_alone_strategy: "ignore",
901
+ book_sequence_strategy: "ignore",
902
+ osis_compaction_strategy: "bc",
903
+ captive_end_digits_strategy: "delete"
904
+ });
905
+ return p.include_apocrypha(true);
906
+ });
907
+ return it("should handle book: Eccl (jv)", function() {
908
+
909
+ expect(p.parse("Juru Kotbah 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Juru Kotbah 1:1'")
910
+ expect(p.parse("Kohelet 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Kohelet 1:1'")
911
+ expect(p.parse("Eccl 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Eccl 1:1'")
912
+ p.include_apocrypha(false)
913
+ expect(p.parse("JURU KOTBAH 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'JURU KOTBAH 1:1'")
914
+ expect(p.parse("KOHELET 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'KOHELET 1:1'")
915
+ expect(p.parse("ECCL 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ECCL 1:1'")
916
+ ;
917
+ return true;
918
+ });
919
+ });
920
+
921
+ describe("Localized book SgThree (jv)", function() {
922
+ var p;
923
+ p = {};
924
+ beforeEach(function() {
925
+ p = new bcv_parser();
926
+ p.set_options({
927
+ book_alone_strategy: "ignore",
928
+ book_sequence_strategy: "ignore",
929
+ osis_compaction_strategy: "bc",
930
+ captive_end_digits_strategy: "delete"
931
+ });
932
+ return p.include_apocrypha(true);
933
+ });
934
+ return it("should handle book: SgThree (jv)", function() {
935
+
936
+ expect(p.parse("SgThree 1:1").osis()).toEqual("SgThree.1.1", "parsing: 'SgThree 1:1'")
937
+ ;
938
+ return true;
939
+ });
940
+ });
941
+
942
+ describe("Localized book Song (jv)", function() {
943
+ var p;
944
+ p = {};
945
+ beforeEach(function() {
946
+ p = new bcv_parser();
947
+ p.set_options({
948
+ book_alone_strategy: "ignore",
949
+ book_sequence_strategy: "ignore",
950
+ osis_compaction_strategy: "bc",
951
+ captive_end_digits_strategy: "delete"
952
+ });
953
+ return p.include_apocrypha(true);
954
+ });
955
+ return it("should handle book: Song (jv)", function() {
956
+
957
+ expect(p.parse("Musthikaning Kidung 1:1").osis()).toEqual("Song.1.1", "parsing: 'Musthikaning Kidung 1:1'")
958
+ expect(p.parse("Kidung Agung 1:1").osis()).toEqual("Song.1.1", "parsing: 'Kidung Agung 1:1'")
959
+ expect(p.parse("Song 1:1").osis()).toEqual("Song.1.1", "parsing: 'Song 1:1'")
960
+ p.include_apocrypha(false)
961
+ expect(p.parse("MUSTHIKANING KIDUNG 1:1").osis()).toEqual("Song.1.1", "parsing: 'MUSTHIKANING KIDUNG 1:1'")
962
+ expect(p.parse("KIDUNG AGUNG 1:1").osis()).toEqual("Song.1.1", "parsing: 'KIDUNG AGUNG 1:1'")
963
+ expect(p.parse("SONG 1:1").osis()).toEqual("Song.1.1", "parsing: 'SONG 1:1'")
964
+ ;
965
+ return true;
966
+ });
967
+ });
968
+
969
+ describe("Localized book Jer (jv)", function() {
970
+ var p;
971
+ p = {};
972
+ beforeEach(function() {
973
+ p = new bcv_parser();
974
+ p.set_options({
975
+ book_alone_strategy: "ignore",
976
+ book_sequence_strategy: "ignore",
977
+ osis_compaction_strategy: "bc",
978
+ captive_end_digits_strategy: "delete"
979
+ });
980
+ return p.include_apocrypha(true);
981
+ });
982
+ return it("should handle book: Jer (jv)", function() {
983
+
984
+ expect(p.parse("Yeremia 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Yeremia 1:1'")
985
+ expect(p.parse("Yerémia 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Yerémia 1:1'")
986
+ expect(p.parse("Yéremia 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Yéremia 1:1'")
987
+ expect(p.parse("Yérémia 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Yérémia 1:1'")
988
+ expect(p.parse("Jer 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Jer 1:1'")
989
+ p.include_apocrypha(false)
990
+ expect(p.parse("YEREMIA 1:1").osis()).toEqual("Jer.1.1", "parsing: 'YEREMIA 1:1'")
991
+ expect(p.parse("YERÉMIA 1:1").osis()).toEqual("Jer.1.1", "parsing: 'YERÉMIA 1:1'")
992
+ expect(p.parse("YÉREMIA 1:1").osis()).toEqual("Jer.1.1", "parsing: 'YÉREMIA 1:1'")
993
+ expect(p.parse("YÉRÉMIA 1:1").osis()).toEqual("Jer.1.1", "parsing: 'YÉRÉMIA 1:1'")
994
+ expect(p.parse("JER 1:1").osis()).toEqual("Jer.1.1", "parsing: 'JER 1:1'")
995
+ ;
996
+ return true;
997
+ });
998
+ });
999
+
1000
+ describe("Localized book Ezek (jv)", function() {
1001
+ var p;
1002
+ p = {};
1003
+ beforeEach(function() {
1004
+ p = new bcv_parser();
1005
+ p.set_options({
1006
+ book_alone_strategy: "ignore",
1007
+ book_sequence_strategy: "ignore",
1008
+ osis_compaction_strategy: "bc",
1009
+ captive_end_digits_strategy: "delete"
1010
+ });
1011
+ return p.include_apocrypha(true);
1012
+ });
1013
+ return it("should handle book: Ezek (jv)", function() {
1014
+
1015
+ expect(p.parse("Yeheskiel 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yeheskiel 1:1'")
1016
+ expect(p.parse("Yehezkiel 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yehezkiel 1:1'")
1017
+ expect(p.parse("Yehezkièl 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yehezkièl 1:1'")
1018
+ expect(p.parse("Yehèzkiel 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yehèzkiel 1:1'")
1019
+ expect(p.parse("Yehèzkièl 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yehèzkièl 1:1'")
1020
+ expect(p.parse("Yéhezkiel 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yéhezkiel 1:1'")
1021
+ expect(p.parse("Yéhezkièl 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yéhezkièl 1:1'")
1022
+ expect(p.parse("Yéhèzkiel 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yéhèzkiel 1:1'")
1023
+ expect(p.parse("Yéhèzkièl 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Yéhèzkièl 1:1'")
1024
+ expect(p.parse("Ezek 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Ezek 1:1'")
1025
+ p.include_apocrypha(false)
1026
+ expect(p.parse("YEHESKIEL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YEHESKIEL 1:1'")
1027
+ expect(p.parse("YEHEZKIEL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YEHEZKIEL 1:1'")
1028
+ expect(p.parse("YEHEZKIÈL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YEHEZKIÈL 1:1'")
1029
+ expect(p.parse("YEHÈZKIEL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YEHÈZKIEL 1:1'")
1030
+ expect(p.parse("YEHÈZKIÈL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YEHÈZKIÈL 1:1'")
1031
+ expect(p.parse("YÉHEZKIEL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YÉHEZKIEL 1:1'")
1032
+ expect(p.parse("YÉHEZKIÈL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YÉHEZKIÈL 1:1'")
1033
+ expect(p.parse("YÉHÈZKIEL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YÉHÈZKIEL 1:1'")
1034
+ expect(p.parse("YÉHÈZKIÈL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'YÉHÈZKIÈL 1:1'")
1035
+ expect(p.parse("EZEK 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'EZEK 1:1'")
1036
+ ;
1037
+ return true;
1038
+ });
1039
+ });
1040
+
1041
+ describe("Localized book Dan (jv)", function() {
1042
+ var p;
1043
+ p = {};
1044
+ beforeEach(function() {
1045
+ p = new bcv_parser();
1046
+ p.set_options({
1047
+ book_alone_strategy: "ignore",
1048
+ book_sequence_strategy: "ignore",
1049
+ osis_compaction_strategy: "bc",
1050
+ captive_end_digits_strategy: "delete"
1051
+ });
1052
+ return p.include_apocrypha(true);
1053
+ });
1054
+ return it("should handle book: Dan (jv)", function() {
1055
+
1056
+ expect(p.parse("Dhaniel 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Dhaniel 1:1'")
1057
+ expect(p.parse("Daniel 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Daniel 1:1'")
1058
+ expect(p.parse("Danièl 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Danièl 1:1'")
1059
+ expect(p.parse("Dan 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Dan 1:1'")
1060
+ p.include_apocrypha(false)
1061
+ expect(p.parse("DHANIEL 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DHANIEL 1:1'")
1062
+ expect(p.parse("DANIEL 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DANIEL 1:1'")
1063
+ expect(p.parse("DANIÈL 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DANIÈL 1:1'")
1064
+ expect(p.parse("DAN 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DAN 1:1'")
1065
+ ;
1066
+ return true;
1067
+ });
1068
+ });
1069
+
1070
+ describe("Localized book Hos (jv)", function() {
1071
+ var p;
1072
+ p = {};
1073
+ beforeEach(function() {
1074
+ p = new bcv_parser();
1075
+ p.set_options({
1076
+ book_alone_strategy: "ignore",
1077
+ book_sequence_strategy: "ignore",
1078
+ osis_compaction_strategy: "bc",
1079
+ captive_end_digits_strategy: "delete"
1080
+ });
1081
+ return p.include_apocrypha(true);
1082
+ });
1083
+ return it("should handle book: Hos (jv)", function() {
1084
+
1085
+ expect(p.parse("Hosea 1:1").osis()).toEqual("Hos.1.1", "parsing: 'Hosea 1:1'")
1086
+ expect(p.parse("Hos 1:1").osis()).toEqual("Hos.1.1", "parsing: 'Hos 1:1'")
1087
+ p.include_apocrypha(false)
1088
+ expect(p.parse("HOSEA 1:1").osis()).toEqual("Hos.1.1", "parsing: 'HOSEA 1:1'")
1089
+ expect(p.parse("HOS 1:1").osis()).toEqual("Hos.1.1", "parsing: 'HOS 1:1'")
1090
+ ;
1091
+ return true;
1092
+ });
1093
+ });
1094
+
1095
+ describe("Localized book Joel (jv)", function() {
1096
+ var p;
1097
+ p = {};
1098
+ beforeEach(function() {
1099
+ p = new bcv_parser();
1100
+ p.set_options({
1101
+ book_alone_strategy: "ignore",
1102
+ book_sequence_strategy: "ignore",
1103
+ osis_compaction_strategy: "bc",
1104
+ captive_end_digits_strategy: "delete"
1105
+ });
1106
+ return p.include_apocrypha(true);
1107
+ });
1108
+ return it("should handle book: Joel (jv)", function() {
1109
+
1110
+ expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Joel 1:1'")
1111
+ expect(p.parse("Yoel 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Yoel 1:1'")
1112
+ p.include_apocrypha(false)
1113
+ expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1", "parsing: 'JOEL 1:1'")
1114
+ expect(p.parse("YOEL 1:1").osis()).toEqual("Joel.1.1", "parsing: 'YOEL 1:1'")
1115
+ ;
1116
+ return true;
1117
+ });
1118
+ });
1119
+
1120
+ describe("Localized book Amos (jv)", function() {
1121
+ var p;
1122
+ p = {};
1123
+ beforeEach(function() {
1124
+ p = new bcv_parser();
1125
+ p.set_options({
1126
+ book_alone_strategy: "ignore",
1127
+ book_sequence_strategy: "ignore",
1128
+ osis_compaction_strategy: "bc",
1129
+ captive_end_digits_strategy: "delete"
1130
+ });
1131
+ return p.include_apocrypha(true);
1132
+ });
1133
+ return it("should handle book: Amos (jv)", function() {
1134
+
1135
+ expect(p.parse("Amos 1:1").osis()).toEqual("Amos.1.1", "parsing: 'Amos 1:1'")
1136
+ p.include_apocrypha(false)
1137
+ expect(p.parse("AMOS 1:1").osis()).toEqual("Amos.1.1", "parsing: 'AMOS 1:1'")
1138
+ ;
1139
+ return true;
1140
+ });
1141
+ });
1142
+
1143
+ describe("Localized book Obad (jv)", function() {
1144
+ var p;
1145
+ p = {};
1146
+ beforeEach(function() {
1147
+ p = new bcv_parser();
1148
+ p.set_options({
1149
+ book_alone_strategy: "ignore",
1150
+ book_sequence_strategy: "ignore",
1151
+ osis_compaction_strategy: "bc",
1152
+ captive_end_digits_strategy: "delete"
1153
+ });
1154
+ return p.include_apocrypha(true);
1155
+ });
1156
+ return it("should handle book: Obad (jv)", function() {
1157
+
1158
+ expect(p.parse("Obaja 1:1").osis()).toEqual("Obad.1.1", "parsing: 'Obaja 1:1'")
1159
+ expect(p.parse("Obad 1:1").osis()).toEqual("Obad.1.1", "parsing: 'Obad 1:1'")
1160
+ p.include_apocrypha(false)
1161
+ expect(p.parse("OBAJA 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBAJA 1:1'")
1162
+ expect(p.parse("OBAD 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBAD 1:1'")
1163
+ ;
1164
+ return true;
1165
+ });
1166
+ });
1167
+
1168
+ describe("Localized book Jonah (jv)", function() {
1169
+ var p;
1170
+ p = {};
1171
+ beforeEach(function() {
1172
+ p = new bcv_parser();
1173
+ p.set_options({
1174
+ book_alone_strategy: "ignore",
1175
+ book_sequence_strategy: "ignore",
1176
+ osis_compaction_strategy: "bc",
1177
+ captive_end_digits_strategy: "delete"
1178
+ });
1179
+ return p.include_apocrypha(true);
1180
+ });
1181
+ return it("should handle book: Jonah (jv)", function() {
1182
+
1183
+ expect(p.parse("Jonah 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'Jonah 1:1'")
1184
+ expect(p.parse("Yunus 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'Yunus 1:1'")
1185
+ p.include_apocrypha(false)
1186
+ expect(p.parse("JONAH 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'JONAH 1:1'")
1187
+ expect(p.parse("YUNUS 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'YUNUS 1:1'")
1188
+ ;
1189
+ return true;
1190
+ });
1191
+ });
1192
+
1193
+ describe("Localized book Mic (jv)", function() {
1194
+ var p;
1195
+ p = {};
1196
+ beforeEach(function() {
1197
+ p = new bcv_parser();
1198
+ p.set_options({
1199
+ book_alone_strategy: "ignore",
1200
+ book_sequence_strategy: "ignore",
1201
+ osis_compaction_strategy: "bc",
1202
+ captive_end_digits_strategy: "delete"
1203
+ });
1204
+ return p.include_apocrypha(true);
1205
+ });
1206
+ return it("should handle book: Mic (jv)", function() {
1207
+
1208
+ expect(p.parse("Mikha 1:1").osis()).toEqual("Mic.1.1", "parsing: 'Mikha 1:1'")
1209
+ expect(p.parse("Mic 1:1").osis()).toEqual("Mic.1.1", "parsing: 'Mic 1:1'")
1210
+ p.include_apocrypha(false)
1211
+ expect(p.parse("MIKHA 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MIKHA 1:1'")
1212
+ expect(p.parse("MIC 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MIC 1:1'")
1213
+ ;
1214
+ return true;
1215
+ });
1216
+ });
1217
+
1218
+ describe("Localized book Nah (jv)", function() {
1219
+ var p;
1220
+ p = {};
1221
+ beforeEach(function() {
1222
+ p = new bcv_parser();
1223
+ p.set_options({
1224
+ book_alone_strategy: "ignore",
1225
+ book_sequence_strategy: "ignore",
1226
+ osis_compaction_strategy: "bc",
1227
+ captive_end_digits_strategy: "delete"
1228
+ });
1229
+ return p.include_apocrypha(true);
1230
+ });
1231
+ return it("should handle book: Nah (jv)", function() {
1232
+
1233
+ expect(p.parse("Nahum 1:1").osis()).toEqual("Nah.1.1", "parsing: 'Nahum 1:1'")
1234
+ expect(p.parse("Nah 1:1").osis()).toEqual("Nah.1.1", "parsing: 'Nah 1:1'")
1235
+ p.include_apocrypha(false)
1236
+ expect(p.parse("NAHUM 1:1").osis()).toEqual("Nah.1.1", "parsing: 'NAHUM 1:1'")
1237
+ expect(p.parse("NAH 1:1").osis()).toEqual("Nah.1.1", "parsing: 'NAH 1:1'")
1238
+ ;
1239
+ return true;
1240
+ });
1241
+ });
1242
+
1243
+ describe("Localized book Hab (jv)", function() {
1244
+ var p;
1245
+ p = {};
1246
+ beforeEach(function() {
1247
+ p = new bcv_parser();
1248
+ p.set_options({
1249
+ book_alone_strategy: "ignore",
1250
+ book_sequence_strategy: "ignore",
1251
+ osis_compaction_strategy: "bc",
1252
+ captive_end_digits_strategy: "delete"
1253
+ });
1254
+ return p.include_apocrypha(true);
1255
+ });
1256
+ return it("should handle book: Hab (jv)", function() {
1257
+
1258
+ expect(p.parse("Habakuk 1:1").osis()).toEqual("Hab.1.1", "parsing: 'Habakuk 1:1'")
1259
+ expect(p.parse("Hab 1:1").osis()).toEqual("Hab.1.1", "parsing: 'Hab 1:1'")
1260
+ p.include_apocrypha(false)
1261
+ expect(p.parse("HABAKUK 1:1").osis()).toEqual("Hab.1.1", "parsing: 'HABAKUK 1:1'")
1262
+ expect(p.parse("HAB 1:1").osis()).toEqual("Hab.1.1", "parsing: 'HAB 1:1'")
1263
+ ;
1264
+ return true;
1265
+ });
1266
+ });
1267
+
1268
+ describe("Localized book Zeph (jv)", function() {
1269
+ var p;
1270
+ p = {};
1271
+ beforeEach(function() {
1272
+ p = new bcv_parser();
1273
+ p.set_options({
1274
+ book_alone_strategy: "ignore",
1275
+ book_sequence_strategy: "ignore",
1276
+ osis_compaction_strategy: "bc",
1277
+ captive_end_digits_strategy: "delete"
1278
+ });
1279
+ return p.include_apocrypha(true);
1280
+ });
1281
+ return it("should handle book: Zeph (jv)", function() {
1282
+
1283
+ expect(p.parse("Zefanya 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'Zefanya 1:1'")
1284
+ expect(p.parse("Zeph 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'Zeph 1:1'")
1285
+ p.include_apocrypha(false)
1286
+ expect(p.parse("ZEFANYA 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'ZEFANYA 1:1'")
1287
+ expect(p.parse("ZEPH 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'ZEPH 1:1'")
1288
+ ;
1289
+ return true;
1290
+ });
1291
+ });
1292
+
1293
+ describe("Localized book Hag (jv)", function() {
1294
+ var p;
1295
+ p = {};
1296
+ beforeEach(function() {
1297
+ p = new bcv_parser();
1298
+ p.set_options({
1299
+ book_alone_strategy: "ignore",
1300
+ book_sequence_strategy: "ignore",
1301
+ osis_compaction_strategy: "bc",
1302
+ captive_end_digits_strategy: "delete"
1303
+ });
1304
+ return p.include_apocrypha(true);
1305
+ });
1306
+ return it("should handle book: Hag (jv)", function() {
1307
+
1308
+ expect(p.parse("Hagai 1:1").osis()).toEqual("Hag.1.1", "parsing: 'Hagai 1:1'")
1309
+ expect(p.parse("Hag 1:1").osis()).toEqual("Hag.1.1", "parsing: 'Hag 1:1'")
1310
+ p.include_apocrypha(false)
1311
+ expect(p.parse("HAGAI 1:1").osis()).toEqual("Hag.1.1", "parsing: 'HAGAI 1:1'")
1312
+ expect(p.parse("HAG 1:1").osis()).toEqual("Hag.1.1", "parsing: 'HAG 1:1'")
1313
+ ;
1314
+ return true;
1315
+ });
1316
+ });
1317
+
1318
+ describe("Localized book Zech (jv)", function() {
1319
+ var p;
1320
+ p = {};
1321
+ beforeEach(function() {
1322
+ p = new bcv_parser();
1323
+ p.set_options({
1324
+ book_alone_strategy: "ignore",
1325
+ book_sequence_strategy: "ignore",
1326
+ osis_compaction_strategy: "bc",
1327
+ captive_end_digits_strategy: "delete"
1328
+ });
1329
+ return p.include_apocrypha(true);
1330
+ });
1331
+ return it("should handle book: Zech (jv)", function() {
1332
+
1333
+ expect(p.parse("Zakharia 1:1").osis()).toEqual("Zech.1.1", "parsing: 'Zakharia 1:1'")
1334
+ expect(p.parse("Zech 1:1").osis()).toEqual("Zech.1.1", "parsing: 'Zech 1:1'")
1335
+ p.include_apocrypha(false)
1336
+ expect(p.parse("ZAKHARIA 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZAKHARIA 1:1'")
1337
+ expect(p.parse("ZECH 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZECH 1:1'")
1338
+ ;
1339
+ return true;
1340
+ });
1341
+ });
1342
+
1343
+ describe("Localized book Mal (jv)", function() {
1344
+ var p;
1345
+ p = {};
1346
+ beforeEach(function() {
1347
+ p = new bcv_parser();
1348
+ p.set_options({
1349
+ book_alone_strategy: "ignore",
1350
+ book_sequence_strategy: "ignore",
1351
+ osis_compaction_strategy: "bc",
1352
+ captive_end_digits_strategy: "delete"
1353
+ });
1354
+ return p.include_apocrypha(true);
1355
+ });
1356
+ return it("should handle book: Mal (jv)", function() {
1357
+
1358
+ expect(p.parse("Maleakhi 1:1").osis()).toEqual("Mal.1.1", "parsing: 'Maleakhi 1:1'")
1359
+ expect(p.parse("Mal 1:1").osis()).toEqual("Mal.1.1", "parsing: 'Mal 1:1'")
1360
+ p.include_apocrypha(false)
1361
+ expect(p.parse("MALEAKHI 1:1").osis()).toEqual("Mal.1.1", "parsing: 'MALEAKHI 1:1'")
1362
+ expect(p.parse("MAL 1:1").osis()).toEqual("Mal.1.1", "parsing: 'MAL 1:1'")
1363
+ ;
1364
+ return true;
1365
+ });
1366
+ });
1367
+
1368
+ describe("Localized book Matt (jv)", function() {
1369
+ var p;
1370
+ p = {};
1371
+ beforeEach(function() {
1372
+ p = new bcv_parser();
1373
+ p.set_options({
1374
+ book_alone_strategy: "ignore",
1375
+ book_sequence_strategy: "ignore",
1376
+ osis_compaction_strategy: "bc",
1377
+ captive_end_digits_strategy: "delete"
1378
+ });
1379
+ return p.include_apocrypha(true);
1380
+ });
1381
+ return it("should handle book: Matt (jv)", function() {
1382
+
1383
+ expect(p.parse("Injil Matius 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Injil Matius 1:1'")
1384
+ expect(p.parse("Mateus 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Mateus 1:1'")
1385
+ expect(p.parse("Matius 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Matius 1:1'")
1386
+ expect(p.parse("Matéus 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Matéus 1:1'")
1387
+ expect(p.parse("Matt 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Matt 1:1'")
1388
+ p.include_apocrypha(false)
1389
+ expect(p.parse("INJIL MATIUS 1:1").osis()).toEqual("Matt.1.1", "parsing: 'INJIL MATIUS 1:1'")
1390
+ expect(p.parse("MATEUS 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATEUS 1:1'")
1391
+ expect(p.parse("MATIUS 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATIUS 1:1'")
1392
+ expect(p.parse("MATÉUS 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATÉUS 1:1'")
1393
+ expect(p.parse("MATT 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATT 1:1'")
1394
+ ;
1395
+ return true;
1396
+ });
1397
+ });
1398
+
1399
+ describe("Localized book Mark (jv)", function() {
1400
+ var p;
1401
+ p = {};
1402
+ beforeEach(function() {
1403
+ p = new bcv_parser();
1404
+ p.set_options({
1405
+ book_alone_strategy: "ignore",
1406
+ book_sequence_strategy: "ignore",
1407
+ osis_compaction_strategy: "bc",
1408
+ captive_end_digits_strategy: "delete"
1409
+ });
1410
+ return p.include_apocrypha(true);
1411
+ });
1412
+ return it("should handle book: Mark (jv)", function() {
1413
+
1414
+ expect(p.parse("Injil Markus 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Injil Markus 1:1'")
1415
+ expect(p.parse("Markus 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Markus 1:1'")
1416
+ expect(p.parse("Mark 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Mark 1:1'")
1417
+ p.include_apocrypha(false)
1418
+ expect(p.parse("INJIL MARKUS 1:1").osis()).toEqual("Mark.1.1", "parsing: 'INJIL MARKUS 1:1'")
1419
+ expect(p.parse("MARKUS 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARKUS 1:1'")
1420
+ expect(p.parse("MARK 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARK 1:1'")
1421
+ ;
1422
+ return true;
1423
+ });
1424
+ });
1425
+
1426
+ describe("Localized book Luke (jv)", function() {
1427
+ var p;
1428
+ p = {};
1429
+ beforeEach(function() {
1430
+ p = new bcv_parser();
1431
+ p.set_options({
1432
+ book_alone_strategy: "ignore",
1433
+ book_sequence_strategy: "ignore",
1434
+ osis_compaction_strategy: "bc",
1435
+ captive_end_digits_strategy: "delete"
1436
+ });
1437
+ return p.include_apocrypha(true);
1438
+ });
1439
+ return it("should handle book: Luke (jv)", function() {
1440
+
1441
+ expect(p.parse("Injil Lukas 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Injil Lukas 1:1'")
1442
+ expect(p.parse("Lukas 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Lukas 1:1'")
1443
+ expect(p.parse("Luke 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Luke 1:1'")
1444
+ p.include_apocrypha(false)
1445
+ expect(p.parse("INJIL LUKAS 1:1").osis()).toEqual("Luke.1.1", "parsing: 'INJIL LUKAS 1:1'")
1446
+ expect(p.parse("LUKAS 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LUKAS 1:1'")
1447
+ expect(p.parse("LUKE 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LUKE 1:1'")
1448
+ ;
1449
+ return true;
1450
+ });
1451
+ });
1452
+
1453
+ describe("Localized book 1John (jv)", function() {
1454
+ var p;
1455
+ p = {};
1456
+ beforeEach(function() {
1457
+ p = new bcv_parser();
1458
+ p.set_options({
1459
+ book_alone_strategy: "ignore",
1460
+ book_sequence_strategy: "ignore",
1461
+ osis_compaction_strategy: "bc",
1462
+ captive_end_digits_strategy: "delete"
1463
+ });
1464
+ return p.include_apocrypha(true);
1465
+ });
1466
+ return it("should handle book: 1John (jv)", function() {
1467
+
1468
+ expect(p.parse("1. Yohanes 1:1").osis()).toEqual("1John.1.1", "parsing: '1. Yohanes 1:1'")
1469
+ expect(p.parse("1. Yokanan 1:1").osis()).toEqual("1John.1.1", "parsing: '1. Yokanan 1:1'")
1470
+ expect(p.parse("I. Yohanes 1:1").osis()).toEqual("1John.1.1", "parsing: 'I. Yohanes 1:1'")
1471
+ expect(p.parse("I. Yokanan 1:1").osis()).toEqual("1John.1.1", "parsing: 'I. Yokanan 1:1'")
1472
+ expect(p.parse("1 Yohanes 1:1").osis()).toEqual("1John.1.1", "parsing: '1 Yohanes 1:1'")
1473
+ expect(p.parse("1 Yokanan 1:1").osis()).toEqual("1John.1.1", "parsing: '1 Yokanan 1:1'")
1474
+ expect(p.parse("I Yohanes 1:1").osis()).toEqual("1John.1.1", "parsing: 'I Yohanes 1:1'")
1475
+ expect(p.parse("I Yokanan 1:1").osis()).toEqual("1John.1.1", "parsing: 'I Yokanan 1:1'")
1476
+ expect(p.parse("1John 1:1").osis()).toEqual("1John.1.1", "parsing: '1John 1:1'")
1477
+ p.include_apocrypha(false)
1478
+ expect(p.parse("1. YOHANES 1:1").osis()).toEqual("1John.1.1", "parsing: '1. YOHANES 1:1'")
1479
+ expect(p.parse("1. YOKANAN 1:1").osis()).toEqual("1John.1.1", "parsing: '1. YOKANAN 1:1'")
1480
+ expect(p.parse("I. YOHANES 1:1").osis()).toEqual("1John.1.1", "parsing: 'I. YOHANES 1:1'")
1481
+ expect(p.parse("I. YOKANAN 1:1").osis()).toEqual("1John.1.1", "parsing: 'I. YOKANAN 1:1'")
1482
+ expect(p.parse("1 YOHANES 1:1").osis()).toEqual("1John.1.1", "parsing: '1 YOHANES 1:1'")
1483
+ expect(p.parse("1 YOKANAN 1:1").osis()).toEqual("1John.1.1", "parsing: '1 YOKANAN 1:1'")
1484
+ expect(p.parse("I YOHANES 1:1").osis()).toEqual("1John.1.1", "parsing: 'I YOHANES 1:1'")
1485
+ expect(p.parse("I YOKANAN 1:1").osis()).toEqual("1John.1.1", "parsing: 'I YOKANAN 1:1'")
1486
+ expect(p.parse("1JOHN 1:1").osis()).toEqual("1John.1.1", "parsing: '1JOHN 1:1'")
1487
+ ;
1488
+ return true;
1489
+ });
1490
+ });
1491
+
1492
+ describe("Localized book 2John (jv)", function() {
1493
+ var p;
1494
+ p = {};
1495
+ beforeEach(function() {
1496
+ p = new bcv_parser();
1497
+ p.set_options({
1498
+ book_alone_strategy: "ignore",
1499
+ book_sequence_strategy: "ignore",
1500
+ osis_compaction_strategy: "bc",
1501
+ captive_end_digits_strategy: "delete"
1502
+ });
1503
+ return p.include_apocrypha(true);
1504
+ });
1505
+ return it("should handle book: 2John (jv)", function() {
1506
+
1507
+ expect(p.parse("II. Yohanes 1:1").osis()).toEqual("2John.1.1", "parsing: 'II. Yohanes 1:1'")
1508
+ expect(p.parse("II. Yokanan 1:1").osis()).toEqual("2John.1.1", "parsing: 'II. Yokanan 1:1'")
1509
+ expect(p.parse("2. Yohanes 1:1").osis()).toEqual("2John.1.1", "parsing: '2. Yohanes 1:1'")
1510
+ expect(p.parse("2. Yokanan 1:1").osis()).toEqual("2John.1.1", "parsing: '2. Yokanan 1:1'")
1511
+ expect(p.parse("II Yohanes 1:1").osis()).toEqual("2John.1.1", "parsing: 'II Yohanes 1:1'")
1512
+ expect(p.parse("II Yokanan 1:1").osis()).toEqual("2John.1.1", "parsing: 'II Yokanan 1:1'")
1513
+ expect(p.parse("2 Yohanes 1:1").osis()).toEqual("2John.1.1", "parsing: '2 Yohanes 1:1'")
1514
+ expect(p.parse("2 Yokanan 1:1").osis()).toEqual("2John.1.1", "parsing: '2 Yokanan 1:1'")
1515
+ expect(p.parse("2John 1:1").osis()).toEqual("2John.1.1", "parsing: '2John 1:1'")
1516
+ p.include_apocrypha(false)
1517
+ expect(p.parse("II. YOHANES 1:1").osis()).toEqual("2John.1.1", "parsing: 'II. YOHANES 1:1'")
1518
+ expect(p.parse("II. YOKANAN 1:1").osis()).toEqual("2John.1.1", "parsing: 'II. YOKANAN 1:1'")
1519
+ expect(p.parse("2. YOHANES 1:1").osis()).toEqual("2John.1.1", "parsing: '2. YOHANES 1:1'")
1520
+ expect(p.parse("2. YOKANAN 1:1").osis()).toEqual("2John.1.1", "parsing: '2. YOKANAN 1:1'")
1521
+ expect(p.parse("II YOHANES 1:1").osis()).toEqual("2John.1.1", "parsing: 'II YOHANES 1:1'")
1522
+ expect(p.parse("II YOKANAN 1:1").osis()).toEqual("2John.1.1", "parsing: 'II YOKANAN 1:1'")
1523
+ expect(p.parse("2 YOHANES 1:1").osis()).toEqual("2John.1.1", "parsing: '2 YOHANES 1:1'")
1524
+ expect(p.parse("2 YOKANAN 1:1").osis()).toEqual("2John.1.1", "parsing: '2 YOKANAN 1:1'")
1525
+ expect(p.parse("2JOHN 1:1").osis()).toEqual("2John.1.1", "parsing: '2JOHN 1:1'")
1526
+ ;
1527
+ return true;
1528
+ });
1529
+ });
1530
+
1531
+ describe("Localized book 3John (jv)", function() {
1532
+ var p;
1533
+ p = {};
1534
+ beforeEach(function() {
1535
+ p = new bcv_parser();
1536
+ p.set_options({
1537
+ book_alone_strategy: "ignore",
1538
+ book_sequence_strategy: "ignore",
1539
+ osis_compaction_strategy: "bc",
1540
+ captive_end_digits_strategy: "delete"
1541
+ });
1542
+ return p.include_apocrypha(true);
1543
+ });
1544
+ return it("should handle book: 3John (jv)", function() {
1545
+
1546
+ expect(p.parse("III. Yohanes 1:1").osis()).toEqual("3John.1.1", "parsing: 'III. Yohanes 1:1'")
1547
+ expect(p.parse("III. Yokanan 1:1").osis()).toEqual("3John.1.1", "parsing: 'III. Yokanan 1:1'")
1548
+ expect(p.parse("III Yohanes 1:1").osis()).toEqual("3John.1.1", "parsing: 'III Yohanes 1:1'")
1549
+ expect(p.parse("III Yokanan 1:1").osis()).toEqual("3John.1.1", "parsing: 'III Yokanan 1:1'")
1550
+ expect(p.parse("3. Yohanes 1:1").osis()).toEqual("3John.1.1", "parsing: '3. Yohanes 1:1'")
1551
+ expect(p.parse("3. Yokanan 1:1").osis()).toEqual("3John.1.1", "parsing: '3. Yokanan 1:1'")
1552
+ expect(p.parse("3 Yohanes 1:1").osis()).toEqual("3John.1.1", "parsing: '3 Yohanes 1:1'")
1553
+ expect(p.parse("3 Yokanan 1:1").osis()).toEqual("3John.1.1", "parsing: '3 Yokanan 1:1'")
1554
+ expect(p.parse("3John 1:1").osis()).toEqual("3John.1.1", "parsing: '3John 1:1'")
1555
+ p.include_apocrypha(false)
1556
+ expect(p.parse("III. YOHANES 1:1").osis()).toEqual("3John.1.1", "parsing: 'III. YOHANES 1:1'")
1557
+ expect(p.parse("III. YOKANAN 1:1").osis()).toEqual("3John.1.1", "parsing: 'III. YOKANAN 1:1'")
1558
+ expect(p.parse("III YOHANES 1:1").osis()).toEqual("3John.1.1", "parsing: 'III YOHANES 1:1'")
1559
+ expect(p.parse("III YOKANAN 1:1").osis()).toEqual("3John.1.1", "parsing: 'III YOKANAN 1:1'")
1560
+ expect(p.parse("3. YOHANES 1:1").osis()).toEqual("3John.1.1", "parsing: '3. YOHANES 1:1'")
1561
+ expect(p.parse("3. YOKANAN 1:1").osis()).toEqual("3John.1.1", "parsing: '3. YOKANAN 1:1'")
1562
+ expect(p.parse("3 YOHANES 1:1").osis()).toEqual("3John.1.1", "parsing: '3 YOHANES 1:1'")
1563
+ expect(p.parse("3 YOKANAN 1:1").osis()).toEqual("3John.1.1", "parsing: '3 YOKANAN 1:1'")
1564
+ expect(p.parse("3JOHN 1:1").osis()).toEqual("3John.1.1", "parsing: '3JOHN 1:1'")
1565
+ ;
1566
+ return true;
1567
+ });
1568
+ });
1569
+
1570
+ describe("Localized book John (jv)", function() {
1571
+ var p;
1572
+ p = {};
1573
+ beforeEach(function() {
1574
+ p = new bcv_parser();
1575
+ p.set_options({
1576
+ book_alone_strategy: "ignore",
1577
+ book_sequence_strategy: "ignore",
1578
+ osis_compaction_strategy: "bc",
1579
+ captive_end_digits_strategy: "delete"
1580
+ });
1581
+ return p.include_apocrypha(true);
1582
+ });
1583
+ return it("should handle book: John (jv)", function() {
1584
+
1585
+ expect(p.parse("Injil Yohanes 1:1").osis()).toEqual("John.1.1", "parsing: 'Injil Yohanes 1:1'")
1586
+ expect(p.parse("Yohanes 1:1").osis()).toEqual("John.1.1", "parsing: 'Yohanes 1:1'")
1587
+ expect(p.parse("Yokanan 1:1").osis()).toEqual("John.1.1", "parsing: 'Yokanan 1:1'")
1588
+ expect(p.parse("John 1:1").osis()).toEqual("John.1.1", "parsing: 'John 1:1'")
1589
+ p.include_apocrypha(false)
1590
+ expect(p.parse("INJIL YOHANES 1:1").osis()).toEqual("John.1.1", "parsing: 'INJIL YOHANES 1:1'")
1591
+ expect(p.parse("YOHANES 1:1").osis()).toEqual("John.1.1", "parsing: 'YOHANES 1:1'")
1592
+ expect(p.parse("YOKANAN 1:1").osis()).toEqual("John.1.1", "parsing: 'YOKANAN 1:1'")
1593
+ expect(p.parse("JOHN 1:1").osis()).toEqual("John.1.1", "parsing: 'JOHN 1:1'")
1594
+ ;
1595
+ return true;
1596
+ });
1597
+ });
1598
+
1599
+ describe("Localized book Acts (jv)", function() {
1600
+ var p;
1601
+ p = {};
1602
+ beforeEach(function() {
1603
+ p = new bcv_parser();
1604
+ p.set_options({
1605
+ book_alone_strategy: "ignore",
1606
+ book_sequence_strategy: "ignore",
1607
+ osis_compaction_strategy: "bc",
1608
+ captive_end_digits_strategy: "delete"
1609
+ });
1610
+ return p.include_apocrypha(true);
1611
+ });
1612
+ return it("should handle book: Acts (jv)", function() {
1613
+
1614
+ expect(p.parse("Lelakone Para Rasul 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Lelakone Para Rasul 1:1'")
1615
+ expect(p.parse("Para Rasul 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Para Rasul 1:1'")
1616
+ expect(p.parse("Acts 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Acts 1:1'")
1617
+ p.include_apocrypha(false)
1618
+ expect(p.parse("LELAKONE PARA RASUL 1:1").osis()).toEqual("Acts.1.1", "parsing: 'LELAKONE PARA RASUL 1:1'")
1619
+ expect(p.parse("PARA RASUL 1:1").osis()).toEqual("Acts.1.1", "parsing: 'PARA RASUL 1:1'")
1620
+ expect(p.parse("ACTS 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ACTS 1:1'")
1621
+ ;
1622
+ return true;
1623
+ });
1624
+ });
1625
+
1626
+ describe("Localized book Rom (jv)", function() {
1627
+ var p;
1628
+ p = {};
1629
+ beforeEach(function() {
1630
+ p = new bcv_parser();
1631
+ p.set_options({
1632
+ book_alone_strategy: "ignore",
1633
+ book_sequence_strategy: "ignore",
1634
+ osis_compaction_strategy: "bc",
1635
+ captive_end_digits_strategy: "delete"
1636
+ });
1637
+ return p.include_apocrypha(true);
1638
+ });
1639
+ return it("should handle book: Rom (jv)", function() {
1640
+
1641
+ expect(p.parse("Layang Paulus Roma 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Layang Paulus Roma 1:1'")
1642
+ expect(p.parse("Roma 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Roma 1:1'")
1643
+ expect(p.parse("Rom 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Rom 1:1'")
1644
+ expect(p.parse("Rum 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Rum 1:1'")
1645
+ p.include_apocrypha(false)
1646
+ expect(p.parse("LAYANG PAULUS ROMA 1:1").osis()).toEqual("Rom.1.1", "parsing: 'LAYANG PAULUS ROMA 1:1'")
1647
+ expect(p.parse("ROMA 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROMA 1:1'")
1648
+ expect(p.parse("ROM 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROM 1:1'")
1649
+ expect(p.parse("RUM 1:1").osis()).toEqual("Rom.1.1", "parsing: 'RUM 1:1'")
1650
+ ;
1651
+ return true;
1652
+ });
1653
+ });
1654
+
1655
+ describe("Localized book 2Cor (jv)", function() {
1656
+ var p;
1657
+ p = {};
1658
+ beforeEach(function() {
1659
+ p = new bcv_parser();
1660
+ p.set_options({
1661
+ book_alone_strategy: "ignore",
1662
+ book_sequence_strategy: "ignore",
1663
+ osis_compaction_strategy: "bc",
1664
+ captive_end_digits_strategy: "delete"
1665
+ });
1666
+ return p.include_apocrypha(true);
1667
+ });
1668
+ return it("should handle book: 2Cor (jv)", function() {
1669
+
1670
+ expect(p.parse("II. Korintus 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II. Korintus 1:1'")
1671
+ expect(p.parse("2. Korintus 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2. Korintus 1:1'")
1672
+ expect(p.parse("II Korintus 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II Korintus 1:1'")
1673
+ expect(p.parse("II. Korinta 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II. Korinta 1:1'")
1674
+ expect(p.parse("2 Korintus 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 Korintus 1:1'")
1675
+ expect(p.parse("2. Korinta 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2. Korinta 1:1'")
1676
+ expect(p.parse("II Korinta 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II Korinta 1:1'")
1677
+ expect(p.parse("2 Korinta 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 Korinta 1:1'")
1678
+ expect(p.parse("2Cor 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2Cor 1:1'")
1679
+ p.include_apocrypha(false)
1680
+ expect(p.parse("II. KORINTUS 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II. KORINTUS 1:1'")
1681
+ expect(p.parse("2. KORINTUS 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2. KORINTUS 1:1'")
1682
+ expect(p.parse("II KORINTUS 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II KORINTUS 1:1'")
1683
+ expect(p.parse("II. KORINTA 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II. KORINTA 1:1'")
1684
+ expect(p.parse("2 KORINTUS 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 KORINTUS 1:1'")
1685
+ expect(p.parse("2. KORINTA 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2. KORINTA 1:1'")
1686
+ expect(p.parse("II KORINTA 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'II KORINTA 1:1'")
1687
+ expect(p.parse("2 KORINTA 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 KORINTA 1:1'")
1688
+ expect(p.parse("2COR 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2COR 1:1'")
1689
+ ;
1690
+ return true;
1691
+ });
1692
+ });
1693
+
1694
+ describe("Localized book 1Cor (jv)", function() {
1695
+ var p;
1696
+ p = {};
1697
+ beforeEach(function() {
1698
+ p = new bcv_parser();
1699
+ p.set_options({
1700
+ book_alone_strategy: "ignore",
1701
+ book_sequence_strategy: "ignore",
1702
+ osis_compaction_strategy: "bc",
1703
+ captive_end_digits_strategy: "delete"
1704
+ });
1705
+ return p.include_apocrypha(true);
1706
+ });
1707
+ return it("should handle book: 1Cor (jv)", function() {
1708
+
1709
+ expect(p.parse("1. Korintus 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1. Korintus 1:1'")
1710
+ expect(p.parse("I. Korintus 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I. Korintus 1:1'")
1711
+ expect(p.parse("1 Korintus 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 Korintus 1:1'")
1712
+ expect(p.parse("1. Korinta 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1. Korinta 1:1'")
1713
+ expect(p.parse("I Korintus 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I Korintus 1:1'")
1714
+ expect(p.parse("I. Korinta 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I. Korinta 1:1'")
1715
+ expect(p.parse("1 Korinta 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 Korinta 1:1'")
1716
+ expect(p.parse("I Korinta 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I Korinta 1:1'")
1717
+ expect(p.parse("1Cor 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1Cor 1:1'")
1718
+ p.include_apocrypha(false)
1719
+ expect(p.parse("1. KORINTUS 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1. KORINTUS 1:1'")
1720
+ expect(p.parse("I. KORINTUS 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I. KORINTUS 1:1'")
1721
+ expect(p.parse("1 KORINTUS 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 KORINTUS 1:1'")
1722
+ expect(p.parse("1. KORINTA 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1. KORINTA 1:1'")
1723
+ expect(p.parse("I KORINTUS 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I KORINTUS 1:1'")
1724
+ expect(p.parse("I. KORINTA 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I. KORINTA 1:1'")
1725
+ expect(p.parse("1 KORINTA 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 KORINTA 1:1'")
1726
+ expect(p.parse("I KORINTA 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'I KORINTA 1:1'")
1727
+ expect(p.parse("1COR 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1COR 1:1'")
1728
+ ;
1729
+ return true;
1730
+ });
1731
+ });
1732
+
1733
+ describe("Localized book Gal (jv)", function() {
1734
+ var p;
1735
+ p = {};
1736
+ beforeEach(function() {
1737
+ p = new bcv_parser();
1738
+ p.set_options({
1739
+ book_alone_strategy: "ignore",
1740
+ book_sequence_strategy: "ignore",
1741
+ osis_compaction_strategy: "bc",
1742
+ captive_end_digits_strategy: "delete"
1743
+ });
1744
+ return p.include_apocrypha(true);
1745
+ });
1746
+ return it("should handle book: Gal (jv)", function() {
1747
+
1748
+ expect(p.parse("Layang Paulus Galatia 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Layang Paulus Galatia 1:1'")
1749
+ expect(p.parse("Galasia 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Galasia 1:1'")
1750
+ expect(p.parse("Galatia 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Galatia 1:1'")
1751
+ expect(p.parse("Galati 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Galati 1:1'")
1752
+ expect(p.parse("Gal 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Gal 1:1'")
1753
+ p.include_apocrypha(false)
1754
+ expect(p.parse("LAYANG PAULUS GALATIA 1:1").osis()).toEqual("Gal.1.1", "parsing: 'LAYANG PAULUS GALATIA 1:1'")
1755
+ expect(p.parse("GALASIA 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GALASIA 1:1'")
1756
+ expect(p.parse("GALATIA 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GALATIA 1:1'")
1757
+ expect(p.parse("GALATI 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GALATI 1:1'")
1758
+ expect(p.parse("GAL 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GAL 1:1'")
1759
+ ;
1760
+ return true;
1761
+ });
1762
+ });
1763
+
1764
+ describe("Localized book Eph (jv)", function() {
1765
+ var p;
1766
+ p = {};
1767
+ beforeEach(function() {
1768
+ p = new bcv_parser();
1769
+ p.set_options({
1770
+ book_alone_strategy: "ignore",
1771
+ book_sequence_strategy: "ignore",
1772
+ osis_compaction_strategy: "bc",
1773
+ captive_end_digits_strategy: "delete"
1774
+ });
1775
+ return p.include_apocrypha(true);
1776
+ });
1777
+ return it("should handle book: Eph (jv)", function() {
1778
+
1779
+ expect(p.parse("Layang Paulus Efesus 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Layang Paulus Efesus 1:1'")
1780
+ expect(p.parse("Efesus 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Efesus 1:1'")
1781
+ expect(p.parse("Efese 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Efese 1:1'")
1782
+ expect(p.parse("Efése 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Efése 1:1'")
1783
+ expect(p.parse("Eph 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Eph 1:1'")
1784
+ p.include_apocrypha(false)
1785
+ expect(p.parse("LAYANG PAULUS EFESUS 1:1").osis()).toEqual("Eph.1.1", "parsing: 'LAYANG PAULUS EFESUS 1:1'")
1786
+ expect(p.parse("EFESUS 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EFESUS 1:1'")
1787
+ expect(p.parse("EFESE 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EFESE 1:1'")
1788
+ expect(p.parse("EFÉSE 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EFÉSE 1:1'")
1789
+ expect(p.parse("EPH 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EPH 1:1'")
1790
+ ;
1791
+ return true;
1792
+ });
1793
+ });
1794
+
1795
+ describe("Localized book Phil (jv)", function() {
1796
+ var p;
1797
+ p = {};
1798
+ beforeEach(function() {
1799
+ p = new bcv_parser();
1800
+ p.set_options({
1801
+ book_alone_strategy: "ignore",
1802
+ book_sequence_strategy: "ignore",
1803
+ osis_compaction_strategy: "bc",
1804
+ captive_end_digits_strategy: "delete"
1805
+ });
1806
+ return p.include_apocrypha(true);
1807
+ });
1808
+ return it("should handle book: Phil (jv)", function() {
1809
+
1810
+ expect(p.parse("Layang Paulus Filipi 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Layang Paulus Filipi 1:1'")
1811
+ expect(p.parse("Filipi 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Filipi 1:1'")
1812
+ expect(p.parse("Phil 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Phil 1:1'")
1813
+ p.include_apocrypha(false)
1814
+ expect(p.parse("LAYANG PAULUS FILIPI 1:1").osis()).toEqual("Phil.1.1", "parsing: 'LAYANG PAULUS FILIPI 1:1'")
1815
+ expect(p.parse("FILIPI 1:1").osis()).toEqual("Phil.1.1", "parsing: 'FILIPI 1:1'")
1816
+ expect(p.parse("PHIL 1:1").osis()).toEqual("Phil.1.1", "parsing: 'PHIL 1:1'")
1817
+ ;
1818
+ return true;
1819
+ });
1820
+ });
1821
+
1822
+ describe("Localized book Col (jv)", function() {
1823
+ var p;
1824
+ p = {};
1825
+ beforeEach(function() {
1826
+ p = new bcv_parser();
1827
+ p.set_options({
1828
+ book_alone_strategy: "ignore",
1829
+ book_sequence_strategy: "ignore",
1830
+ osis_compaction_strategy: "bc",
1831
+ captive_end_digits_strategy: "delete"
1832
+ });
1833
+ return p.include_apocrypha(true);
1834
+ });
1835
+ return it("should handle book: Col (jv)", function() {
1836
+
1837
+ expect(p.parse("Layang Paulus Kolose 1:1").osis()).toEqual("Col.1.1", "parsing: 'Layang Paulus Kolose 1:1'")
1838
+ expect(p.parse("Layang Paulus Kolosé 1:1").osis()).toEqual("Col.1.1", "parsing: 'Layang Paulus Kolosé 1:1'")
1839
+ expect(p.parse("Kolose 1:1").osis()).toEqual("Col.1.1", "parsing: 'Kolose 1:1'")
1840
+ expect(p.parse("Kolosé 1:1").osis()).toEqual("Col.1.1", "parsing: 'Kolosé 1:1'")
1841
+ expect(p.parse("Col 1:1").osis()).toEqual("Col.1.1", "parsing: 'Col 1:1'")
1842
+ p.include_apocrypha(false)
1843
+ expect(p.parse("LAYANG PAULUS KOLOSE 1:1").osis()).toEqual("Col.1.1", "parsing: 'LAYANG PAULUS KOLOSE 1:1'")
1844
+ expect(p.parse("LAYANG PAULUS KOLOSÉ 1:1").osis()).toEqual("Col.1.1", "parsing: 'LAYANG PAULUS KOLOSÉ 1:1'")
1845
+ expect(p.parse("KOLOSE 1:1").osis()).toEqual("Col.1.1", "parsing: 'KOLOSE 1:1'")
1846
+ expect(p.parse("KOLOSÉ 1:1").osis()).toEqual("Col.1.1", "parsing: 'KOLOSÉ 1:1'")
1847
+ expect(p.parse("COL 1:1").osis()).toEqual("Col.1.1", "parsing: 'COL 1:1'")
1848
+ ;
1849
+ return true;
1850
+ });
1851
+ });
1852
+
1853
+ describe("Localized book 2Thess (jv)", function() {
1854
+ var p;
1855
+ p = {};
1856
+ beforeEach(function() {
1857
+ p = new bcv_parser();
1858
+ p.set_options({
1859
+ book_alone_strategy: "ignore",
1860
+ book_sequence_strategy: "ignore",
1861
+ osis_compaction_strategy: "bc",
1862
+ captive_end_digits_strategy: "delete"
1863
+ });
1864
+ return p.include_apocrypha(true);
1865
+ });
1866
+ return it("should handle book: 2Thess (jv)", function() {
1867
+
1868
+ expect(p.parse("II. Tesalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II. Tesalonika 1:1'")
1869
+ expect(p.parse("II. Tèsalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II. Tèsalonika 1:1'")
1870
+ expect(p.parse("2. Tesalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2. Tesalonika 1:1'")
1871
+ expect(p.parse("2. Tèsalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2. Tèsalonika 1:1'")
1872
+ expect(p.parse("II Tesalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II Tesalonika 1:1'")
1873
+ expect(p.parse("II Tèsalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II Tèsalonika 1:1'")
1874
+ expect(p.parse("2 Tesalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 Tesalonika 1:1'")
1875
+ expect(p.parse("2 Tèsalonika 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 Tèsalonika 1:1'")
1876
+ expect(p.parse("2Thess 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2Thess 1:1'")
1877
+ p.include_apocrypha(false)
1878
+ expect(p.parse("II. TESALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II. TESALONIKA 1:1'")
1879
+ expect(p.parse("II. TÈSALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II. TÈSALONIKA 1:1'")
1880
+ expect(p.parse("2. TESALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2. TESALONIKA 1:1'")
1881
+ expect(p.parse("2. TÈSALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2. TÈSALONIKA 1:1'")
1882
+ expect(p.parse("II TESALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II TESALONIKA 1:1'")
1883
+ expect(p.parse("II TÈSALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'II TÈSALONIKA 1:1'")
1884
+ expect(p.parse("2 TESALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 TESALONIKA 1:1'")
1885
+ expect(p.parse("2 TÈSALONIKA 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 TÈSALONIKA 1:1'")
1886
+ expect(p.parse("2THESS 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2THESS 1:1'")
1887
+ ;
1888
+ return true;
1889
+ });
1890
+ });
1891
+
1892
+ describe("Localized book 1Thess (jv)", function() {
1893
+ var p;
1894
+ p = {};
1895
+ beforeEach(function() {
1896
+ p = new bcv_parser();
1897
+ p.set_options({
1898
+ book_alone_strategy: "ignore",
1899
+ book_sequence_strategy: "ignore",
1900
+ osis_compaction_strategy: "bc",
1901
+ captive_end_digits_strategy: "delete"
1902
+ });
1903
+ return p.include_apocrypha(true);
1904
+ });
1905
+ return it("should handle book: 1Thess (jv)", function() {
1906
+
1907
+ expect(p.parse("1. Tesalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1. Tesalonika 1:1'")
1908
+ expect(p.parse("1. Tèsalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1. Tèsalonika 1:1'")
1909
+ expect(p.parse("I. Tesalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I. Tesalonika 1:1'")
1910
+ expect(p.parse("I. Tèsalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I. Tèsalonika 1:1'")
1911
+ expect(p.parse("1 Tesalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 Tesalonika 1:1'")
1912
+ expect(p.parse("1 Tèsalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 Tèsalonika 1:1'")
1913
+ expect(p.parse("I Tesalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I Tesalonika 1:1'")
1914
+ expect(p.parse("I Tèsalonika 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I Tèsalonika 1:1'")
1915
+ expect(p.parse("1Thess 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1Thess 1:1'")
1916
+ p.include_apocrypha(false)
1917
+ expect(p.parse("1. TESALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1. TESALONIKA 1:1'")
1918
+ expect(p.parse("1. TÈSALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1. TÈSALONIKA 1:1'")
1919
+ expect(p.parse("I. TESALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I. TESALONIKA 1:1'")
1920
+ expect(p.parse("I. TÈSALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I. TÈSALONIKA 1:1'")
1921
+ expect(p.parse("1 TESALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 TESALONIKA 1:1'")
1922
+ expect(p.parse("1 TÈSALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 TÈSALONIKA 1:1'")
1923
+ expect(p.parse("I TESALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I TESALONIKA 1:1'")
1924
+ expect(p.parse("I TÈSALONIKA 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'I TÈSALONIKA 1:1'")
1925
+ expect(p.parse("1THESS 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1THESS 1:1'")
1926
+ ;
1927
+ return true;
1928
+ });
1929
+ });
1930
+
1931
+ describe("Localized book 2Tim (jv)", function() {
1932
+ var p;
1933
+ p = {};
1934
+ beforeEach(function() {
1935
+ p = new bcv_parser();
1936
+ p.set_options({
1937
+ book_alone_strategy: "ignore",
1938
+ book_sequence_strategy: "ignore",
1939
+ osis_compaction_strategy: "bc",
1940
+ captive_end_digits_strategy: "delete"
1941
+ });
1942
+ return p.include_apocrypha(true);
1943
+ });
1944
+ return it("should handle book: 2Tim (jv)", function() {
1945
+
1946
+ expect(p.parse("II. Timoteus 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II. Timoteus 1:1'")
1947
+ expect(p.parse("II. Timotius 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II. Timotius 1:1'")
1948
+ expect(p.parse("2. Timoteus 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2. Timoteus 1:1'")
1949
+ expect(p.parse("2. Timotius 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2. Timotius 1:1'")
1950
+ expect(p.parse("II Timoteus 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II Timoteus 1:1'")
1951
+ expect(p.parse("II Timotius 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II Timotius 1:1'")
1952
+ expect(p.parse("2 Timoteus 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 Timoteus 1:1'")
1953
+ expect(p.parse("2 Timotius 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 Timotius 1:1'")
1954
+ expect(p.parse("2Tim 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2Tim 1:1'")
1955
+ p.include_apocrypha(false)
1956
+ expect(p.parse("II. TIMOTEUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II. TIMOTEUS 1:1'")
1957
+ expect(p.parse("II. TIMOTIUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II. TIMOTIUS 1:1'")
1958
+ expect(p.parse("2. TIMOTEUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2. TIMOTEUS 1:1'")
1959
+ expect(p.parse("2. TIMOTIUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2. TIMOTIUS 1:1'")
1960
+ expect(p.parse("II TIMOTEUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II TIMOTEUS 1:1'")
1961
+ expect(p.parse("II TIMOTIUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'II TIMOTIUS 1:1'")
1962
+ expect(p.parse("2 TIMOTEUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 TIMOTEUS 1:1'")
1963
+ expect(p.parse("2 TIMOTIUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 TIMOTIUS 1:1'")
1964
+ expect(p.parse("2TIM 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2TIM 1:1'")
1965
+ ;
1966
+ return true;
1967
+ });
1968
+ });
1969
+
1970
+ describe("Localized book 1Tim (jv)", function() {
1971
+ var p;
1972
+ p = {};
1973
+ beforeEach(function() {
1974
+ p = new bcv_parser();
1975
+ p.set_options({
1976
+ book_alone_strategy: "ignore",
1977
+ book_sequence_strategy: "ignore",
1978
+ osis_compaction_strategy: "bc",
1979
+ captive_end_digits_strategy: "delete"
1980
+ });
1981
+ return p.include_apocrypha(true);
1982
+ });
1983
+ return it("should handle book: 1Tim (jv)", function() {
1984
+
1985
+ expect(p.parse("1. Timoteus 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1. Timoteus 1:1'")
1986
+ expect(p.parse("1. Timotius 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1. Timotius 1:1'")
1987
+ expect(p.parse("I. Timoteus 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I. Timoteus 1:1'")
1988
+ expect(p.parse("I. Timotius 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I. Timotius 1:1'")
1989
+ expect(p.parse("1 Timoteus 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 Timoteus 1:1'")
1990
+ expect(p.parse("1 Timotius 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 Timotius 1:1'")
1991
+ expect(p.parse("I Timoteus 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I Timoteus 1:1'")
1992
+ expect(p.parse("I Timotius 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I Timotius 1:1'")
1993
+ expect(p.parse("1Tim 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1Tim 1:1'")
1994
+ p.include_apocrypha(false)
1995
+ expect(p.parse("1. TIMOTEUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1. TIMOTEUS 1:1'")
1996
+ expect(p.parse("1. TIMOTIUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1. TIMOTIUS 1:1'")
1997
+ expect(p.parse("I. TIMOTEUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I. TIMOTEUS 1:1'")
1998
+ expect(p.parse("I. TIMOTIUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I. TIMOTIUS 1:1'")
1999
+ expect(p.parse("1 TIMOTEUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 TIMOTEUS 1:1'")
2000
+ expect(p.parse("1 TIMOTIUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 TIMOTIUS 1:1'")
2001
+ expect(p.parse("I TIMOTEUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I TIMOTEUS 1:1'")
2002
+ expect(p.parse("I TIMOTIUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'I TIMOTIUS 1:1'")
2003
+ expect(p.parse("1TIM 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1TIM 1:1'")
2004
+ ;
2005
+ return true;
2006
+ });
2007
+ });
2008
+
2009
+ describe("Localized book Titus (jv)", function() {
2010
+ var p;
2011
+ p = {};
2012
+ beforeEach(function() {
2013
+ p = new bcv_parser();
2014
+ p.set_options({
2015
+ book_alone_strategy: "ignore",
2016
+ book_sequence_strategy: "ignore",
2017
+ osis_compaction_strategy: "bc",
2018
+ captive_end_digits_strategy: "delete"
2019
+ });
2020
+ return p.include_apocrypha(true);
2021
+ });
2022
+ return it("should handle book: Titus (jv)", function() {
2023
+
2024
+ expect(p.parse("Titus 1:1").osis()).toEqual("Titus.1.1", "parsing: 'Titus 1:1'")
2025
+ p.include_apocrypha(false)
2026
+ expect(p.parse("TITUS 1:1").osis()).toEqual("Titus.1.1", "parsing: 'TITUS 1:1'")
2027
+ ;
2028
+ return true;
2029
+ });
2030
+ });
2031
+
2032
+ describe("Localized book Phlm (jv)", function() {
2033
+ var p;
2034
+ p = {};
2035
+ beforeEach(function() {
2036
+ p = new bcv_parser();
2037
+ p.set_options({
2038
+ book_alone_strategy: "ignore",
2039
+ book_sequence_strategy: "ignore",
2040
+ osis_compaction_strategy: "bc",
2041
+ captive_end_digits_strategy: "delete"
2042
+ });
2043
+ return p.include_apocrypha(true);
2044
+ });
2045
+ return it("should handle book: Phlm (jv)", function() {
2046
+
2047
+ expect(p.parse("Filemon 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'Filemon 1:1'")
2048
+ expect(p.parse("Phlm 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'Phlm 1:1'")
2049
+ p.include_apocrypha(false)
2050
+ expect(p.parse("FILEMON 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'FILEMON 1:1'")
2051
+ expect(p.parse("PHLM 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'PHLM 1:1'")
2052
+ ;
2053
+ return true;
2054
+ });
2055
+ });
2056
+
2057
+ describe("Localized book Heb (jv)", function() {
2058
+ var p;
2059
+ p = {};
2060
+ beforeEach(function() {
2061
+ p = new bcv_parser();
2062
+ p.set_options({
2063
+ book_alone_strategy: "ignore",
2064
+ book_sequence_strategy: "ignore",
2065
+ osis_compaction_strategy: "bc",
2066
+ captive_end_digits_strategy: "delete"
2067
+ });
2068
+ return p.include_apocrypha(true);
2069
+ });
2070
+ return it("should handle book: Heb (jv)", function() {
2071
+
2072
+ expect(p.parse("Layang Ibrani 1:1").osis()).toEqual("Heb.1.1", "parsing: 'Layang Ibrani 1:1'")
2073
+ expect(p.parse("Ibrani 1:1").osis()).toEqual("Heb.1.1", "parsing: 'Ibrani 1:1'")
2074
+ expect(p.parse("Heb 1:1").osis()).toEqual("Heb.1.1", "parsing: 'Heb 1:1'")
2075
+ p.include_apocrypha(false)
2076
+ expect(p.parse("LAYANG IBRANI 1:1").osis()).toEqual("Heb.1.1", "parsing: 'LAYANG IBRANI 1:1'")
2077
+ expect(p.parse("IBRANI 1:1").osis()).toEqual("Heb.1.1", "parsing: 'IBRANI 1:1'")
2078
+ expect(p.parse("HEB 1:1").osis()).toEqual("Heb.1.1", "parsing: 'HEB 1:1'")
2079
+ ;
2080
+ return true;
2081
+ });
2082
+ });
2083
+
2084
+ describe("Localized book Jas (jv)", function() {
2085
+ var p;
2086
+ p = {};
2087
+ beforeEach(function() {
2088
+ p = new bcv_parser();
2089
+ p.set_options({
2090
+ book_alone_strategy: "ignore",
2091
+ book_sequence_strategy: "ignore",
2092
+ osis_compaction_strategy: "bc",
2093
+ captive_end_digits_strategy: "delete"
2094
+ });
2095
+ return p.include_apocrypha(true);
2096
+ });
2097
+ return it("should handle book: Jas (jv)", function() {
2098
+
2099
+ expect(p.parse("Layang Yakobus 1:1").osis()).toEqual("Jas.1.1", "parsing: 'Layang Yakobus 1:1'")
2100
+ expect(p.parse("Yakobus 1:1").osis()).toEqual("Jas.1.1", "parsing: 'Yakobus 1:1'")
2101
+ expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1", "parsing: 'Jas 1:1'")
2102
+ p.include_apocrypha(false)
2103
+ expect(p.parse("LAYANG YAKOBUS 1:1").osis()).toEqual("Jas.1.1", "parsing: 'LAYANG YAKOBUS 1:1'")
2104
+ expect(p.parse("YAKOBUS 1:1").osis()).toEqual("Jas.1.1", "parsing: 'YAKOBUS 1:1'")
2105
+ expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1", "parsing: 'JAS 1:1'")
2106
+ ;
2107
+ return true;
2108
+ });
2109
+ });
2110
+
2111
+ describe("Localized book 2Pet (jv)", function() {
2112
+ var p;
2113
+ p = {};
2114
+ beforeEach(function() {
2115
+ p = new bcv_parser();
2116
+ p.set_options({
2117
+ book_alone_strategy: "ignore",
2118
+ book_sequence_strategy: "ignore",
2119
+ osis_compaction_strategy: "bc",
2120
+ captive_end_digits_strategy: "delete"
2121
+ });
2122
+ return p.include_apocrypha(true);
2123
+ });
2124
+ return it("should handle book: 2Pet (jv)", function() {
2125
+
2126
+ expect(p.parse("II. Petrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II. Petrus 1:1'")
2127
+ expect(p.parse("II. Pétrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II. Pétrus 1:1'")
2128
+ expect(p.parse("2. Petrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2. Petrus 1:1'")
2129
+ expect(p.parse("2. Pétrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2. Pétrus 1:1'")
2130
+ expect(p.parse("II Petrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II Petrus 1:1'")
2131
+ expect(p.parse("II Pétrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II Pétrus 1:1'")
2132
+ expect(p.parse("2 Petrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 Petrus 1:1'")
2133
+ expect(p.parse("2 Pétrus 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 Pétrus 1:1'")
2134
+ expect(p.parse("2Pet 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2Pet 1:1'")
2135
+ p.include_apocrypha(false)
2136
+ expect(p.parse("II. PETRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II. PETRUS 1:1'")
2137
+ expect(p.parse("II. PÉTRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II. PÉTRUS 1:1'")
2138
+ expect(p.parse("2. PETRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2. PETRUS 1:1'")
2139
+ expect(p.parse("2. PÉTRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2. PÉTRUS 1:1'")
2140
+ expect(p.parse("II PETRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II PETRUS 1:1'")
2141
+ expect(p.parse("II PÉTRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'II PÉTRUS 1:1'")
2142
+ expect(p.parse("2 PETRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 PETRUS 1:1'")
2143
+ expect(p.parse("2 PÉTRUS 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 PÉTRUS 1:1'")
2144
+ expect(p.parse("2PET 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2PET 1:1'")
2145
+ ;
2146
+ return true;
2147
+ });
2148
+ });
2149
+
2150
+ describe("Localized book 1Pet (jv)", function() {
2151
+ var p;
2152
+ p = {};
2153
+ beforeEach(function() {
2154
+ p = new bcv_parser();
2155
+ p.set_options({
2156
+ book_alone_strategy: "ignore",
2157
+ book_sequence_strategy: "ignore",
2158
+ osis_compaction_strategy: "bc",
2159
+ captive_end_digits_strategy: "delete"
2160
+ });
2161
+ return p.include_apocrypha(true);
2162
+ });
2163
+ return it("should handle book: 1Pet (jv)", function() {
2164
+
2165
+ expect(p.parse("1. Petrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1. Petrus 1:1'")
2166
+ expect(p.parse("1. Pétrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1. Pétrus 1:1'")
2167
+ expect(p.parse("I. Petrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I. Petrus 1:1'")
2168
+ expect(p.parse("I. Pétrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I. Pétrus 1:1'")
2169
+ expect(p.parse("1 Petrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 Petrus 1:1'")
2170
+ expect(p.parse("1 Pétrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 Pétrus 1:1'")
2171
+ expect(p.parse("I Petrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I Petrus 1:1'")
2172
+ expect(p.parse("I Pétrus 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I Pétrus 1:1'")
2173
+ expect(p.parse("1Pet 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1Pet 1:1'")
2174
+ p.include_apocrypha(false)
2175
+ expect(p.parse("1. PETRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1. PETRUS 1:1'")
2176
+ expect(p.parse("1. PÉTRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1. PÉTRUS 1:1'")
2177
+ expect(p.parse("I. PETRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I. PETRUS 1:1'")
2178
+ expect(p.parse("I. PÉTRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I. PÉTRUS 1:1'")
2179
+ expect(p.parse("1 PETRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 PETRUS 1:1'")
2180
+ expect(p.parse("1 PÉTRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 PÉTRUS 1:1'")
2181
+ expect(p.parse("I PETRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I PETRUS 1:1'")
2182
+ expect(p.parse("I PÉTRUS 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'I PÉTRUS 1:1'")
2183
+ expect(p.parse("1PET 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1PET 1:1'")
2184
+ ;
2185
+ return true;
2186
+ });
2187
+ });
2188
+
2189
+ describe("Localized book Jude (jv)", function() {
2190
+ var p;
2191
+ p = {};
2192
+ beforeEach(function() {
2193
+ p = new bcv_parser();
2194
+ p.set_options({
2195
+ book_alone_strategy: "ignore",
2196
+ book_sequence_strategy: "ignore",
2197
+ osis_compaction_strategy: "bc",
2198
+ captive_end_digits_strategy: "delete"
2199
+ });
2200
+ return p.include_apocrypha(true);
2201
+ });
2202
+ return it("should handle book: Jude (jv)", function() {
2203
+
2204
+ expect(p.parse("Layang Yudas 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Layang Yudas 1:1'")
2205
+ expect(p.parse("Yudas 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Yudas 1:1'")
2206
+ expect(p.parse("Jude 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Jude 1:1'")
2207
+ p.include_apocrypha(false)
2208
+ expect(p.parse("LAYANG YUDAS 1:1").osis()).toEqual("Jude.1.1", "parsing: 'LAYANG YUDAS 1:1'")
2209
+ expect(p.parse("YUDAS 1:1").osis()).toEqual("Jude.1.1", "parsing: 'YUDAS 1:1'")
2210
+ expect(p.parse("JUDE 1:1").osis()).toEqual("Jude.1.1", "parsing: 'JUDE 1:1'")
2211
+ ;
2212
+ return true;
2213
+ });
2214
+ });
2215
+
2216
+ describe("Localized book Tob (jv)", function() {
2217
+ var p;
2218
+ p = {};
2219
+ beforeEach(function() {
2220
+ p = new bcv_parser();
2221
+ p.set_options({
2222
+ book_alone_strategy: "ignore",
2223
+ book_sequence_strategy: "ignore",
2224
+ osis_compaction_strategy: "bc",
2225
+ captive_end_digits_strategy: "delete"
2226
+ });
2227
+ return p.include_apocrypha(true);
2228
+ });
2229
+ return it("should handle book: Tob (jv)", function() {
2230
+
2231
+ expect(p.parse("Tobias 1:1").osis()).toEqual("Tob.1.1", "parsing: 'Tobias 1:1'")
2232
+ expect(p.parse("Tobit 1:1").osis()).toEqual("Tob.1.1", "parsing: 'Tobit 1:1'")
2233
+ expect(p.parse("Tob 1:1").osis()).toEqual("Tob.1.1", "parsing: 'Tob 1:1'")
2234
+ ;
2235
+ return true;
2236
+ });
2237
+ });
2238
+
2239
+ describe("Localized book Jdt (jv)", function() {
2240
+ var p;
2241
+ p = {};
2242
+ beforeEach(function() {
2243
+ p = new bcv_parser();
2244
+ p.set_options({
2245
+ book_alone_strategy: "ignore",
2246
+ book_sequence_strategy: "ignore",
2247
+ osis_compaction_strategy: "bc",
2248
+ captive_end_digits_strategy: "delete"
2249
+ });
2250
+ return p.include_apocrypha(true);
2251
+ });
2252
+ return it("should handle book: Jdt (jv)", function() {
2253
+
2254
+ expect(p.parse("Kitab Yudit 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'Kitab Yudit 1:1'")
2255
+ expect(p.parse("Judith 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'Judith 1:1'")
2256
+ expect(p.parse("Yudit 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'Yudit 1:1'")
2257
+ expect(p.parse("Jdt 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'Jdt 1:1'")
2258
+ ;
2259
+ return true;
2260
+ });
2261
+ });
2262
+
2263
+ describe("Localized book Bar (jv)", function() {
2264
+ var p;
2265
+ p = {};
2266
+ beforeEach(function() {
2267
+ p = new bcv_parser();
2268
+ p.set_options({
2269
+ book_alone_strategy: "ignore",
2270
+ book_sequence_strategy: "ignore",
2271
+ osis_compaction_strategy: "bc",
2272
+ captive_end_digits_strategy: "delete"
2273
+ });
2274
+ return p.include_apocrypha(true);
2275
+ });
2276
+ return it("should handle book: Bar (jv)", function() {
2277
+
2278
+ expect(p.parse("Kitab Barukh 1:1").osis()).toEqual("Bar.1.1", "parsing: 'Kitab Barukh 1:1'")
2279
+ expect(p.parse("Barukh 1:1").osis()).toEqual("Bar.1.1", "parsing: 'Barukh 1:1'")
2280
+ expect(p.parse("Bar 1:1").osis()).toEqual("Bar.1.1", "parsing: 'Bar 1:1'")
2281
+ ;
2282
+ return true;
2283
+ });
2284
+ });
2285
+
2286
+ describe("Localized book Sus (jv)", function() {
2287
+ var p;
2288
+ p = {};
2289
+ beforeEach(function() {
2290
+ p = new bcv_parser();
2291
+ p.set_options({
2292
+ book_alone_strategy: "ignore",
2293
+ book_sequence_strategy: "ignore",
2294
+ osis_compaction_strategy: "bc",
2295
+ captive_end_digits_strategy: "delete"
2296
+ });
2297
+ return p.include_apocrypha(true);
2298
+ });
2299
+ return it("should handle book: Sus (jv)", function() {
2300
+
2301
+ expect(p.parse("Sus 1:1").osis()).toEqual("Sus.1.1", "parsing: 'Sus 1:1'")
2302
+ ;
2303
+ return true;
2304
+ });
2305
+ });
2306
+
2307
+ describe("Localized book 2Macc (jv)", function() {
2308
+ var p;
2309
+ p = {};
2310
+ beforeEach(function() {
2311
+ p = new bcv_parser();
2312
+ p.set_options({
2313
+ book_alone_strategy: "ignore",
2314
+ book_sequence_strategy: "ignore",
2315
+ osis_compaction_strategy: "bc",
2316
+ captive_end_digits_strategy: "delete"
2317
+ });
2318
+ return p.include_apocrypha(true);
2319
+ });
2320
+ return it("should handle book: 2Macc (jv)", function() {
2321
+
2322
+ expect(p.parse("II. Makabe 1:1").osis()).toEqual("2Macc.1.1", "parsing: 'II. Makabe 1:1'")
2323
+ expect(p.parse("2. Makabe 1:1").osis()).toEqual("2Macc.1.1", "parsing: '2. Makabe 1:1'")
2324
+ expect(p.parse("II Makabe 1:1").osis()).toEqual("2Macc.1.1", "parsing: 'II Makabe 1:1'")
2325
+ expect(p.parse("2 Makabe 1:1").osis()).toEqual("2Macc.1.1", "parsing: '2 Makabe 1:1'")
2326
+ expect(p.parse("2Macc 1:1").osis()).toEqual("2Macc.1.1", "parsing: '2Macc 1:1'")
2327
+ ;
2328
+ return true;
2329
+ });
2330
+ });
2331
+
2332
+ describe("Localized book 3Macc (jv)", function() {
2333
+ var p;
2334
+ p = {};
2335
+ beforeEach(function() {
2336
+ p = new bcv_parser();
2337
+ p.set_options({
2338
+ book_alone_strategy: "ignore",
2339
+ book_sequence_strategy: "ignore",
2340
+ osis_compaction_strategy: "bc",
2341
+ captive_end_digits_strategy: "delete"
2342
+ });
2343
+ return p.include_apocrypha(true);
2344
+ });
2345
+ return it("should handle book: 3Macc (jv)", function() {
2346
+
2347
+ expect(p.parse("III. Makabe 1:1").osis()).toEqual("3Macc.1.1", "parsing: 'III. Makabe 1:1'")
2348
+ expect(p.parse("III Makabe 1:1").osis()).toEqual("3Macc.1.1", "parsing: 'III Makabe 1:1'")
2349
+ expect(p.parse("3. Makabe 1:1").osis()).toEqual("3Macc.1.1", "parsing: '3. Makabe 1:1'")
2350
+ expect(p.parse("3 Makabe 1:1").osis()).toEqual("3Macc.1.1", "parsing: '3 Makabe 1:1'")
2351
+ expect(p.parse("3Macc 1:1").osis()).toEqual("3Macc.1.1", "parsing: '3Macc 1:1'")
2352
+ ;
2353
+ return true;
2354
+ });
2355
+ });
2356
+
2357
+ describe("Localized book 4Macc (jv)", function() {
2358
+ var p;
2359
+ p = {};
2360
+ beforeEach(function() {
2361
+ p = new bcv_parser();
2362
+ p.set_options({
2363
+ book_alone_strategy: "ignore",
2364
+ book_sequence_strategy: "ignore",
2365
+ osis_compaction_strategy: "bc",
2366
+ captive_end_digits_strategy: "delete"
2367
+ });
2368
+ return p.include_apocrypha(true);
2369
+ });
2370
+ return it("should handle book: 4Macc (jv)", function() {
2371
+
2372
+ expect(p.parse("IV. Makabe 1:1").osis()).toEqual("4Macc.1.1", "parsing: 'IV. Makabe 1:1'")
2373
+ expect(p.parse("4. Makabe 1:1").osis()).toEqual("4Macc.1.1", "parsing: '4. Makabe 1:1'")
2374
+ expect(p.parse("IV Makabe 1:1").osis()).toEqual("4Macc.1.1", "parsing: 'IV Makabe 1:1'")
2375
+ expect(p.parse("4 Makabe 1:1").osis()).toEqual("4Macc.1.1", "parsing: '4 Makabe 1:1'")
2376
+ expect(p.parse("4Macc 1:1").osis()).toEqual("4Macc.1.1", "parsing: '4Macc 1:1'")
2377
+ ;
2378
+ return true;
2379
+ });
2380
+ });
2381
+
2382
+ describe("Localized book 1Macc (jv)", function() {
2383
+ var p;
2384
+ p = {};
2385
+ beforeEach(function() {
2386
+ p = new bcv_parser();
2387
+ p.set_options({
2388
+ book_alone_strategy: "ignore",
2389
+ book_sequence_strategy: "ignore",
2390
+ osis_compaction_strategy: "bc",
2391
+ captive_end_digits_strategy: "delete"
2392
+ });
2393
+ return p.include_apocrypha(true);
2394
+ });
2395
+ return it("should handle book: 1Macc (jv)", function() {
2396
+
2397
+ expect(p.parse("1. Makabe 1:1").osis()).toEqual("1Macc.1.1", "parsing: '1. Makabe 1:1'")
2398
+ expect(p.parse("I. Makabe 1:1").osis()).toEqual("1Macc.1.1", "parsing: 'I. Makabe 1:1'")
2399
+ expect(p.parse("1 Makabe 1:1").osis()).toEqual("1Macc.1.1", "parsing: '1 Makabe 1:1'")
2400
+ expect(p.parse("I Makabe 1:1").osis()).toEqual("1Macc.1.1", "parsing: 'I Makabe 1:1'")
2401
+ expect(p.parse("1Macc 1:1").osis()).toEqual("1Macc.1.1", "parsing: '1Macc 1:1'")
2402
+ ;
2403
+ return true;
2404
+ });
2405
+ });
2406
+
2407
+ describe("Miscellaneous tests", function() {
2408
+ var p;
2409
+ p = {};
2410
+ beforeEach(function() {
2411
+ p = new bcv_parser();
2412
+ p.set_options({
2413
+ book_alone_strategy: "ignore",
2414
+ book_sequence_strategy: "ignore",
2415
+ osis_compaction_strategy: "bc",
2416
+ captive_end_digits_strategy: "delete"
2417
+ });
2418
+ return p.include_apocrypha(true);
2419
+ });
2420
+ it("should return the expected language", function() {
2421
+ return expect(p.languages).toEqual(["jv"]);
2422
+ });
2423
+ it("should handle ranges (jv)", function() {
2424
+ expect(p.parse("Titus 1:1 - 2").osis()).toEqual("Titus.1.1-Titus.1.2", "parsing: 'Titus 1:1 - 2'");
2425
+ expect(p.parse("Matt 1-2").osis()).toEqual("Matt.1-Matt.2", "parsing: 'Matt 1-2'");
2426
+ return expect(p.parse("Phlm 2 - 3").osis()).toEqual("Phlm.1.2-Phlm.1.3", "parsing: 'Phlm 2 - 3'");
2427
+ });
2428
+ it("should handle chapters (jv)", function() {
2429
+ expect(p.parse("Titus 1:1, bab 2").osis()).toEqual("Titus.1.1,Titus.2", "parsing: 'Titus 1:1, bab 2'");
2430
+ expect(p.parse("Matt 3:4 BAB 6").osis()).toEqual("Matt.3.4,Matt.6", "parsing: 'Matt 3:4 BAB 6'");
2431
+ expect(p.parse("Titus 1:1, pasal 2").osis()).toEqual("Titus.1.1,Titus.2", "parsing: 'Titus 1:1, pasal 2'");
2432
+ return expect(p.parse("Matt 3:4 PASAL 6").osis()).toEqual("Matt.3.4,Matt.6", "parsing: 'Matt 3:4 PASAL 6'");
2433
+ });
2434
+ it("should handle verses (jv)", function() {
2435
+ expect(p.parse("Exod 1:1 ayat 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 ayat 3'");
2436
+ return expect(p.parse("Phlm AYAT 6").osis()).toEqual("Phlm.1.6", "parsing: 'Phlm AYAT 6'");
2437
+ });
2438
+ it("should handle 'and' (jv)", function() {
2439
+ expect(p.parse("Exod 1:1 & 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 & 3'");
2440
+ return expect(p.parse("Phlm 2 & 6").osis()).toEqual("Phlm.1.2,Phlm.1.6", "parsing: 'Phlm 2 & 6'");
2441
+ });
2442
+ it("should handle titles (jv)", function() {
2443
+ expect(p.parse("Ps 3 title, 4:2, 5:title").osis()).toEqual("Ps.3.1,Ps.4.2,Ps.5.1", "parsing: 'Ps 3 title, 4:2, 5:title'");
2444
+ return expect(p.parse("PS 3 TITLE, 4:2, 5:TITLE").osis()).toEqual("Ps.3.1,Ps.4.2,Ps.5.1", "parsing: 'PS 3 TITLE, 4:2, 5:TITLE'");
2445
+ });
2446
+ it("should handle 'ff' (jv)", function() {
2447
+ expect(p.parse("Rev 3ff, 4:2ff").osis()).toEqual("Rev.3-Rev.22,Rev.4.2-Rev.4.11", "parsing: 'Rev 3ff, 4:2ff'");
2448
+ return expect(p.parse("REV 3 FF, 4:2 FF").osis()).toEqual("Rev.3-Rev.22,Rev.4.2-Rev.4.11", "parsing: 'REV 3 FF, 4:2 FF'");
2449
+ });
2450
+ it("should handle translations (jv)", function() {
2451
+ expect(p.parse("Lev 1 (JVNT)").osis_and_translations()).toEqual([["Lev.1", "JVNT"]]);
2452
+ return expect(p.parse("lev 1 jvnt").osis_and_translations()).toEqual([["Lev.1", "JVNT"]]);
2453
+ });
2454
+ it("should handle book ranges (jv)", function() {
2455
+ p.set_options({
2456
+ book_alone_strategy: "full",
2457
+ book_range_strategy: "include"
2458
+ });
2459
+ return expect(p.parse("I - III Yohanes").osis()).toEqual("1John.1-3John.1", "parsing: 'I - III Yohanes'");
2460
+ });
2461
+ return it("should handle boundaries (jv)", function() {
2462
+ p.set_options({
2463
+ book_alone_strategy: "full"
2464
+ });
2465
+ expect(p.parse("\u2014Matt\u2014").osis()).toEqual("Matt.1-Matt.28", "parsing: '\u2014Matt\u2014'");
2466
+ return expect(p.parse("\u201cMatt 1:1\u201d").osis()).toEqual("Matt.1.1", "parsing: '\u201cMatt 1:1\u201d'");
2467
+ });
2468
+ });
2469
+
2470
+ }).call(this);