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,2460 @@
1
+ (function() {
2
+ var bcv_parser;
3
+
4
+ bcv_parser = require("../../dist/pa-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 (pa)", 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 (pa)", function() {
86
+
87
+ expect(p.parse("utpat 1:1").osis()).toEqual("Gen.1.1", "parsing: 'utpat 1:1'")
88
+ expect(p.parse("ਉਤਪਤ 1:1").osis()).toEqual("Gen.1.1", "parsing: 'ਉਤਪਤ 1:1'")
89
+ expect(p.parse("Gen 1:1").osis()).toEqual("Gen.1.1", "parsing: 'Gen 1:1'")
90
+ p.include_apocrypha(false)
91
+ expect(p.parse("UTPAT 1:1").osis()).toEqual("Gen.1.1", "parsing: 'UTPAT 1:1'")
92
+ expect(p.parse("ਉਤਪਤ 1:1").osis()).toEqual("Gen.1.1", "parsing: 'ਉਤਪਤ 1:1'")
93
+ expect(p.parse("GEN 1:1").osis()).toEqual("Gen.1.1", "parsing: 'GEN 1:1'")
94
+ ;
95
+ return true;
96
+ });
97
+ });
98
+
99
+ describe("Localized book Exod (pa)", function() {
100
+ var p;
101
+ p = {};
102
+ beforeEach(function() {
103
+ p = new bcv_parser();
104
+ p.set_options({
105
+ book_alone_strategy: "ignore",
106
+ book_sequence_strategy: "ignore",
107
+ osis_compaction_strategy: "bc",
108
+ captive_end_digits_strategy: "delete"
109
+ });
110
+ return p.include_apocrypha(true);
111
+ });
112
+ return it("should handle book: Exod (pa)", function() {
113
+
114
+ expect(p.parse("Exod 1:1").osis()).toEqual("Exod.1.1", "parsing: 'Exod 1:1'")
115
+ expect(p.parse("kūč 1:1").osis()).toEqual("Exod.1.1", "parsing: 'kūč 1:1'")
116
+ expect(p.parse("ਕੂਚ 1:1").osis()).toEqual("Exod.1.1", "parsing: 'ਕੂਚ 1:1'")
117
+ p.include_apocrypha(false)
118
+ expect(p.parse("EXOD 1:1").osis()).toEqual("Exod.1.1", "parsing: 'EXOD 1:1'")
119
+ expect(p.parse("KŪČ 1:1").osis()).toEqual("Exod.1.1", "parsing: 'KŪČ 1:1'")
120
+ expect(p.parse("ਕੂਚ 1:1").osis()).toEqual("Exod.1.1", "parsing: 'ਕੂਚ 1:1'")
121
+ ;
122
+ return true;
123
+ });
124
+ });
125
+
126
+ describe("Localized book Bel (pa)", function() {
127
+ var p;
128
+ p = {};
129
+ beforeEach(function() {
130
+ p = new bcv_parser();
131
+ p.set_options({
132
+ book_alone_strategy: "ignore",
133
+ book_sequence_strategy: "ignore",
134
+ osis_compaction_strategy: "bc",
135
+ captive_end_digits_strategy: "delete"
136
+ });
137
+ return p.include_apocrypha(true);
138
+ });
139
+ return it("should handle book: Bel (pa)", function() {
140
+
141
+ expect(p.parse("Bel 1:1").osis()).toEqual("Bel.1.1", "parsing: 'Bel 1:1'")
142
+ ;
143
+ return true;
144
+ });
145
+ });
146
+
147
+ describe("Localized book Lev (pa)", function() {
148
+ var p;
149
+ p = {};
150
+ beforeEach(function() {
151
+ p = new bcv_parser();
152
+ p.set_options({
153
+ book_alone_strategy: "ignore",
154
+ book_sequence_strategy: "ignore",
155
+ osis_compaction_strategy: "bc",
156
+ captive_end_digits_strategy: "delete"
157
+ });
158
+ return p.include_apocrypha(true);
159
+ });
160
+ return it("should handle book: Lev (pa)", function() {
161
+
162
+ expect(p.parse("levīāṃ dī potʰī 1:1").osis()).toEqual("Lev.1.1", "parsing: 'levīāṃ dī potʰī 1:1'")
163
+ expect(p.parse("ਲੇਵੀਆਂ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ਲੇਵੀਆਂ ਦੀ ਪੋਥੀ 1:1'")
164
+ expect(p.parse("levīāṃ 1:1").osis()).toEqual("Lev.1.1", "parsing: 'levīāṃ 1:1'")
165
+ expect(p.parse("ਲੇਵੀਆਂ 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ਲੇਵੀਆਂ 1:1'")
166
+ expect(p.parse("Lev 1:1").osis()).toEqual("Lev.1.1", "parsing: 'Lev 1:1'")
167
+ p.include_apocrypha(false)
168
+ expect(p.parse("LEVĪĀṂ DĪ POTʰĪ 1:1").osis()).toEqual("Lev.1.1", "parsing: 'LEVĪĀṂ DĪ POTʰĪ 1:1'")
169
+ expect(p.parse("ਲੇਵੀਆਂ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ਲੇਵੀਆਂ ਦੀ ਪੋਥੀ 1:1'")
170
+ expect(p.parse("LEVĪĀṂ 1:1").osis()).toEqual("Lev.1.1", "parsing: 'LEVĪĀṂ 1:1'")
171
+ expect(p.parse("ਲੇਵੀਆਂ 1:1").osis()).toEqual("Lev.1.1", "parsing: 'ਲੇਵੀਆਂ 1:1'")
172
+ expect(p.parse("LEV 1:1").osis()).toEqual("Lev.1.1", "parsing: 'LEV 1:1'")
173
+ ;
174
+ return true;
175
+ });
176
+ });
177
+
178
+ describe("Localized book Num (pa)", function() {
179
+ var p;
180
+ p = {};
181
+ beforeEach(function() {
182
+ p = new bcv_parser();
183
+ p.set_options({
184
+ book_alone_strategy: "ignore",
185
+ book_sequence_strategy: "ignore",
186
+ osis_compaction_strategy: "bc",
187
+ captive_end_digits_strategy: "delete"
188
+ });
189
+ return p.include_apocrypha(true);
190
+ });
191
+ return it("should handle book: Num (pa)", function() {
192
+
193
+ expect(p.parse("giṇtī 1:1").osis()).toEqual("Num.1.1", "parsing: 'giṇtī 1:1'")
194
+ expect(p.parse("ਗਿਣਤੀ 1:1").osis()).toEqual("Num.1.1", "parsing: 'ਗਿਣਤੀ 1:1'")
195
+ expect(p.parse("Num 1:1").osis()).toEqual("Num.1.1", "parsing: 'Num 1:1'")
196
+ p.include_apocrypha(false)
197
+ expect(p.parse("GIṆTĪ 1:1").osis()).toEqual("Num.1.1", "parsing: 'GIṆTĪ 1:1'")
198
+ expect(p.parse("ਗਿਣਤੀ 1:1").osis()).toEqual("Num.1.1", "parsing: 'ਗਿਣਤੀ 1:1'")
199
+ expect(p.parse("NUM 1:1").osis()).toEqual("Num.1.1", "parsing: 'NUM 1:1'")
200
+ ;
201
+ return true;
202
+ });
203
+ });
204
+
205
+ describe("Localized book Sir (pa)", function() {
206
+ var p;
207
+ p = {};
208
+ beforeEach(function() {
209
+ p = new bcv_parser();
210
+ p.set_options({
211
+ book_alone_strategy: "ignore",
212
+ book_sequence_strategy: "ignore",
213
+ osis_compaction_strategy: "bc",
214
+ captive_end_digits_strategy: "delete"
215
+ });
216
+ return p.include_apocrypha(true);
217
+ });
218
+ return it("should handle book: Sir (pa)", function() {
219
+
220
+ expect(p.parse("Sir 1:1").osis()).toEqual("Sir.1.1", "parsing: 'Sir 1:1'")
221
+ ;
222
+ return true;
223
+ });
224
+ });
225
+
226
+ describe("Localized book Wis (pa)", function() {
227
+ var p;
228
+ p = {};
229
+ beforeEach(function() {
230
+ p = new bcv_parser();
231
+ p.set_options({
232
+ book_alone_strategy: "ignore",
233
+ book_sequence_strategy: "ignore",
234
+ osis_compaction_strategy: "bc",
235
+ captive_end_digits_strategy: "delete"
236
+ });
237
+ return p.include_apocrypha(true);
238
+ });
239
+ return it("should handle book: Wis (pa)", function() {
240
+
241
+ expect(p.parse("Wis 1:1").osis()).toEqual("Wis.1.1", "parsing: 'Wis 1:1'")
242
+ ;
243
+ return true;
244
+ });
245
+ });
246
+
247
+ describe("Localized book Lam (pa)", function() {
248
+ var p;
249
+ p = {};
250
+ beforeEach(function() {
251
+ p = new bcv_parser();
252
+ p.set_options({
253
+ book_alone_strategy: "ignore",
254
+ book_sequence_strategy: "ignore",
255
+ osis_compaction_strategy: "bc",
256
+ captive_end_digits_strategy: "delete"
257
+ });
258
+ return p.include_apocrypha(true);
259
+ });
260
+ return it("should handle book: Lam (pa)", function() {
261
+
262
+ expect(p.parse("virlāp 1:1").osis()).toEqual("Lam.1.1", "parsing: 'virlāp 1:1'")
263
+ expect(p.parse("ਵਿਰਲਾਪ 1:1").osis()).toEqual("Lam.1.1", "parsing: 'ਵਿਰਲਾਪ 1:1'")
264
+ expect(p.parse("Lam 1:1").osis()).toEqual("Lam.1.1", "parsing: 'Lam 1:1'")
265
+ p.include_apocrypha(false)
266
+ expect(p.parse("VIRLĀP 1:1").osis()).toEqual("Lam.1.1", "parsing: 'VIRLĀP 1:1'")
267
+ expect(p.parse("ਵਿਰਲਾਪ 1:1").osis()).toEqual("Lam.1.1", "parsing: 'ਵਿਰਲਾਪ 1:1'")
268
+ expect(p.parse("LAM 1:1").osis()).toEqual("Lam.1.1", "parsing: 'LAM 1:1'")
269
+ ;
270
+ return true;
271
+ });
272
+ });
273
+
274
+ describe("Localized book EpJer (pa)", function() {
275
+ var p;
276
+ p = {};
277
+ beforeEach(function() {
278
+ p = new bcv_parser();
279
+ p.set_options({
280
+ book_alone_strategy: "ignore",
281
+ book_sequence_strategy: "ignore",
282
+ osis_compaction_strategy: "bc",
283
+ captive_end_digits_strategy: "delete"
284
+ });
285
+ return p.include_apocrypha(true);
286
+ });
287
+ return it("should handle book: EpJer (pa)", function() {
288
+
289
+ expect(p.parse("EpJer 1:1").osis()).toEqual("EpJer.1.1", "parsing: 'EpJer 1:1'")
290
+ ;
291
+ return true;
292
+ });
293
+ });
294
+
295
+ describe("Localized book Rev (pa)", function() {
296
+ var p;
297
+ p = {};
298
+ beforeEach(function() {
299
+ p = new bcv_parser();
300
+ p.set_options({
301
+ book_alone_strategy: "ignore",
302
+ book_sequence_strategy: "ignore",
303
+ osis_compaction_strategy: "bc",
304
+ captive_end_digits_strategy: "delete"
305
+ });
306
+ return p.include_apocrypha(true);
307
+ });
308
+ return it("should handle book: Rev (pa)", function() {
309
+
310
+ expect(p.parse("yūhãnā de prakāš dī potʰī 1:1").osis()).toEqual("Rev.1.1", "parsing: 'yūhãnā de prakāš dī potʰī 1:1'")
311
+ expect(p.parse("ਯੂਹੰਨਾ ਦੇ ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Rev.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੇ ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1'")
312
+ expect(p.parse("yūhãnā de prakāš 1:1").osis()).toEqual("Rev.1.1", "parsing: 'yūhãnā de prakāš 1:1'")
313
+ expect(p.parse("ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Rev.1.1", "parsing: 'ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1'")
314
+ expect(p.parse("Rev 1:1").osis()).toEqual("Rev.1.1", "parsing: 'Rev 1:1'")
315
+ p.include_apocrypha(false)
316
+ expect(p.parse("YŪHÃNĀ DE PRAKĀŠ DĪ POTʰĪ 1:1").osis()).toEqual("Rev.1.1", "parsing: 'YŪHÃNĀ DE PRAKĀŠ DĪ POTʰĪ 1:1'")
317
+ expect(p.parse("ਯੂਹੰਨਾ ਦੇ ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Rev.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੇ ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1'")
318
+ expect(p.parse("YŪHÃNĀ DE PRAKĀŠ 1:1").osis()).toEqual("Rev.1.1", "parsing: 'YŪHÃNĀ DE PRAKĀŠ 1:1'")
319
+ expect(p.parse("ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Rev.1.1", "parsing: 'ਪਰਕਾਸ਼ ਦੀ ਪੋਥੀ 1:1'")
320
+ expect(p.parse("REV 1:1").osis()).toEqual("Rev.1.1", "parsing: 'REV 1:1'")
321
+ ;
322
+ return true;
323
+ });
324
+ });
325
+
326
+ describe("Localized book PrMan (pa)", function() {
327
+ var p;
328
+ p = {};
329
+ beforeEach(function() {
330
+ p = new bcv_parser();
331
+ p.set_options({
332
+ book_alone_strategy: "ignore",
333
+ book_sequence_strategy: "ignore",
334
+ osis_compaction_strategy: "bc",
335
+ captive_end_digits_strategy: "delete"
336
+ });
337
+ return p.include_apocrypha(true);
338
+ });
339
+ return it("should handle book: PrMan (pa)", function() {
340
+
341
+ expect(p.parse("PrMan 1:1").osis()).toEqual("PrMan.1.1", "parsing: 'PrMan 1:1'")
342
+ ;
343
+ return true;
344
+ });
345
+ });
346
+
347
+ describe("Localized book Deut (pa)", function() {
348
+ var p;
349
+ p = {};
350
+ beforeEach(function() {
351
+ p = new bcv_parser();
352
+ p.set_options({
353
+ book_alone_strategy: "ignore",
354
+ book_sequence_strategy: "ignore",
355
+ osis_compaction_strategy: "bc",
356
+ captive_end_digits_strategy: "delete"
357
+ });
358
+ return p.include_apocrypha(true);
359
+ });
360
+ return it("should handle book: Deut (pa)", function() {
361
+
362
+ expect(p.parse("bivastʰā sār 1:1").osis()).toEqual("Deut.1.1", "parsing: 'bivastʰā sār 1:1'")
363
+ expect(p.parse("ਬਿਵਸਥਾ ਸਾਰ 1:1").osis()).toEqual("Deut.1.1", "parsing: 'ਬਿਵਸਥਾ ਸਾਰ 1:1'")
364
+ expect(p.parse("ਬਿਵਸਥਾ 1:1").osis()).toEqual("Deut.1.1", "parsing: 'ਬਿਵਸਥਾ 1:1'")
365
+ expect(p.parse("Deut 1:1").osis()).toEqual("Deut.1.1", "parsing: 'Deut 1:1'")
366
+ p.include_apocrypha(false)
367
+ expect(p.parse("BIVASTʰĀ SĀR 1:1").osis()).toEqual("Deut.1.1", "parsing: 'BIVASTʰĀ SĀR 1:1'")
368
+ expect(p.parse("ਬਿਵਸਥਾ ਸਾਰ 1:1").osis()).toEqual("Deut.1.1", "parsing: 'ਬਿਵਸਥਾ ਸਾਰ 1:1'")
369
+ expect(p.parse("ਬਿਵਸਥਾ 1:1").osis()).toEqual("Deut.1.1", "parsing: 'ਬਿਵਸਥਾ 1:1'")
370
+ expect(p.parse("DEUT 1:1").osis()).toEqual("Deut.1.1", "parsing: 'DEUT 1:1'")
371
+ ;
372
+ return true;
373
+ });
374
+ });
375
+
376
+ describe("Localized book Josh (pa)", function() {
377
+ var p;
378
+ p = {};
379
+ beforeEach(function() {
380
+ p = new bcv_parser();
381
+ p.set_options({
382
+ book_alone_strategy: "ignore",
383
+ book_sequence_strategy: "ignore",
384
+ osis_compaction_strategy: "bc",
385
+ captive_end_digits_strategy: "delete"
386
+ });
387
+ return p.include_apocrypha(true);
388
+ });
389
+ return it("should handle book: Josh (pa)", function() {
390
+
391
+ expect(p.parse("yahošuā 1:1").osis()).toEqual("Josh.1.1", "parsing: 'yahošuā 1:1'")
392
+ expect(p.parse("ਯਹੋਸ਼ੁਆ 1:1").osis()).toEqual("Josh.1.1", "parsing: 'ਯਹੋਸ਼ੁਆ 1:1'")
393
+ expect(p.parse("Josh 1:1").osis()).toEqual("Josh.1.1", "parsing: 'Josh 1:1'")
394
+ p.include_apocrypha(false)
395
+ expect(p.parse("YAHOŠUĀ 1:1").osis()).toEqual("Josh.1.1", "parsing: 'YAHOŠUĀ 1:1'")
396
+ expect(p.parse("ਯਹੋਸ਼ੁਆ 1:1").osis()).toEqual("Josh.1.1", "parsing: 'ਯਹੋਸ਼ੁਆ 1:1'")
397
+ expect(p.parse("JOSH 1:1").osis()).toEqual("Josh.1.1", "parsing: 'JOSH 1:1'")
398
+ ;
399
+ return true;
400
+ });
401
+ });
402
+
403
+ describe("Localized book Judg (pa)", function() {
404
+ var p;
405
+ p = {};
406
+ beforeEach(function() {
407
+ p = new bcv_parser();
408
+ p.set_options({
409
+ book_alone_strategy: "ignore",
410
+ book_sequence_strategy: "ignore",
411
+ osis_compaction_strategy: "bc",
412
+ captive_end_digits_strategy: "delete"
413
+ });
414
+ return p.include_apocrypha(true);
415
+ });
416
+ return it("should handle book: Judg (pa)", function() {
417
+
418
+ expect(p.parse("niāīāṃ dī potʰī 1:1").osis()).toEqual("Judg.1.1", "parsing: 'niāīāṃ dī potʰī 1:1'")
419
+ expect(p.parse("ਨਿਆਂਈਆਂ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Judg.1.1", "parsing: 'ਨਿਆਂਈਆਂ ਦੀ ਪੋਥੀ 1:1'")
420
+ expect(p.parse("ਨਿਆਈਆਂ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Judg.1.1", "parsing: 'ਨਿਆਈਆਂ ਦੀ ਪੋਥੀ 1:1'")
421
+ expect(p.parse("niāīāṃ 1:1").osis()).toEqual("Judg.1.1", "parsing: 'niāīāṃ 1:1'")
422
+ expect(p.parse("Judg 1:1").osis()).toEqual("Judg.1.1", "parsing: 'Judg 1:1'")
423
+ p.include_apocrypha(false)
424
+ expect(p.parse("NIĀĪĀṂ DĪ POTʰĪ 1:1").osis()).toEqual("Judg.1.1", "parsing: 'NIĀĪĀṂ DĪ POTʰĪ 1:1'")
425
+ expect(p.parse("ਨਿਆਂਈਆਂ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Judg.1.1", "parsing: 'ਨਿਆਂਈਆਂ ਦੀ ਪੋਥੀ 1:1'")
426
+ expect(p.parse("ਨਿਆਈਆਂ ਦੀ ਪੋਥੀ 1:1").osis()).toEqual("Judg.1.1", "parsing: 'ਨਿਆਈਆਂ ਦੀ ਪੋਥੀ 1:1'")
427
+ expect(p.parse("NIĀĪĀṂ 1:1").osis()).toEqual("Judg.1.1", "parsing: 'NIĀĪĀṂ 1:1'")
428
+ expect(p.parse("JUDG 1:1").osis()).toEqual("Judg.1.1", "parsing: 'JUDG 1:1'")
429
+ ;
430
+ return true;
431
+ });
432
+ });
433
+
434
+ describe("Localized book Ruth (pa)", function() {
435
+ var p;
436
+ p = {};
437
+ beforeEach(function() {
438
+ p = new bcv_parser();
439
+ p.set_options({
440
+ book_alone_strategy: "ignore",
441
+ book_sequence_strategy: "ignore",
442
+ osis_compaction_strategy: "bc",
443
+ captive_end_digits_strategy: "delete"
444
+ });
445
+ return p.include_apocrypha(true);
446
+ });
447
+ return it("should handle book: Ruth (pa)", function() {
448
+
449
+ expect(p.parse("Ruth 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'Ruth 1:1'")
450
+ expect(p.parse("rūtʰ 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'rūtʰ 1:1'")
451
+ expect(p.parse("ਰੂਥ 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'ਰੂਥ 1:1'")
452
+ p.include_apocrypha(false)
453
+ expect(p.parse("RUTH 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'RUTH 1:1'")
454
+ expect(p.parse("RŪTʰ 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'RŪTʰ 1:1'")
455
+ expect(p.parse("ਰੂਥ 1:1").osis()).toEqual("Ruth.1.1", "parsing: 'ਰੂਥ 1:1'")
456
+ ;
457
+ return true;
458
+ });
459
+ });
460
+
461
+ describe("Localized book 1Esd (pa)", function() {
462
+ var p;
463
+ p = {};
464
+ beforeEach(function() {
465
+ p = new bcv_parser();
466
+ p.set_options({
467
+ book_alone_strategy: "ignore",
468
+ book_sequence_strategy: "ignore",
469
+ osis_compaction_strategy: "bc",
470
+ captive_end_digits_strategy: "delete"
471
+ });
472
+ return p.include_apocrypha(true);
473
+ });
474
+ return it("should handle book: 1Esd (pa)", function() {
475
+
476
+ expect(p.parse("1Esd 1:1").osis()).toEqual("1Esd.1.1", "parsing: '1Esd 1:1'")
477
+ ;
478
+ return true;
479
+ });
480
+ });
481
+
482
+ describe("Localized book 2Esd (pa)", function() {
483
+ var p;
484
+ p = {};
485
+ beforeEach(function() {
486
+ p = new bcv_parser();
487
+ p.set_options({
488
+ book_alone_strategy: "ignore",
489
+ book_sequence_strategy: "ignore",
490
+ osis_compaction_strategy: "bc",
491
+ captive_end_digits_strategy: "delete"
492
+ });
493
+ return p.include_apocrypha(true);
494
+ });
495
+ return it("should handle book: 2Esd (pa)", function() {
496
+
497
+ expect(p.parse("2Esd 1:1").osis()).toEqual("2Esd.1.1", "parsing: '2Esd 1:1'")
498
+ ;
499
+ return true;
500
+ });
501
+ });
502
+
503
+ describe("Localized book Isa (pa)", function() {
504
+ var p;
505
+ p = {};
506
+ beforeEach(function() {
507
+ p = new bcv_parser();
508
+ p.set_options({
509
+ book_alone_strategy: "ignore",
510
+ book_sequence_strategy: "ignore",
511
+ osis_compaction_strategy: "bc",
512
+ captive_end_digits_strategy: "delete"
513
+ });
514
+ return p.include_apocrypha(true);
515
+ });
516
+ return it("should handle book: Isa (pa)", function() {
517
+
518
+ expect(p.parse("yasāyāh 1:1").osis()).toEqual("Isa.1.1", "parsing: 'yasāyāh 1:1'")
519
+ expect(p.parse("ਯਾਸਾਯਾਹ 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ਯਾਸਾਯਾਹ 1:1'")
520
+ expect(p.parse("ਯਸਾਯਾਹ 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ਯਸਾਯਾਹ 1:1'")
521
+ expect(p.parse("Isa 1:1").osis()).toEqual("Isa.1.1", "parsing: 'Isa 1:1'")
522
+ expect(p.parse("ਯਸਾ 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ਯਸਾ 1:1'")
523
+ p.include_apocrypha(false)
524
+ expect(p.parse("YASĀYĀH 1:1").osis()).toEqual("Isa.1.1", "parsing: 'YASĀYĀH 1:1'")
525
+ expect(p.parse("ਯਾਸਾਯਾਹ 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ਯਾਸਾਯਾਹ 1:1'")
526
+ expect(p.parse("ਯਸਾਯਾਹ 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ਯਸਾਯਾਹ 1:1'")
527
+ expect(p.parse("ISA 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ISA 1:1'")
528
+ expect(p.parse("ਯਸਾ 1:1").osis()).toEqual("Isa.1.1", "parsing: 'ਯਸਾ 1:1'")
529
+ ;
530
+ return true;
531
+ });
532
+ });
533
+
534
+ describe("Localized book 2Sam (pa)", function() {
535
+ var p;
536
+ p = {};
537
+ beforeEach(function() {
538
+ p = new bcv_parser();
539
+ p.set_options({
540
+ book_alone_strategy: "ignore",
541
+ book_sequence_strategy: "ignore",
542
+ osis_compaction_strategy: "bc",
543
+ captive_end_digits_strategy: "delete"
544
+ });
545
+ return p.include_apocrypha(true);
546
+ });
547
+ return it("should handle book: 2Sam (pa)", function() {
548
+
549
+ expect(p.parse("samūel dī dūjī potʰī 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'samūel dī dūjī potʰī 1:1'")
550
+ expect(p.parse("ਸਮੂਏਲ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'ਸਮੂਏਲ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1'")
551
+ expect(p.parse("2 samūel 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 samūel 1:1'")
552
+ expect(p.parse("2 ਸਮੂਏਲ 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 ਸਮੂਏਲ 1:1'")
553
+ expect(p.parse("2Sam 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2Sam 1:1'")
554
+ p.include_apocrypha(false)
555
+ expect(p.parse("SAMŪEL DĪ DŪJĪ POTʰĪ 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'SAMŪEL DĪ DŪJĪ POTʰĪ 1:1'")
556
+ expect(p.parse("ਸਮੂਏਲ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1").osis()).toEqual("2Sam.1.1", "parsing: 'ਸਮੂਏਲ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1'")
557
+ expect(p.parse("2 SAMŪEL 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 SAMŪEL 1:1'")
558
+ expect(p.parse("2 ਸਮੂਏਲ 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2 ਸਮੂਏਲ 1:1'")
559
+ expect(p.parse("2SAM 1:1").osis()).toEqual("2Sam.1.1", "parsing: '2SAM 1:1'")
560
+ ;
561
+ return true;
562
+ });
563
+ });
564
+
565
+ describe("Localized book 1Sam (pa)", function() {
566
+ var p;
567
+ p = {};
568
+ beforeEach(function() {
569
+ p = new bcv_parser();
570
+ p.set_options({
571
+ book_alone_strategy: "ignore",
572
+ book_sequence_strategy: "ignore",
573
+ osis_compaction_strategy: "bc",
574
+ captive_end_digits_strategy: "delete"
575
+ });
576
+ return p.include_apocrypha(true);
577
+ });
578
+ return it("should handle book: 1Sam (pa)", function() {
579
+
580
+ expect(p.parse("samūel dī pahilī potʰī 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'samūel dī pahilī potʰī 1:1'")
581
+ expect(p.parse("ਸਮੂਏਲ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'ਸਮੂਏਲ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1'")
582
+ expect(p.parse("1 samūel 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 samūel 1:1'")
583
+ expect(p.parse("1 ਸਮੂਏਲ 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 ਸਮੂਏਲ 1:1'")
584
+ expect(p.parse("1Sam 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1Sam 1:1'")
585
+ p.include_apocrypha(false)
586
+ expect(p.parse("SAMŪEL DĪ PAHILĪ POTʰĪ 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'SAMŪEL DĪ PAHILĪ POTʰĪ 1:1'")
587
+ expect(p.parse("ਸਮੂਏਲ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1").osis()).toEqual("1Sam.1.1", "parsing: 'ਸਮੂਏਲ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1'")
588
+ expect(p.parse("1 SAMŪEL 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 SAMŪEL 1:1'")
589
+ expect(p.parse("1 ਸਮੂਏਲ 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1 ਸਮੂਏਲ 1:1'")
590
+ expect(p.parse("1SAM 1:1").osis()).toEqual("1Sam.1.1", "parsing: '1SAM 1:1'")
591
+ ;
592
+ return true;
593
+ });
594
+ });
595
+
596
+ describe("Localized book 2Kgs (pa)", function() {
597
+ var p;
598
+ p = {};
599
+ beforeEach(function() {
600
+ p = new bcv_parser();
601
+ p.set_options({
602
+ book_alone_strategy: "ignore",
603
+ book_sequence_strategy: "ignore",
604
+ osis_compaction_strategy: "bc",
605
+ captive_end_digits_strategy: "delete"
606
+ });
607
+ return p.include_apocrypha(true);
608
+ });
609
+ return it("should handle book: 2Kgs (pa)", function() {
610
+
611
+ expect(p.parse("rājiāṃ dī dūjī potʰī 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'rājiāṃ dī dūjī potʰī 1:1'")
612
+ expect(p.parse("ਰਾਜਿਆਂ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'ਰਾਜਿਆਂ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1'")
613
+ expect(p.parse("2 rājiāṃ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 rājiāṃ 1:1'")
614
+ expect(p.parse("2 ਰਾਜਿਆਂ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 ਰਾਜਿਆਂ 1:1'")
615
+ expect(p.parse("2Kgs 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2Kgs 1:1'")
616
+ p.include_apocrypha(false)
617
+ expect(p.parse("RĀJIĀṂ DĪ DŪJĪ POTʰĪ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'RĀJIĀṂ DĪ DŪJĪ POTʰĪ 1:1'")
618
+ expect(p.parse("ਰਾਜਿਆਂ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: 'ਰਾਜਿਆਂ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1'")
619
+ expect(p.parse("2 RĀJIĀṂ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 RĀJIĀṂ 1:1'")
620
+ expect(p.parse("2 ਰਾਜਿਆਂ 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2 ਰਾਜਿਆਂ 1:1'")
621
+ expect(p.parse("2KGS 1:1").osis()).toEqual("2Kgs.1.1", "parsing: '2KGS 1:1'")
622
+ ;
623
+ return true;
624
+ });
625
+ });
626
+
627
+ describe("Localized book 1Kgs (pa)", function() {
628
+ var p;
629
+ p = {};
630
+ beforeEach(function() {
631
+ p = new bcv_parser();
632
+ p.set_options({
633
+ book_alone_strategy: "ignore",
634
+ book_sequence_strategy: "ignore",
635
+ osis_compaction_strategy: "bc",
636
+ captive_end_digits_strategy: "delete"
637
+ });
638
+ return p.include_apocrypha(true);
639
+ });
640
+ return it("should handle book: 1Kgs (pa)", function() {
641
+
642
+ expect(p.parse("rājiāṃ dī pahilī potʰī 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'rājiāṃ dī pahilī potʰī 1:1'")
643
+ expect(p.parse("ਰਾਜਿਆਂ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'ਰਾਜਿਆਂ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1'")
644
+ expect(p.parse("1 rājiāṃ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 rājiāṃ 1:1'")
645
+ expect(p.parse("1 ਰਾਜਿਆਂ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 ਰਾਜਿਆਂ 1:1'")
646
+ expect(p.parse("1Kgs 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1Kgs 1:1'")
647
+ p.include_apocrypha(false)
648
+ expect(p.parse("RĀJIĀṂ DĪ PAHILĪ POTʰĪ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'RĀJIĀṂ DĪ PAHILĪ POTʰĪ 1:1'")
649
+ expect(p.parse("ਰਾਜਿਆਂ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: 'ਰਾਜਿਆਂ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1'")
650
+ expect(p.parse("1 RĀJIĀṂ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 RĀJIĀṂ 1:1'")
651
+ expect(p.parse("1 ਰਾਜਿਆਂ 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1 ਰਾਜਿਆਂ 1:1'")
652
+ expect(p.parse("1KGS 1:1").osis()).toEqual("1Kgs.1.1", "parsing: '1KGS 1:1'")
653
+ ;
654
+ return true;
655
+ });
656
+ });
657
+
658
+ describe("Localized book 2Chr (pa)", function() {
659
+ var p;
660
+ p = {};
661
+ beforeEach(function() {
662
+ p = new bcv_parser();
663
+ p.set_options({
664
+ book_alone_strategy: "ignore",
665
+ book_sequence_strategy: "ignore",
666
+ osis_compaction_strategy: "bc",
667
+ captive_end_digits_strategy: "delete"
668
+ });
669
+ return p.include_apocrypha(true);
670
+ });
671
+ return it("should handle book: 2Chr (pa)", function() {
672
+
673
+ expect(p.parse("itahās dī dūjī potʰī 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'itahās dī dūjī potʰī 1:1'")
674
+ expect(p.parse("ਇਤਹਾਸ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'ਇਤਹਾਸ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1'")
675
+ expect(p.parse("2 itahās 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 itahās 1:1'")
676
+ expect(p.parse("2 ਇਤਹਾਸ 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 ਇਤਹਾਸ 1:1'")
677
+ expect(p.parse("2Chr 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2Chr 1:1'")
678
+ p.include_apocrypha(false)
679
+ expect(p.parse("ITAHĀS DĪ DŪJĪ POTʰĪ 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'ITAHĀS DĪ DŪJĪ POTʰĪ 1:1'")
680
+ expect(p.parse("ਇਤਹਾਸ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1").osis()).toEqual("2Chr.1.1", "parsing: 'ਇਤਹਾਸ ਦੀ ਦੂਜੀ ਪੋਥੀ 1:1'")
681
+ expect(p.parse("2 ITAHĀS 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 ITAHĀS 1:1'")
682
+ expect(p.parse("2 ਇਤਹਾਸ 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2 ਇਤਹਾਸ 1:1'")
683
+ expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1", "parsing: '2CHR 1:1'")
684
+ ;
685
+ return true;
686
+ });
687
+ });
688
+
689
+ describe("Localized book 1Chr (pa)", function() {
690
+ var p;
691
+ p = {};
692
+ beforeEach(function() {
693
+ p = new bcv_parser();
694
+ p.set_options({
695
+ book_alone_strategy: "ignore",
696
+ book_sequence_strategy: "ignore",
697
+ osis_compaction_strategy: "bc",
698
+ captive_end_digits_strategy: "delete"
699
+ });
700
+ return p.include_apocrypha(true);
701
+ });
702
+ return it("should handle book: 1Chr (pa)", function() {
703
+
704
+ expect(p.parse("itahās dī pahilī potʰī 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'itahās dī pahilī potʰī 1:1'")
705
+ expect(p.parse("ਇਤਹਾਸ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'ਇਤਹਾਸ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1'")
706
+ expect(p.parse("1 itahās 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 itahās 1:1'")
707
+ expect(p.parse("1 ਇਤਹਾਸ 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 ਇਤਹਾਸ 1:1'")
708
+ expect(p.parse("1Chr 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1Chr 1:1'")
709
+ p.include_apocrypha(false)
710
+ expect(p.parse("ITAHĀS DĪ PAHILĪ POTʰĪ 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'ITAHĀS DĪ PAHILĪ POTʰĪ 1:1'")
711
+ expect(p.parse("ਇਤਹਾਸ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1").osis()).toEqual("1Chr.1.1", "parsing: 'ਇਤਹਾਸ ਦੀ ਪਹਿਲੀ ਪੋਥੀ 1:1'")
712
+ expect(p.parse("1 ITAHĀS 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 ITAHĀS 1:1'")
713
+ expect(p.parse("1 ਇਤਹਾਸ 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1 ਇਤਹਾਸ 1:1'")
714
+ expect(p.parse("1CHR 1:1").osis()).toEqual("1Chr.1.1", "parsing: '1CHR 1:1'")
715
+ ;
716
+ return true;
717
+ });
718
+ });
719
+
720
+ describe("Localized book Ezra (pa)", function() {
721
+ var p;
722
+ p = {};
723
+ beforeEach(function() {
724
+ p = new bcv_parser();
725
+ p.set_options({
726
+ book_alone_strategy: "ignore",
727
+ book_sequence_strategy: "ignore",
728
+ osis_compaction_strategy: "bc",
729
+ captive_end_digits_strategy: "delete"
730
+ });
731
+ return p.include_apocrypha(true);
732
+ });
733
+ return it("should handle book: Ezra (pa)", function() {
734
+
735
+ expect(p.parse("ਅਜ਼ਰਾ 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'ਅਜ਼ਰਾ 1:1'")
736
+ expect(p.parse("Ezra 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'Ezra 1:1'")
737
+ expect(p.parse("azrā 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'azrā 1:1'")
738
+ p.include_apocrypha(false)
739
+ expect(p.parse("ਅਜ਼ਰਾ 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'ਅਜ਼ਰਾ 1:1'")
740
+ expect(p.parse("EZRA 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'EZRA 1:1'")
741
+ expect(p.parse("AZRĀ 1:1").osis()).toEqual("Ezra.1.1", "parsing: 'AZRĀ 1:1'")
742
+ ;
743
+ return true;
744
+ });
745
+ });
746
+
747
+ describe("Localized book Neh (pa)", function() {
748
+ var p;
749
+ p = {};
750
+ beforeEach(function() {
751
+ p = new bcv_parser();
752
+ p.set_options({
753
+ book_alone_strategy: "ignore",
754
+ book_sequence_strategy: "ignore",
755
+ osis_compaction_strategy: "bc",
756
+ captive_end_digits_strategy: "delete"
757
+ });
758
+ return p.include_apocrypha(true);
759
+ });
760
+ return it("should handle book: Neh (pa)", function() {
761
+
762
+ expect(p.parse("nahamyāh 1:1").osis()).toEqual("Neh.1.1", "parsing: 'nahamyāh 1:1'")
763
+ expect(p.parse("ਨਹਮਯਾਹ 1:1").osis()).toEqual("Neh.1.1", "parsing: 'ਨਹਮਯਾਹ 1:1'")
764
+ expect(p.parse("Neh 1:1").osis()).toEqual("Neh.1.1", "parsing: 'Neh 1:1'")
765
+ p.include_apocrypha(false)
766
+ expect(p.parse("NAHAMYĀH 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NAHAMYĀH 1:1'")
767
+ expect(p.parse("ਨਹਮਯਾਹ 1:1").osis()).toEqual("Neh.1.1", "parsing: 'ਨਹਮਯਾਹ 1:1'")
768
+ expect(p.parse("NEH 1:1").osis()).toEqual("Neh.1.1", "parsing: 'NEH 1:1'")
769
+ ;
770
+ return true;
771
+ });
772
+ });
773
+
774
+ describe("Localized book GkEsth (pa)", function() {
775
+ var p;
776
+ p = {};
777
+ beforeEach(function() {
778
+ p = new bcv_parser();
779
+ p.set_options({
780
+ book_alone_strategy: "ignore",
781
+ book_sequence_strategy: "ignore",
782
+ osis_compaction_strategy: "bc",
783
+ captive_end_digits_strategy: "delete"
784
+ });
785
+ return p.include_apocrypha(true);
786
+ });
787
+ return it("should handle book: GkEsth (pa)", function() {
788
+
789
+ expect(p.parse("GkEsth 1:1").osis()).toEqual("GkEsth.1.1", "parsing: 'GkEsth 1:1'")
790
+ ;
791
+ return true;
792
+ });
793
+ });
794
+
795
+ describe("Localized book Esth (pa)", function() {
796
+ var p;
797
+ p = {};
798
+ beforeEach(function() {
799
+ p = new bcv_parser();
800
+ p.set_options({
801
+ book_alone_strategy: "ignore",
802
+ book_sequence_strategy: "ignore",
803
+ osis_compaction_strategy: "bc",
804
+ captive_end_digits_strategy: "delete"
805
+ });
806
+ return p.include_apocrypha(true);
807
+ });
808
+ return it("should handle book: Esth (pa)", function() {
809
+
810
+ expect(p.parse("astar 1:1").osis()).toEqual("Esth.1.1", "parsing: 'astar 1:1'")
811
+ expect(p.parse("Esth 1:1").osis()).toEqual("Esth.1.1", "parsing: 'Esth 1:1'")
812
+ expect(p.parse("ਅਸਤਰ 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ਅਸਤਰ 1:1'")
813
+ p.include_apocrypha(false)
814
+ expect(p.parse("ASTAR 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ASTAR 1:1'")
815
+ expect(p.parse("ESTH 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ESTH 1:1'")
816
+ expect(p.parse("ਅਸਤਰ 1:1").osis()).toEqual("Esth.1.1", "parsing: 'ਅਸਤਰ 1:1'")
817
+ ;
818
+ return true;
819
+ });
820
+ });
821
+
822
+ describe("Localized book Job (pa)", function() {
823
+ var p;
824
+ p = {};
825
+ beforeEach(function() {
826
+ p = new bcv_parser();
827
+ p.set_options({
828
+ book_alone_strategy: "ignore",
829
+ book_sequence_strategy: "ignore",
830
+ osis_compaction_strategy: "bc",
831
+ captive_end_digits_strategy: "delete"
832
+ });
833
+ return p.include_apocrypha(true);
834
+ });
835
+ return it("should handle book: Job (pa)", function() {
836
+
837
+ expect(p.parse("ayyūb 1:1").osis()).toEqual("Job.1.1", "parsing: 'ayyūb 1:1'")
838
+ expect(p.parse("ਅੱਯੂਬ 1:1").osis()).toEqual("Job.1.1", "parsing: 'ਅੱਯੂਬ 1:1'")
839
+ expect(p.parse("ਅਯੂਬ 1:1").osis()).toEqual("Job.1.1", "parsing: 'ਅਯੂਬ 1:1'")
840
+ expect(p.parse("Job 1:1").osis()).toEqual("Job.1.1", "parsing: 'Job 1:1'")
841
+ p.include_apocrypha(false)
842
+ expect(p.parse("AYYŪB 1:1").osis()).toEqual("Job.1.1", "parsing: 'AYYŪB 1:1'")
843
+ expect(p.parse("ਅੱਯੂਬ 1:1").osis()).toEqual("Job.1.1", "parsing: 'ਅੱਯੂਬ 1:1'")
844
+ expect(p.parse("ਅਯੂਬ 1:1").osis()).toEqual("Job.1.1", "parsing: 'ਅਯੂਬ 1:1'")
845
+ expect(p.parse("JOB 1:1").osis()).toEqual("Job.1.1", "parsing: 'JOB 1:1'")
846
+ ;
847
+ return true;
848
+ });
849
+ });
850
+
851
+ describe("Localized book Ps (pa)", function() {
852
+ var p;
853
+ p = {};
854
+ beforeEach(function() {
855
+ p = new bcv_parser();
856
+ p.set_options({
857
+ book_alone_strategy: "ignore",
858
+ book_sequence_strategy: "ignore",
859
+ osis_compaction_strategy: "bc",
860
+ captive_end_digits_strategy: "delete"
861
+ });
862
+ return p.include_apocrypha(true);
863
+ });
864
+ return it("should handle book: Ps (pa)", function() {
865
+
866
+ expect(p.parse("zabūr 1:1").osis()).toEqual("Ps.1.1", "parsing: 'zabūr 1:1'")
867
+ expect(p.parse("ਜ਼ਬੂਰ 1:1").osis()).toEqual("Ps.1.1", "parsing: 'ਜ਼ਬੂਰ 1:1'")
868
+ expect(p.parse("ਜਬੂਰ 1:1").osis()).toEqual("Ps.1.1", "parsing: 'ਜਬੂਰ 1:1'")
869
+ expect(p.parse("Ps 1:1").osis()).toEqual("Ps.1.1", "parsing: 'Ps 1:1'")
870
+ p.include_apocrypha(false)
871
+ expect(p.parse("ZABŪR 1:1").osis()).toEqual("Ps.1.1", "parsing: 'ZABŪR 1:1'")
872
+ expect(p.parse("ਜ਼ਬੂਰ 1:1").osis()).toEqual("Ps.1.1", "parsing: 'ਜ਼ਬੂਰ 1:1'")
873
+ expect(p.parse("ਜਬੂਰ 1:1").osis()).toEqual("Ps.1.1", "parsing: 'ਜਬੂਰ 1:1'")
874
+ expect(p.parse("PS 1:1").osis()).toEqual("Ps.1.1", "parsing: 'PS 1:1'")
875
+ ;
876
+ return true;
877
+ });
878
+ });
879
+
880
+ describe("Localized book PrAzar (pa)", function() {
881
+ var p;
882
+ p = {};
883
+ beforeEach(function() {
884
+ p = new bcv_parser();
885
+ p.set_options({
886
+ book_alone_strategy: "ignore",
887
+ book_sequence_strategy: "ignore",
888
+ osis_compaction_strategy: "bc",
889
+ captive_end_digits_strategy: "delete"
890
+ });
891
+ return p.include_apocrypha(true);
892
+ });
893
+ return it("should handle book: PrAzar (pa)", function() {
894
+
895
+ expect(p.parse("PrAzar 1:1").osis()).toEqual("PrAzar.1.1", "parsing: 'PrAzar 1:1'")
896
+ ;
897
+ return true;
898
+ });
899
+ });
900
+
901
+ describe("Localized book Prov (pa)", function() {
902
+ var p;
903
+ p = {};
904
+ beforeEach(function() {
905
+ p = new bcv_parser();
906
+ p.set_options({
907
+ book_alone_strategy: "ignore",
908
+ book_sequence_strategy: "ignore",
909
+ osis_compaction_strategy: "bc",
910
+ captive_end_digits_strategy: "delete"
911
+ });
912
+ return p.include_apocrypha(true);
913
+ });
914
+ return it("should handle book: Prov (pa)", function() {
915
+
916
+ expect(p.parse("kahāutāṃ 1:1").osis()).toEqual("Prov.1.1", "parsing: 'kahāutāṃ 1:1'")
917
+ expect(p.parse("ਕਹਾਉਂਤਾ 1:1").osis()).toEqual("Prov.1.1", "parsing: 'ਕਹਾਉਂਤਾ 1:1'")
918
+ expect(p.parse("ਕਹਾਉਤਾਂ 1:1").osis()).toEqual("Prov.1.1", "parsing: 'ਕਹਾਉਤਾਂ 1:1'")
919
+ expect(p.parse("Prov 1:1").osis()).toEqual("Prov.1.1", "parsing: 'Prov 1:1'")
920
+ p.include_apocrypha(false)
921
+ expect(p.parse("KAHĀUTĀṂ 1:1").osis()).toEqual("Prov.1.1", "parsing: 'KAHĀUTĀṂ 1:1'")
922
+ expect(p.parse("ਕਹਾਉਂਤਾ 1:1").osis()).toEqual("Prov.1.1", "parsing: 'ਕਹਾਉਂਤਾ 1:1'")
923
+ expect(p.parse("ਕਹਾਉਤਾਂ 1:1").osis()).toEqual("Prov.1.1", "parsing: 'ਕਹਾਉਤਾਂ 1:1'")
924
+ expect(p.parse("PROV 1:1").osis()).toEqual("Prov.1.1", "parsing: 'PROV 1:1'")
925
+ ;
926
+ return true;
927
+ });
928
+ });
929
+
930
+ describe("Localized book Eccl (pa)", function() {
931
+ var p;
932
+ p = {};
933
+ beforeEach(function() {
934
+ p = new bcv_parser();
935
+ p.set_options({
936
+ book_alone_strategy: "ignore",
937
+ book_sequence_strategy: "ignore",
938
+ osis_compaction_strategy: "bc",
939
+ captive_end_digits_strategy: "delete"
940
+ });
941
+ return p.include_apocrypha(true);
942
+ });
943
+ return it("should handle book: Eccl (pa)", function() {
944
+
945
+ expect(p.parse("upadešak 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'upadešak 1:1'")
946
+ expect(p.parse("ਉਪਦੇਸ਼ਕ 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ਉਪਦੇਸ਼ਕ 1:1'")
947
+ expect(p.parse("Eccl 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'Eccl 1:1'")
948
+ p.include_apocrypha(false)
949
+ expect(p.parse("UPADEŠAK 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'UPADEŠAK 1:1'")
950
+ expect(p.parse("ਉਪਦੇਸ਼ਕ 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ਉਪਦੇਸ਼ਕ 1:1'")
951
+ expect(p.parse("ECCL 1:1").osis()).toEqual("Eccl.1.1", "parsing: 'ECCL 1:1'")
952
+ ;
953
+ return true;
954
+ });
955
+ });
956
+
957
+ describe("Localized book SgThree (pa)", function() {
958
+ var p;
959
+ p = {};
960
+ beforeEach(function() {
961
+ p = new bcv_parser();
962
+ p.set_options({
963
+ book_alone_strategy: "ignore",
964
+ book_sequence_strategy: "ignore",
965
+ osis_compaction_strategy: "bc",
966
+ captive_end_digits_strategy: "delete"
967
+ });
968
+ return p.include_apocrypha(true);
969
+ });
970
+ return it("should handle book: SgThree (pa)", function() {
971
+
972
+ expect(p.parse("SgThree 1:1").osis()).toEqual("SgThree.1.1", "parsing: 'SgThree 1:1'")
973
+ ;
974
+ return true;
975
+ });
976
+ });
977
+
978
+ describe("Localized book Song (pa)", function() {
979
+ var p;
980
+ p = {};
981
+ beforeEach(function() {
982
+ p = new bcv_parser();
983
+ p.set_options({
984
+ book_alone_strategy: "ignore",
985
+ book_sequence_strategy: "ignore",
986
+ osis_compaction_strategy: "bc",
987
+ captive_end_digits_strategy: "delete"
988
+ });
989
+ return p.include_apocrypha(true);
990
+ });
991
+ return it("should handle book: Song (pa)", function() {
992
+
993
+ expect(p.parse("salemān dā gīt 1:1").osis()).toEqual("Song.1.1", "parsing: 'salemān dā gīt 1:1'")
994
+ expect(p.parse("ਸਲੇਮਾਨ ਦਾ ਗੀਤ 1:1").osis()).toEqual("Song.1.1", "parsing: 'ਸਲੇਮਾਨ ਦਾ ਗੀਤ 1:1'")
995
+ expect(p.parse("Song 1:1").osis()).toEqual("Song.1.1", "parsing: 'Song 1:1'")
996
+ p.include_apocrypha(false)
997
+ expect(p.parse("SALEMĀN DĀ GĪT 1:1").osis()).toEqual("Song.1.1", "parsing: 'SALEMĀN DĀ GĪT 1:1'")
998
+ expect(p.parse("ਸਲੇਮਾਨ ਦਾ ਗੀਤ 1:1").osis()).toEqual("Song.1.1", "parsing: 'ਸਲੇਮਾਨ ਦਾ ਗੀਤ 1:1'")
999
+ expect(p.parse("SONG 1:1").osis()).toEqual("Song.1.1", "parsing: 'SONG 1:1'")
1000
+ ;
1001
+ return true;
1002
+ });
1003
+ });
1004
+
1005
+ describe("Localized book Jer (pa)", function() {
1006
+ var p;
1007
+ p = {};
1008
+ beforeEach(function() {
1009
+ p = new bcv_parser();
1010
+ p.set_options({
1011
+ book_alone_strategy: "ignore",
1012
+ book_sequence_strategy: "ignore",
1013
+ osis_compaction_strategy: "bc",
1014
+ captive_end_digits_strategy: "delete"
1015
+ });
1016
+ return p.include_apocrypha(true);
1017
+ });
1018
+ return it("should handle book: Jer (pa)", function() {
1019
+
1020
+ expect(p.parse("yirmiyāh 1:1").osis()).toEqual("Jer.1.1", "parsing: 'yirmiyāh 1:1'")
1021
+ expect(p.parse("ਯਿਰਮਿਯਾਹ 1:1").osis()).toEqual("Jer.1.1", "parsing: 'ਯਿਰਮਿਯਾਹ 1:1'")
1022
+ expect(p.parse("Jer 1:1").osis()).toEqual("Jer.1.1", "parsing: 'Jer 1:1'")
1023
+ p.include_apocrypha(false)
1024
+ expect(p.parse("YIRMIYĀH 1:1").osis()).toEqual("Jer.1.1", "parsing: 'YIRMIYĀH 1:1'")
1025
+ expect(p.parse("ਯਿਰਮਿਯਾਹ 1:1").osis()).toEqual("Jer.1.1", "parsing: 'ਯਿਰਮਿਯਾਹ 1:1'")
1026
+ expect(p.parse("JER 1:1").osis()).toEqual("Jer.1.1", "parsing: 'JER 1:1'")
1027
+ ;
1028
+ return true;
1029
+ });
1030
+ });
1031
+
1032
+ describe("Localized book Ezek (pa)", function() {
1033
+ var p;
1034
+ p = {};
1035
+ beforeEach(function() {
1036
+ p = new bcv_parser();
1037
+ p.set_options({
1038
+ book_alone_strategy: "ignore",
1039
+ book_sequence_strategy: "ignore",
1040
+ osis_compaction_strategy: "bc",
1041
+ captive_end_digits_strategy: "delete"
1042
+ });
1043
+ return p.include_apocrypha(true);
1044
+ });
1045
+ return it("should handle book: Ezek (pa)", function() {
1046
+
1047
+ expect(p.parse("ਹਿਜ਼ਕੀਏਲ 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'ਹਿਜ਼ਕੀਏਲ 1:1'")
1048
+ expect(p.parse("hizkīel 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'hizkīel 1:1'")
1049
+ expect(p.parse("Ezek 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'Ezek 1:1'")
1050
+ p.include_apocrypha(false)
1051
+ expect(p.parse("ਹਿਜ਼ਕੀਏਲ 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'ਹਿਜ਼ਕੀਏਲ 1:1'")
1052
+ expect(p.parse("HIZKĪEL 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'HIZKĪEL 1:1'")
1053
+ expect(p.parse("EZEK 1:1").osis()).toEqual("Ezek.1.1", "parsing: 'EZEK 1:1'")
1054
+ ;
1055
+ return true;
1056
+ });
1057
+ });
1058
+
1059
+ describe("Localized book Dan (pa)", function() {
1060
+ var p;
1061
+ p = {};
1062
+ beforeEach(function() {
1063
+ p = new bcv_parser();
1064
+ p.set_options({
1065
+ book_alone_strategy: "ignore",
1066
+ book_sequence_strategy: "ignore",
1067
+ osis_compaction_strategy: "bc",
1068
+ captive_end_digits_strategy: "delete"
1069
+ });
1070
+ return p.include_apocrypha(true);
1071
+ });
1072
+ return it("should handle book: Dan (pa)", function() {
1073
+
1074
+ expect(p.parse("dānīel 1:1").osis()).toEqual("Dan.1.1", "parsing: 'dānīel 1:1'")
1075
+ expect(p.parse("ਦਾਨੀਏਲ 1:1").osis()).toEqual("Dan.1.1", "parsing: 'ਦਾਨੀਏਲ 1:1'")
1076
+ expect(p.parse("Dan 1:1").osis()).toEqual("Dan.1.1", "parsing: 'Dan 1:1'")
1077
+ p.include_apocrypha(false)
1078
+ expect(p.parse("DĀNĪEL 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DĀNĪEL 1:1'")
1079
+ expect(p.parse("ਦਾਨੀਏਲ 1:1").osis()).toEqual("Dan.1.1", "parsing: 'ਦਾਨੀਏਲ 1:1'")
1080
+ expect(p.parse("DAN 1:1").osis()).toEqual("Dan.1.1", "parsing: 'DAN 1:1'")
1081
+ ;
1082
+ return true;
1083
+ });
1084
+ });
1085
+
1086
+ describe("Localized book Hos (pa)", function() {
1087
+ var p;
1088
+ p = {};
1089
+ beforeEach(function() {
1090
+ p = new bcv_parser();
1091
+ p.set_options({
1092
+ book_alone_strategy: "ignore",
1093
+ book_sequence_strategy: "ignore",
1094
+ osis_compaction_strategy: "bc",
1095
+ captive_end_digits_strategy: "delete"
1096
+ });
1097
+ return p.include_apocrypha(true);
1098
+ });
1099
+ return it("should handle book: Hos (pa)", function() {
1100
+
1101
+ expect(p.parse("ਹੋਸ਼ੇਆ 1:1").osis()).toEqual("Hos.1.1", "parsing: 'ਹੋਸ਼ੇਆ 1:1'")
1102
+ expect(p.parse("hošeā 1:1").osis()).toEqual("Hos.1.1", "parsing: 'hošeā 1:1'")
1103
+ expect(p.parse("Hos 1:1").osis()).toEqual("Hos.1.1", "parsing: 'Hos 1:1'")
1104
+ p.include_apocrypha(false)
1105
+ expect(p.parse("ਹੋਸ਼ੇਆ 1:1").osis()).toEqual("Hos.1.1", "parsing: 'ਹੋਸ਼ੇਆ 1:1'")
1106
+ expect(p.parse("HOŠEĀ 1:1").osis()).toEqual("Hos.1.1", "parsing: 'HOŠEĀ 1:1'")
1107
+ expect(p.parse("HOS 1:1").osis()).toEqual("Hos.1.1", "parsing: 'HOS 1:1'")
1108
+ ;
1109
+ return true;
1110
+ });
1111
+ });
1112
+
1113
+ describe("Localized book Joel (pa)", function() {
1114
+ var p;
1115
+ p = {};
1116
+ beforeEach(function() {
1117
+ p = new bcv_parser();
1118
+ p.set_options({
1119
+ book_alone_strategy: "ignore",
1120
+ book_sequence_strategy: "ignore",
1121
+ osis_compaction_strategy: "bc",
1122
+ captive_end_digits_strategy: "delete"
1123
+ });
1124
+ return p.include_apocrypha(true);
1125
+ });
1126
+ return it("should handle book: Joel (pa)", function() {
1127
+
1128
+ expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Joel 1:1'")
1129
+ expect(p.parse("yoel 1:1").osis()).toEqual("Joel.1.1", "parsing: 'yoel 1:1'")
1130
+ expect(p.parse("ਜੋਏਲ 1:1").osis()).toEqual("Joel.1.1", "parsing: 'ਜੋਏਲ 1:1'")
1131
+ expect(p.parse("ਯੋਏਲ 1:1").osis()).toEqual("Joel.1.1", "parsing: 'ਯੋਏਲ 1:1'")
1132
+ p.include_apocrypha(false)
1133
+ expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1", "parsing: 'JOEL 1:1'")
1134
+ expect(p.parse("YOEL 1:1").osis()).toEqual("Joel.1.1", "parsing: 'YOEL 1:1'")
1135
+ expect(p.parse("ਜੋਏਲ 1:1").osis()).toEqual("Joel.1.1", "parsing: 'ਜੋਏਲ 1:1'")
1136
+ expect(p.parse("ਯੋਏਲ 1:1").osis()).toEqual("Joel.1.1", "parsing: 'ਯੋਏਲ 1:1'")
1137
+ ;
1138
+ return true;
1139
+ });
1140
+ });
1141
+
1142
+ describe("Localized book Amos (pa)", function() {
1143
+ var p;
1144
+ p = {};
1145
+ beforeEach(function() {
1146
+ p = new bcv_parser();
1147
+ p.set_options({
1148
+ book_alone_strategy: "ignore",
1149
+ book_sequence_strategy: "ignore",
1150
+ osis_compaction_strategy: "bc",
1151
+ captive_end_digits_strategy: "delete"
1152
+ });
1153
+ return p.include_apocrypha(true);
1154
+ });
1155
+ return it("should handle book: Amos (pa)", function() {
1156
+
1157
+ expect(p.parse("Amos 1:1").osis()).toEqual("Amos.1.1", "parsing: 'Amos 1:1'")
1158
+ expect(p.parse("āmos 1:1").osis()).toEqual("Amos.1.1", "parsing: 'āmos 1:1'")
1159
+ expect(p.parse("ਆਮੋਸ 1:1").osis()).toEqual("Amos.1.1", "parsing: 'ਆਮੋਸ 1:1'")
1160
+ p.include_apocrypha(false)
1161
+ expect(p.parse("AMOS 1:1").osis()).toEqual("Amos.1.1", "parsing: 'AMOS 1:1'")
1162
+ expect(p.parse("ĀMOS 1:1").osis()).toEqual("Amos.1.1", "parsing: 'ĀMOS 1:1'")
1163
+ expect(p.parse("ਆਮੋਸ 1:1").osis()).toEqual("Amos.1.1", "parsing: 'ਆਮੋਸ 1:1'")
1164
+ ;
1165
+ return true;
1166
+ });
1167
+ });
1168
+
1169
+ describe("Localized book Obad (pa)", function() {
1170
+ var p;
1171
+ p = {};
1172
+ beforeEach(function() {
1173
+ p = new bcv_parser();
1174
+ p.set_options({
1175
+ book_alone_strategy: "ignore",
1176
+ book_sequence_strategy: "ignore",
1177
+ osis_compaction_strategy: "bc",
1178
+ captive_end_digits_strategy: "delete"
1179
+ });
1180
+ return p.include_apocrypha(true);
1181
+ });
1182
+ return it("should handle book: Obad (pa)", function() {
1183
+
1184
+ expect(p.parse("obadyāh 1:1").osis()).toEqual("Obad.1.1", "parsing: 'obadyāh 1:1'")
1185
+ expect(p.parse("ਓਬਦਯਾਹ 1:1").osis()).toEqual("Obad.1.1", "parsing: 'ਓਬਦਯਾਹ 1:1'")
1186
+ expect(p.parse("Obad 1:1").osis()).toEqual("Obad.1.1", "parsing: 'Obad 1:1'")
1187
+ p.include_apocrypha(false)
1188
+ expect(p.parse("OBADYĀH 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBADYĀH 1:1'")
1189
+ expect(p.parse("ਓਬਦਯਾਹ 1:1").osis()).toEqual("Obad.1.1", "parsing: 'ਓਬਦਯਾਹ 1:1'")
1190
+ expect(p.parse("OBAD 1:1").osis()).toEqual("Obad.1.1", "parsing: 'OBAD 1:1'")
1191
+ ;
1192
+ return true;
1193
+ });
1194
+ });
1195
+
1196
+ describe("Localized book Jonah (pa)", function() {
1197
+ var p;
1198
+ p = {};
1199
+ beforeEach(function() {
1200
+ p = new bcv_parser();
1201
+ p.set_options({
1202
+ book_alone_strategy: "ignore",
1203
+ book_sequence_strategy: "ignore",
1204
+ osis_compaction_strategy: "bc",
1205
+ captive_end_digits_strategy: "delete"
1206
+ });
1207
+ return p.include_apocrypha(true);
1208
+ });
1209
+ return it("should handle book: Jonah (pa)", function() {
1210
+
1211
+ expect(p.parse("Jonah 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'Jonah 1:1'")
1212
+ expect(p.parse("yūnāh 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'yūnāh 1:1'")
1213
+ expect(p.parse("ਯੂਨਾਹ 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'ਯੂਨਾਹ 1:1'")
1214
+ p.include_apocrypha(false)
1215
+ expect(p.parse("JONAH 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'JONAH 1:1'")
1216
+ expect(p.parse("YŪNĀH 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'YŪNĀH 1:1'")
1217
+ expect(p.parse("ਯੂਨਾਹ 1:1").osis()).toEqual("Jonah.1.1", "parsing: 'ਯੂਨਾਹ 1:1'")
1218
+ ;
1219
+ return true;
1220
+ });
1221
+ });
1222
+
1223
+ describe("Localized book Mic (pa)", function() {
1224
+ var p;
1225
+ p = {};
1226
+ beforeEach(function() {
1227
+ p = new bcv_parser();
1228
+ p.set_options({
1229
+ book_alone_strategy: "ignore",
1230
+ book_sequence_strategy: "ignore",
1231
+ osis_compaction_strategy: "bc",
1232
+ captive_end_digits_strategy: "delete"
1233
+ });
1234
+ return p.include_apocrypha(true);
1235
+ });
1236
+ return it("should handle book: Mic (pa)", function() {
1237
+
1238
+ expect(p.parse("mīkāh 1:1").osis()).toEqual("Mic.1.1", "parsing: 'mīkāh 1:1'")
1239
+ expect(p.parse("ਮੀਕਾਹ 1:1").osis()).toEqual("Mic.1.1", "parsing: 'ਮੀਕਾਹ 1:1'")
1240
+ expect(p.parse("Mic 1:1").osis()).toEqual("Mic.1.1", "parsing: 'Mic 1:1'")
1241
+ p.include_apocrypha(false)
1242
+ expect(p.parse("MĪKĀH 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MĪKĀH 1:1'")
1243
+ expect(p.parse("ਮੀਕਾਹ 1:1").osis()).toEqual("Mic.1.1", "parsing: 'ਮੀਕਾਹ 1:1'")
1244
+ expect(p.parse("MIC 1:1").osis()).toEqual("Mic.1.1", "parsing: 'MIC 1:1'")
1245
+ ;
1246
+ return true;
1247
+ });
1248
+ });
1249
+
1250
+ describe("Localized book Nah (pa)", function() {
1251
+ var p;
1252
+ p = {};
1253
+ beforeEach(function() {
1254
+ p = new bcv_parser();
1255
+ p.set_options({
1256
+ book_alone_strategy: "ignore",
1257
+ book_sequence_strategy: "ignore",
1258
+ osis_compaction_strategy: "bc",
1259
+ captive_end_digits_strategy: "delete"
1260
+ });
1261
+ return p.include_apocrypha(true);
1262
+ });
1263
+ return it("should handle book: Nah (pa)", function() {
1264
+
1265
+ expect(p.parse("nahūm 1:1").osis()).toEqual("Nah.1.1", "parsing: 'nahūm 1:1'")
1266
+ expect(p.parse("ਨਹੂਮ 1:1").osis()).toEqual("Nah.1.1", "parsing: 'ਨਹੂਮ 1:1'")
1267
+ expect(p.parse("Nah 1:1").osis()).toEqual("Nah.1.1", "parsing: 'Nah 1:1'")
1268
+ p.include_apocrypha(false)
1269
+ expect(p.parse("NAHŪM 1:1").osis()).toEqual("Nah.1.1", "parsing: 'NAHŪM 1:1'")
1270
+ expect(p.parse("ਨਹੂਮ 1:1").osis()).toEqual("Nah.1.1", "parsing: 'ਨਹੂਮ 1:1'")
1271
+ expect(p.parse("NAH 1:1").osis()).toEqual("Nah.1.1", "parsing: 'NAH 1:1'")
1272
+ ;
1273
+ return true;
1274
+ });
1275
+ });
1276
+
1277
+ describe("Localized book Hab (pa)", function() {
1278
+ var p;
1279
+ p = {};
1280
+ beforeEach(function() {
1281
+ p = new bcv_parser();
1282
+ p.set_options({
1283
+ book_alone_strategy: "ignore",
1284
+ book_sequence_strategy: "ignore",
1285
+ osis_compaction_strategy: "bc",
1286
+ captive_end_digits_strategy: "delete"
1287
+ });
1288
+ return p.include_apocrypha(true);
1289
+ });
1290
+ return it("should handle book: Hab (pa)", function() {
1291
+
1292
+ expect(p.parse("habakkūk 1:1").osis()).toEqual("Hab.1.1", "parsing: 'habakkūk 1:1'")
1293
+ expect(p.parse("ਹਬਕੱੂਕ 1:1").osis()).toEqual("Hab.1.1", "parsing: 'ਹਬਕੱੂਕ 1:1'")
1294
+ expect(p.parse("ਹਬੱਕੂਕ 1:1").osis()).toEqual("Hab.1.1", "parsing: 'ਹਬੱਕੂਕ 1:1'")
1295
+ expect(p.parse("ਹਬਕੂਕ 1:1").osis()).toEqual("Hab.1.1", "parsing: 'ਹਬਕੂਕ 1:1'")
1296
+ expect(p.parse("Hab 1:1").osis()).toEqual("Hab.1.1", "parsing: 'Hab 1:1'")
1297
+ p.include_apocrypha(false)
1298
+ expect(p.parse("HABAKKŪK 1:1").osis()).toEqual("Hab.1.1", "parsing: 'HABAKKŪK 1:1'")
1299
+ expect(p.parse("ਹਬਕੱੂਕ 1:1").osis()).toEqual("Hab.1.1", "parsing: 'ਹਬਕੱੂਕ 1:1'")
1300
+ expect(p.parse("ਹਬੱਕੂਕ 1:1").osis()).toEqual("Hab.1.1", "parsing: 'ਹਬੱਕੂਕ 1:1'")
1301
+ expect(p.parse("ਹਬਕੂਕ 1:1").osis()).toEqual("Hab.1.1", "parsing: 'ਹਬਕੂਕ 1:1'")
1302
+ expect(p.parse("HAB 1:1").osis()).toEqual("Hab.1.1", "parsing: 'HAB 1:1'")
1303
+ ;
1304
+ return true;
1305
+ });
1306
+ });
1307
+
1308
+ describe("Localized book Zeph (pa)", function() {
1309
+ var p;
1310
+ p = {};
1311
+ beforeEach(function() {
1312
+ p = new bcv_parser();
1313
+ p.set_options({
1314
+ book_alone_strategy: "ignore",
1315
+ book_sequence_strategy: "ignore",
1316
+ osis_compaction_strategy: "bc",
1317
+ captive_end_digits_strategy: "delete"
1318
+ });
1319
+ return p.include_apocrypha(true);
1320
+ });
1321
+ return it("should handle book: Zeph (pa)", function() {
1322
+
1323
+ expect(p.parse("safanyāh 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'safanyāh 1:1'")
1324
+ expect(p.parse("ਸਫ਼ਨਯਾਹ 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'ਸਫ਼ਨਯਾਹ 1:1'")
1325
+ expect(p.parse("Zeph 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'Zeph 1:1'")
1326
+ p.include_apocrypha(false)
1327
+ expect(p.parse("SAFANYĀH 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'SAFANYĀH 1:1'")
1328
+ expect(p.parse("ਸਫ਼ਨਯਾਹ 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'ਸਫ਼ਨਯਾਹ 1:1'")
1329
+ expect(p.parse("ZEPH 1:1").osis()).toEqual("Zeph.1.1", "parsing: 'ZEPH 1:1'")
1330
+ ;
1331
+ return true;
1332
+ });
1333
+ });
1334
+
1335
+ describe("Localized book Hag (pa)", function() {
1336
+ var p;
1337
+ p = {};
1338
+ beforeEach(function() {
1339
+ p = new bcv_parser();
1340
+ p.set_options({
1341
+ book_alone_strategy: "ignore",
1342
+ book_sequence_strategy: "ignore",
1343
+ osis_compaction_strategy: "bc",
1344
+ captive_end_digits_strategy: "delete"
1345
+ });
1346
+ return p.include_apocrypha(true);
1347
+ });
1348
+ return it("should handle book: Hag (pa)", function() {
1349
+
1350
+ expect(p.parse("hajjaī 1:1").osis()).toEqual("Hag.1.1", "parsing: 'hajjaī 1:1'")
1351
+ expect(p.parse("ਹੱਜਈ 1:1").osis()).toEqual("Hag.1.1", "parsing: 'ਹੱਜਈ 1:1'")
1352
+ expect(p.parse("Hag 1:1").osis()).toEqual("Hag.1.1", "parsing: 'Hag 1:1'")
1353
+ p.include_apocrypha(false)
1354
+ expect(p.parse("HAJJAĪ 1:1").osis()).toEqual("Hag.1.1", "parsing: 'HAJJAĪ 1:1'")
1355
+ expect(p.parse("ਹੱਜਈ 1:1").osis()).toEqual("Hag.1.1", "parsing: 'ਹੱਜਈ 1:1'")
1356
+ expect(p.parse("HAG 1:1").osis()).toEqual("Hag.1.1", "parsing: 'HAG 1:1'")
1357
+ ;
1358
+ return true;
1359
+ });
1360
+ });
1361
+
1362
+ describe("Localized book Zech (pa)", function() {
1363
+ var p;
1364
+ p = {};
1365
+ beforeEach(function() {
1366
+ p = new bcv_parser();
1367
+ p.set_options({
1368
+ book_alone_strategy: "ignore",
1369
+ book_sequence_strategy: "ignore",
1370
+ osis_compaction_strategy: "bc",
1371
+ captive_end_digits_strategy: "delete"
1372
+ });
1373
+ return p.include_apocrypha(true);
1374
+ });
1375
+ return it("should handle book: Zech (pa)", function() {
1376
+
1377
+ expect(p.parse("zakaryāh 1:1").osis()).toEqual("Zech.1.1", "parsing: 'zakaryāh 1:1'")
1378
+ expect(p.parse("ਜ਼ਕਰਜਾਹ 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ਜ਼ਕਰਜਾਹ 1:1'")
1379
+ expect(p.parse("ਜ਼ਕਰਯਾਹ 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ਜ਼ਕਰਯਾਹ 1:1'")
1380
+ expect(p.parse("ਜਕਰਯਾਹ 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ਜਕਰਯਾਹ 1:1'")
1381
+ expect(p.parse("Zech 1:1").osis()).toEqual("Zech.1.1", "parsing: 'Zech 1:1'")
1382
+ p.include_apocrypha(false)
1383
+ expect(p.parse("ZAKARYĀH 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZAKARYĀH 1:1'")
1384
+ expect(p.parse("ਜ਼ਕਰਜਾਹ 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ਜ਼ਕਰਜਾਹ 1:1'")
1385
+ expect(p.parse("ਜ਼ਕਰਯਾਹ 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ਜ਼ਕਰਯਾਹ 1:1'")
1386
+ expect(p.parse("ਜਕਰਯਾਹ 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ਜਕਰਯਾਹ 1:1'")
1387
+ expect(p.parse("ZECH 1:1").osis()).toEqual("Zech.1.1", "parsing: 'ZECH 1:1'")
1388
+ ;
1389
+ return true;
1390
+ });
1391
+ });
1392
+
1393
+ describe("Localized book Mal (pa)", function() {
1394
+ var p;
1395
+ p = {};
1396
+ beforeEach(function() {
1397
+ p = new bcv_parser();
1398
+ p.set_options({
1399
+ book_alone_strategy: "ignore",
1400
+ book_sequence_strategy: "ignore",
1401
+ osis_compaction_strategy: "bc",
1402
+ captive_end_digits_strategy: "delete"
1403
+ });
1404
+ return p.include_apocrypha(true);
1405
+ });
1406
+ return it("should handle book: Mal (pa)", function() {
1407
+
1408
+ expect(p.parse("malākī 1:1").osis()).toEqual("Mal.1.1", "parsing: 'malākī 1:1'")
1409
+ expect(p.parse("ਮਲਾਕੀ 1:1").osis()).toEqual("Mal.1.1", "parsing: 'ਮਲਾਕੀ 1:1'")
1410
+ expect(p.parse("Mal 1:1").osis()).toEqual("Mal.1.1", "parsing: 'Mal 1:1'")
1411
+ p.include_apocrypha(false)
1412
+ expect(p.parse("MALĀKĪ 1:1").osis()).toEqual("Mal.1.1", "parsing: 'MALĀKĪ 1:1'")
1413
+ expect(p.parse("ਮਲਾਕੀ 1:1").osis()).toEqual("Mal.1.1", "parsing: 'ਮਲਾਕੀ 1:1'")
1414
+ expect(p.parse("MAL 1:1").osis()).toEqual("Mal.1.1", "parsing: 'MAL 1:1'")
1415
+ ;
1416
+ return true;
1417
+ });
1418
+ });
1419
+
1420
+ describe("Localized book Matt (pa)", function() {
1421
+ var p;
1422
+ p = {};
1423
+ beforeEach(function() {
1424
+ p = new bcv_parser();
1425
+ p.set_options({
1426
+ book_alone_strategy: "ignore",
1427
+ book_sequence_strategy: "ignore",
1428
+ osis_compaction_strategy: "bc",
1429
+ captive_end_digits_strategy: "delete"
1430
+ });
1431
+ return p.include_apocrypha(true);
1432
+ });
1433
+ return it("should handle book: Matt (pa)", function() {
1434
+
1435
+ expect(p.parse("mattī dī ĩjīl 1:1").osis()).toEqual("Matt.1.1", "parsing: 'mattī dī ĩjīl 1:1'")
1436
+ expect(p.parse("ਮੱਤੀ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("Matt.1.1", "parsing: 'ਮੱਤੀ ਦੀ ਇੰਜੀਲ 1:1'")
1437
+ expect(p.parse("mattī 1:1").osis()).toEqual("Matt.1.1", "parsing: 'mattī 1:1'")
1438
+ expect(p.parse("Matt 1:1").osis()).toEqual("Matt.1.1", "parsing: 'Matt 1:1'")
1439
+ expect(p.parse("ਮੱਤੀ 1:1").osis()).toEqual("Matt.1.1", "parsing: 'ਮੱਤੀ 1:1'")
1440
+ p.include_apocrypha(false)
1441
+ expect(p.parse("MATTĪ DĪ ĨJĪL 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATTĪ DĪ ĨJĪL 1:1'")
1442
+ expect(p.parse("ਮੱਤੀ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("Matt.1.1", "parsing: 'ਮੱਤੀ ਦੀ ਇੰਜੀਲ 1:1'")
1443
+ expect(p.parse("MATTĪ 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATTĪ 1:1'")
1444
+ expect(p.parse("MATT 1:1").osis()).toEqual("Matt.1.1", "parsing: 'MATT 1:1'")
1445
+ expect(p.parse("ਮੱਤੀ 1:1").osis()).toEqual("Matt.1.1", "parsing: 'ਮੱਤੀ 1:1'")
1446
+ ;
1447
+ return true;
1448
+ });
1449
+ });
1450
+
1451
+ describe("Localized book Mark (pa)", function() {
1452
+ var p;
1453
+ p = {};
1454
+ beforeEach(function() {
1455
+ p = new bcv_parser();
1456
+ p.set_options({
1457
+ book_alone_strategy: "ignore",
1458
+ book_sequence_strategy: "ignore",
1459
+ osis_compaction_strategy: "bc",
1460
+ captive_end_digits_strategy: "delete"
1461
+ });
1462
+ return p.include_apocrypha(true);
1463
+ });
1464
+ return it("should handle book: Mark (pa)", function() {
1465
+
1466
+ expect(p.parse("markus dī ĩjīl 1:1").osis()).toEqual("Mark.1.1", "parsing: 'markus dī ĩjīl 1:1'")
1467
+ expect(p.parse("ਮਰਕੁਸ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("Mark.1.1", "parsing: 'ਮਰਕੁਸ ਦੀ ਇੰਜੀਲ 1:1'")
1468
+ expect(p.parse("markus 1:1").osis()).toEqual("Mark.1.1", "parsing: 'markus 1:1'")
1469
+ expect(p.parse("ਮਰਕੁਸ 1:1").osis()).toEqual("Mark.1.1", "parsing: 'ਮਰਕੁਸ 1:1'")
1470
+ expect(p.parse("Mark 1:1").osis()).toEqual("Mark.1.1", "parsing: 'Mark 1:1'")
1471
+ p.include_apocrypha(false)
1472
+ expect(p.parse("MARKUS DĪ ĨJĪL 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARKUS DĪ ĨJĪL 1:1'")
1473
+ expect(p.parse("ਮਰਕੁਸ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("Mark.1.1", "parsing: 'ਮਰਕੁਸ ਦੀ ਇੰਜੀਲ 1:1'")
1474
+ expect(p.parse("MARKUS 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARKUS 1:1'")
1475
+ expect(p.parse("ਮਰਕੁਸ 1:1").osis()).toEqual("Mark.1.1", "parsing: 'ਮਰਕੁਸ 1:1'")
1476
+ expect(p.parse("MARK 1:1").osis()).toEqual("Mark.1.1", "parsing: 'MARK 1:1'")
1477
+ ;
1478
+ return true;
1479
+ });
1480
+ });
1481
+
1482
+ describe("Localized book Luke (pa)", function() {
1483
+ var p;
1484
+ p = {};
1485
+ beforeEach(function() {
1486
+ p = new bcv_parser();
1487
+ p.set_options({
1488
+ book_alone_strategy: "ignore",
1489
+ book_sequence_strategy: "ignore",
1490
+ osis_compaction_strategy: "bc",
1491
+ captive_end_digits_strategy: "delete"
1492
+ });
1493
+ return p.include_apocrypha(true);
1494
+ });
1495
+ return it("should handle book: Luke (pa)", function() {
1496
+
1497
+ expect(p.parse("ਲੂਕਾ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("Luke.1.1", "parsing: 'ਲੂਕਾ ਦੀ ਇੰਜੀਲ 1:1'")
1498
+ expect(p.parse("lūkā dī ĩjīl 1:1").osis()).toEqual("Luke.1.1", "parsing: 'lūkā dī ĩjīl 1:1'")
1499
+ expect(p.parse("Luke 1:1").osis()).toEqual("Luke.1.1", "parsing: 'Luke 1:1'")
1500
+ expect(p.parse("lūkā 1:1").osis()).toEqual("Luke.1.1", "parsing: 'lūkā 1:1'")
1501
+ expect(p.parse("ਲੂਕਾ 1:1").osis()).toEqual("Luke.1.1", "parsing: 'ਲੂਕਾ 1:1'")
1502
+ p.include_apocrypha(false)
1503
+ expect(p.parse("ਲੂਕਾ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("Luke.1.1", "parsing: 'ਲੂਕਾ ਦੀ ਇੰਜੀਲ 1:1'")
1504
+ expect(p.parse("LŪKĀ DĪ ĨJĪL 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LŪKĀ DĪ ĨJĪL 1:1'")
1505
+ expect(p.parse("LUKE 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LUKE 1:1'")
1506
+ expect(p.parse("LŪKĀ 1:1").osis()).toEqual("Luke.1.1", "parsing: 'LŪKĀ 1:1'")
1507
+ expect(p.parse("ਲੂਕਾ 1:1").osis()).toEqual("Luke.1.1", "parsing: 'ਲੂਕਾ 1:1'")
1508
+ ;
1509
+ return true;
1510
+ });
1511
+ });
1512
+
1513
+ describe("Localized book 1John (pa)", function() {
1514
+ var p;
1515
+ p = {};
1516
+ beforeEach(function() {
1517
+ p = new bcv_parser();
1518
+ p.set_options({
1519
+ book_alone_strategy: "ignore",
1520
+ book_sequence_strategy: "ignore",
1521
+ osis_compaction_strategy: "bc",
1522
+ captive_end_digits_strategy: "delete"
1523
+ });
1524
+ return p.include_apocrypha(true);
1525
+ });
1526
+ return it("should handle book: 1John (pa)", function() {
1527
+
1528
+ expect(p.parse("yūhãnā dī pahilī pattrī 1:1").osis()).toEqual("1John.1.1", "parsing: 'yūhãnā dī pahilī pattrī 1:1'")
1529
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1530
+ expect(p.parse("1 yūhãnā 1:1").osis()).toEqual("1John.1.1", "parsing: '1 yūhãnā 1:1'")
1531
+ expect(p.parse("1 ਯੂਹੰਨਾ 1:1").osis()).toEqual("1John.1.1", "parsing: '1 ਯੂਹੰਨਾ 1:1'")
1532
+ expect(p.parse("1John 1:1").osis()).toEqual("1John.1.1", "parsing: '1John 1:1'")
1533
+ p.include_apocrypha(false)
1534
+ expect(p.parse("YŪHÃNĀ DĪ PAHILĪ PATTRĪ 1:1").osis()).toEqual("1John.1.1", "parsing: 'YŪHÃNĀ DĪ PAHILĪ PATTRĪ 1:1'")
1535
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1536
+ expect(p.parse("1 YŪHÃNĀ 1:1").osis()).toEqual("1John.1.1", "parsing: '1 YŪHÃNĀ 1:1'")
1537
+ expect(p.parse("1 ਯੂਹੰਨਾ 1:1").osis()).toEqual("1John.1.1", "parsing: '1 ਯੂਹੰਨਾ 1:1'")
1538
+ expect(p.parse("1JOHN 1:1").osis()).toEqual("1John.1.1", "parsing: '1JOHN 1:1'")
1539
+ ;
1540
+ return true;
1541
+ });
1542
+ });
1543
+
1544
+ describe("Localized book 2John (pa)", function() {
1545
+ var p;
1546
+ p = {};
1547
+ beforeEach(function() {
1548
+ p = new bcv_parser();
1549
+ p.set_options({
1550
+ book_alone_strategy: "ignore",
1551
+ book_sequence_strategy: "ignore",
1552
+ osis_compaction_strategy: "bc",
1553
+ captive_end_digits_strategy: "delete"
1554
+ });
1555
+ return p.include_apocrypha(true);
1556
+ });
1557
+ return it("should handle book: 2John (pa)", function() {
1558
+
1559
+ expect(p.parse("yūhãnā dī dūjī pattrī 1:1").osis()).toEqual("2John.1.1", "parsing: 'yūhãnā dī dūjī pattrī 1:1'")
1560
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1561
+ expect(p.parse("2 yūhãnā 1:1").osis()).toEqual("2John.1.1", "parsing: '2 yūhãnā 1:1'")
1562
+ expect(p.parse("2 ਯੂਹੰਨਾ 1:1").osis()).toEqual("2John.1.1", "parsing: '2 ਯੂਹੰਨਾ 1:1'")
1563
+ expect(p.parse("2John 1:1").osis()).toEqual("2John.1.1", "parsing: '2John 1:1'")
1564
+ p.include_apocrypha(false)
1565
+ expect(p.parse("YŪHÃNĀ DĪ DŪJĪ PATTRĪ 1:1").osis()).toEqual("2John.1.1", "parsing: 'YŪHÃNĀ DĪ DŪJĪ PATTRĪ 1:1'")
1566
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1567
+ expect(p.parse("2 YŪHÃNĀ 1:1").osis()).toEqual("2John.1.1", "parsing: '2 YŪHÃNĀ 1:1'")
1568
+ expect(p.parse("2 ਯੂਹੰਨਾ 1:1").osis()).toEqual("2John.1.1", "parsing: '2 ਯੂਹੰਨਾ 1:1'")
1569
+ expect(p.parse("2JOHN 1:1").osis()).toEqual("2John.1.1", "parsing: '2JOHN 1:1'")
1570
+ ;
1571
+ return true;
1572
+ });
1573
+ });
1574
+
1575
+ describe("Localized book 3John (pa)", function() {
1576
+ var p;
1577
+ p = {};
1578
+ beforeEach(function() {
1579
+ p = new bcv_parser();
1580
+ p.set_options({
1581
+ book_alone_strategy: "ignore",
1582
+ book_sequence_strategy: "ignore",
1583
+ osis_compaction_strategy: "bc",
1584
+ captive_end_digits_strategy: "delete"
1585
+ });
1586
+ return p.include_apocrypha(true);
1587
+ });
1588
+ return it("should handle book: 3John (pa)", function() {
1589
+
1590
+ expect(p.parse("yūhãnā dī tījī pattrī 1:1").osis()).toEqual("3John.1.1", "parsing: 'yūhãnā dī tījī pattrī 1:1'")
1591
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਤੀਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("3John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਤੀਜੀ ਪੱਤ੍ਰੀ 1:1'")
1592
+ expect(p.parse("3 yūhãnā 1:1").osis()).toEqual("3John.1.1", "parsing: '3 yūhãnā 1:1'")
1593
+ expect(p.parse("3 ਯੂਹੰਨਾ 1:1").osis()).toEqual("3John.1.1", "parsing: '3 ਯੂਹੰਨਾ 1:1'")
1594
+ expect(p.parse("3John 1:1").osis()).toEqual("3John.1.1", "parsing: '3John 1:1'")
1595
+ p.include_apocrypha(false)
1596
+ expect(p.parse("YŪHÃNĀ DĪ TĪJĪ PATTRĪ 1:1").osis()).toEqual("3John.1.1", "parsing: 'YŪHÃNĀ DĪ TĪJĪ PATTRĪ 1:1'")
1597
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਤੀਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("3John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਤੀਜੀ ਪੱਤ੍ਰੀ 1:1'")
1598
+ expect(p.parse("3 YŪHÃNĀ 1:1").osis()).toEqual("3John.1.1", "parsing: '3 YŪHÃNĀ 1:1'")
1599
+ expect(p.parse("3 ਯੂਹੰਨਾ 1:1").osis()).toEqual("3John.1.1", "parsing: '3 ਯੂਹੰਨਾ 1:1'")
1600
+ expect(p.parse("3JOHN 1:1").osis()).toEqual("3John.1.1", "parsing: '3JOHN 1:1'")
1601
+ ;
1602
+ return true;
1603
+ });
1604
+ });
1605
+
1606
+ describe("Localized book John (pa)", function() {
1607
+ var p;
1608
+ p = {};
1609
+ beforeEach(function() {
1610
+ p = new bcv_parser();
1611
+ p.set_options({
1612
+ book_alone_strategy: "ignore",
1613
+ book_sequence_strategy: "ignore",
1614
+ osis_compaction_strategy: "bc",
1615
+ captive_end_digits_strategy: "delete"
1616
+ });
1617
+ return p.include_apocrypha(true);
1618
+ });
1619
+ return it("should handle book: John (pa)", function() {
1620
+
1621
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਇੰਜੀਲ 1:1'")
1622
+ expect(p.parse("yūhãnā dī ĩjīl 1:1").osis()).toEqual("John.1.1", "parsing: 'yūhãnā dī ĩjīl 1:1'")
1623
+ expect(p.parse("ਯੂਹਾਂਨਾ 1:1").osis()).toEqual("John.1.1", "parsing: 'ਯੂਹਾਂਨਾ 1:1'")
1624
+ expect(p.parse("yūhãnā 1:1").osis()).toEqual("John.1.1", "parsing: 'yūhãnā 1:1'")
1625
+ expect(p.parse("ਯੂਹੰਨਾ 1:1").osis()).toEqual("John.1.1", "parsing: 'ਯੂਹੰਨਾ 1:1'")
1626
+ expect(p.parse("John 1:1").osis()).toEqual("John.1.1", "parsing: 'John 1:1'")
1627
+ p.include_apocrypha(false)
1628
+ expect(p.parse("ਯੂਹੰਨਾ ਦੀ ਇੰਜੀਲ 1:1").osis()).toEqual("John.1.1", "parsing: 'ਯੂਹੰਨਾ ਦੀ ਇੰਜੀਲ 1:1'")
1629
+ expect(p.parse("YŪHÃNĀ DĪ ĨJĪL 1:1").osis()).toEqual("John.1.1", "parsing: 'YŪHÃNĀ DĪ ĨJĪL 1:1'")
1630
+ expect(p.parse("ਯੂਹਾਂਨਾ 1:1").osis()).toEqual("John.1.1", "parsing: 'ਯੂਹਾਂਨਾ 1:1'")
1631
+ expect(p.parse("YŪHÃNĀ 1:1").osis()).toEqual("John.1.1", "parsing: 'YŪHÃNĀ 1:1'")
1632
+ expect(p.parse("ਯੂਹੰਨਾ 1:1").osis()).toEqual("John.1.1", "parsing: 'ਯੂਹੰਨਾ 1:1'")
1633
+ expect(p.parse("JOHN 1:1").osis()).toEqual("John.1.1", "parsing: 'JOHN 1:1'")
1634
+ ;
1635
+ return true;
1636
+ });
1637
+ });
1638
+
1639
+ describe("Localized book Acts (pa)", function() {
1640
+ var p;
1641
+ p = {};
1642
+ beforeEach(function() {
1643
+ p = new bcv_parser();
1644
+ p.set_options({
1645
+ book_alone_strategy: "ignore",
1646
+ book_sequence_strategy: "ignore",
1647
+ osis_compaction_strategy: "bc",
1648
+ captive_end_digits_strategy: "delete"
1649
+ });
1650
+ return p.include_apocrypha(true);
1651
+ });
1652
+ return it("should handle book: Acts (pa)", function() {
1653
+
1654
+ expect(p.parse("rasūlāṃ de kartabb 1:1").osis()).toEqual("Acts.1.1", "parsing: 'rasūlāṃ de kartabb 1:1'")
1655
+ expect(p.parse("ਰਸੂਲਾਂ ਦੇ ਕਰਤੱਬ 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ਰਸੂਲਾਂ ਦੇ ਕਰਤੱਬ 1:1'")
1656
+ expect(p.parse("Acts 1:1").osis()).toEqual("Acts.1.1", "parsing: 'Acts 1:1'")
1657
+ p.include_apocrypha(false)
1658
+ expect(p.parse("RASŪLĀṂ DE KARTABB 1:1").osis()).toEqual("Acts.1.1", "parsing: 'RASŪLĀṂ DE KARTABB 1:1'")
1659
+ expect(p.parse("ਰਸੂਲਾਂ ਦੇ ਕਰਤੱਬ 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ਰਸੂਲਾਂ ਦੇ ਕਰਤੱਬ 1:1'")
1660
+ expect(p.parse("ACTS 1:1").osis()).toEqual("Acts.1.1", "parsing: 'ACTS 1:1'")
1661
+ ;
1662
+ return true;
1663
+ });
1664
+ });
1665
+
1666
+ describe("Localized book Rom (pa)", function() {
1667
+ var p;
1668
+ p = {};
1669
+ beforeEach(function() {
1670
+ p = new bcv_parser();
1671
+ p.set_options({
1672
+ book_alone_strategy: "ignore",
1673
+ book_sequence_strategy: "ignore",
1674
+ osis_compaction_strategy: "bc",
1675
+ captive_end_digits_strategy: "delete"
1676
+ });
1677
+ return p.include_apocrypha(true);
1678
+ });
1679
+ return it("should handle book: Rom (pa)", function() {
1680
+
1681
+ expect(p.parse("romīāṃ nū̃ pattrī 1:1").osis()).toEqual("Rom.1.1", "parsing: 'romīāṃ nū̃ pattrī 1:1'")
1682
+ expect(p.parse("ਰੋਮੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ਰੋਮੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1683
+ expect(p.parse("ਰੋਮੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ਰੋਮੀਆਂ ਨੂੰ 1:1'")
1684
+ expect(p.parse("romīāṃ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'romīāṃ 1:1'")
1685
+ expect(p.parse("ਰੋਮੀਆਂ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ਰੋਮੀਆਂ 1:1'")
1686
+ expect(p.parse("Rom 1:1").osis()).toEqual("Rom.1.1", "parsing: 'Rom 1:1'")
1687
+ p.include_apocrypha(false)
1688
+ expect(p.parse("ROMĪĀṂ NŪ̃ PATTRĪ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROMĪĀṂ NŪ̃ PATTRĪ 1:1'")
1689
+ expect(p.parse("ਰੋਮੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ਰੋਮੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1690
+ expect(p.parse("ਰੋਮੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ਰੋਮੀਆਂ ਨੂੰ 1:1'")
1691
+ expect(p.parse("ROMĪĀṂ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROMĪĀṂ 1:1'")
1692
+ expect(p.parse("ਰੋਮੀਆਂ 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ਰੋਮੀਆਂ 1:1'")
1693
+ expect(p.parse("ROM 1:1").osis()).toEqual("Rom.1.1", "parsing: 'ROM 1:1'")
1694
+ ;
1695
+ return true;
1696
+ });
1697
+ });
1698
+
1699
+ describe("Localized book 2Cor (pa)", function() {
1700
+ var p;
1701
+ p = {};
1702
+ beforeEach(function() {
1703
+ p = new bcv_parser();
1704
+ p.set_options({
1705
+ book_alone_strategy: "ignore",
1706
+ book_sequence_strategy: "ignore",
1707
+ osis_compaction_strategy: "bc",
1708
+ captive_end_digits_strategy: "delete"
1709
+ });
1710
+ return p.include_apocrypha(true);
1711
+ });
1712
+ return it("should handle book: 2Cor (pa)", function() {
1713
+
1714
+ expect(p.parse("kurĩtʰīāṃ nū̃ dūjī pattrī 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'kurĩtʰīāṃ nū̃ dūjī pattrī 1:1'")
1715
+ expect(p.parse("ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1716
+ expect(p.parse("2 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1'")
1717
+ expect(p.parse("2 kurĩtʰīāṃ 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 kurĩtʰīāṃ 1:1'")
1718
+ expect(p.parse("2 ਕੁਰਿੰਥੀਆਂ 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 ਕੁਰਿੰਥੀਆਂ 1:1'")
1719
+ expect(p.parse("2Cor 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2Cor 1:1'")
1720
+ p.include_apocrypha(false)
1721
+ expect(p.parse("KURĨTʰĪĀṂ NŪ̃ DŪJĪ PATTRĪ 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'KURĨTʰĪĀṂ NŪ̃ DŪJĪ PATTRĪ 1:1'")
1722
+ expect(p.parse("ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Cor.1.1", "parsing: 'ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1723
+ expect(p.parse("2 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1'")
1724
+ expect(p.parse("2 KURĨTʰĪĀṂ 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 KURĨTʰĪĀṂ 1:1'")
1725
+ expect(p.parse("2 ਕੁਰਿੰਥੀਆਂ 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2 ਕੁਰਿੰਥੀਆਂ 1:1'")
1726
+ expect(p.parse("2COR 1:1").osis()).toEqual("2Cor.1.1", "parsing: '2COR 1:1'")
1727
+ ;
1728
+ return true;
1729
+ });
1730
+ });
1731
+
1732
+ describe("Localized book 1Cor (pa)", function() {
1733
+ var p;
1734
+ p = {};
1735
+ beforeEach(function() {
1736
+ p = new bcv_parser();
1737
+ p.set_options({
1738
+ book_alone_strategy: "ignore",
1739
+ book_sequence_strategy: "ignore",
1740
+ osis_compaction_strategy: "bc",
1741
+ captive_end_digits_strategy: "delete"
1742
+ });
1743
+ return p.include_apocrypha(true);
1744
+ });
1745
+ return it("should handle book: 1Cor (pa)", function() {
1746
+
1747
+ expect(p.parse("kurĩtʰīāṃ nū̃ pahilī pattrī 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'kurĩtʰīāṃ nū̃ pahilī pattrī 1:1'")
1748
+ expect(p.parse("ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1749
+ expect(p.parse("1 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1'")
1750
+ expect(p.parse("ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1'")
1751
+ expect(p.parse("1 kurĩtʰīāṃ 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 kurĩtʰīāṃ 1:1'")
1752
+ expect(p.parse("1 ਕੁਰਿੰਥੀਆਂ 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 ਕੁਰਿੰਥੀਆਂ 1:1'")
1753
+ expect(p.parse("1Cor 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1Cor 1:1'")
1754
+ p.include_apocrypha(false)
1755
+ expect(p.parse("KURĨTʰĪĀṂ NŪ̃ PAHILĪ PATTRĪ 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'KURĨTʰĪĀṂ NŪ̃ PAHILĪ PATTRĪ 1:1'")
1756
+ expect(p.parse("ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'ਕੁਰਿੰਥੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1757
+ expect(p.parse("1 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1'")
1758
+ expect(p.parse("ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1").osis()).toEqual("1Cor.1.1", "parsing: 'ਕੁਰਿੰਥੀਆਂ ਨੂੰ 1:1'")
1759
+ expect(p.parse("1 KURĨTʰĪĀṂ 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 KURĨTʰĪĀṂ 1:1'")
1760
+ expect(p.parse("1 ਕੁਰਿੰਥੀਆਂ 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1 ਕੁਰਿੰਥੀਆਂ 1:1'")
1761
+ expect(p.parse("1COR 1:1").osis()).toEqual("1Cor.1.1", "parsing: '1COR 1:1'")
1762
+ ;
1763
+ return true;
1764
+ });
1765
+ });
1766
+
1767
+ describe("Localized book Gal (pa)", function() {
1768
+ var p;
1769
+ p = {};
1770
+ beforeEach(function() {
1771
+ p = new bcv_parser();
1772
+ p.set_options({
1773
+ book_alone_strategy: "ignore",
1774
+ book_sequence_strategy: "ignore",
1775
+ osis_compaction_strategy: "bc",
1776
+ captive_end_digits_strategy: "delete"
1777
+ });
1778
+ return p.include_apocrypha(true);
1779
+ });
1780
+ return it("should handle book: Gal (pa)", function() {
1781
+
1782
+ expect(p.parse("galātīāṃ nū̃ pattrī 1:1").osis()).toEqual("Gal.1.1", "parsing: 'galātīāṃ nū̃ pattrī 1:1'")
1783
+ expect(p.parse("ਗਲਾਤੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Gal.1.1", "parsing: 'ਗਲਾਤੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1784
+ expect(p.parse("ਗਲਾਤੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Gal.1.1", "parsing: 'ਗਲਾਤੀਆਂ ਨੂੰ 1:1'")
1785
+ expect(p.parse("galātīāṃ 1:1").osis()).toEqual("Gal.1.1", "parsing: 'galātīāṃ 1:1'")
1786
+ expect(p.parse("Gal 1:1").osis()).toEqual("Gal.1.1", "parsing: 'Gal 1:1'")
1787
+ p.include_apocrypha(false)
1788
+ expect(p.parse("GALĀTĪĀṂ NŪ̃ PATTRĪ 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GALĀTĪĀṂ NŪ̃ PATTRĪ 1:1'")
1789
+ expect(p.parse("ਗਲਾਤੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Gal.1.1", "parsing: 'ਗਲਾਤੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1790
+ expect(p.parse("ਗਲਾਤੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Gal.1.1", "parsing: 'ਗਲਾਤੀਆਂ ਨੂੰ 1:1'")
1791
+ expect(p.parse("GALĀTĪĀṂ 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GALĀTĪĀṂ 1:1'")
1792
+ expect(p.parse("GAL 1:1").osis()).toEqual("Gal.1.1", "parsing: 'GAL 1:1'")
1793
+ ;
1794
+ return true;
1795
+ });
1796
+ });
1797
+
1798
+ describe("Localized book Eph (pa)", function() {
1799
+ var p;
1800
+ p = {};
1801
+ beforeEach(function() {
1802
+ p = new bcv_parser();
1803
+ p.set_options({
1804
+ book_alone_strategy: "ignore",
1805
+ book_sequence_strategy: "ignore",
1806
+ osis_compaction_strategy: "bc",
1807
+ captive_end_digits_strategy: "delete"
1808
+ });
1809
+ return p.include_apocrypha(true);
1810
+ });
1811
+ return it("should handle book: Eph (pa)", function() {
1812
+
1813
+ expect(p.parse("afasīāṃ nū̃ pattrī 1:1").osis()).toEqual("Eph.1.1", "parsing: 'afasīāṃ nū̃ pattrī 1:1'")
1814
+ expect(p.parse("ਅਫ਼ਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Eph.1.1", "parsing: 'ਅਫ਼ਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1815
+ expect(p.parse("ਅਫ਼ਸੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Eph.1.1", "parsing: 'ਅਫ਼ਸੀਆਂ ਨੂੰ 1:1'")
1816
+ expect(p.parse("afasīāṃ 1:1").osis()).toEqual("Eph.1.1", "parsing: 'afasīāṃ 1:1'")
1817
+ expect(p.parse("Eph 1:1").osis()).toEqual("Eph.1.1", "parsing: 'Eph 1:1'")
1818
+ p.include_apocrypha(false)
1819
+ expect(p.parse("AFASĪĀṂ NŪ̃ PATTRĪ 1:1").osis()).toEqual("Eph.1.1", "parsing: 'AFASĪĀṂ NŪ̃ PATTRĪ 1:1'")
1820
+ expect(p.parse("ਅਫ਼ਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Eph.1.1", "parsing: 'ਅਫ਼ਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1821
+ expect(p.parse("ਅਫ਼ਸੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Eph.1.1", "parsing: 'ਅਫ਼ਸੀਆਂ ਨੂੰ 1:1'")
1822
+ expect(p.parse("AFASĪĀṂ 1:1").osis()).toEqual("Eph.1.1", "parsing: 'AFASĪĀṂ 1:1'")
1823
+ expect(p.parse("EPH 1:1").osis()).toEqual("Eph.1.1", "parsing: 'EPH 1:1'")
1824
+ ;
1825
+ return true;
1826
+ });
1827
+ });
1828
+
1829
+ describe("Localized book Phil (pa)", function() {
1830
+ var p;
1831
+ p = {};
1832
+ beforeEach(function() {
1833
+ p = new bcv_parser();
1834
+ p.set_options({
1835
+ book_alone_strategy: "ignore",
1836
+ book_sequence_strategy: "ignore",
1837
+ osis_compaction_strategy: "bc",
1838
+ captive_end_digits_strategy: "delete"
1839
+ });
1840
+ return p.include_apocrypha(true);
1841
+ });
1842
+ return it("should handle book: Phil (pa)", function() {
1843
+
1844
+ expect(p.parse("ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Phil.1.1", "parsing: 'ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1845
+ expect(p.parse("filippīāṃ nū̃ pattrī 1:1").osis()).toEqual("Phil.1.1", "parsing: 'filippīāṃ nū̃ pattrī 1:1'")
1846
+ expect(p.parse("ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Phil.1.1", "parsing: 'ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ 1:1'")
1847
+ expect(p.parse("filippīāṃ 1:1").osis()).toEqual("Phil.1.1", "parsing: 'filippīāṃ 1:1'")
1848
+ expect(p.parse("Phil 1:1").osis()).toEqual("Phil.1.1", "parsing: 'Phil 1:1'")
1849
+ p.include_apocrypha(false)
1850
+ expect(p.parse("ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Phil.1.1", "parsing: 'ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1851
+ expect(p.parse("FILIPPĪĀṂ NŪ̃ PATTRĪ 1:1").osis()).toEqual("Phil.1.1", "parsing: 'FILIPPĪĀṂ NŪ̃ PATTRĪ 1:1'")
1852
+ expect(p.parse("ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Phil.1.1", "parsing: 'ਫ਼ਿਲਿੱਪੀਆਂ ਨੂੰ 1:1'")
1853
+ expect(p.parse("FILIPPĪĀṂ 1:1").osis()).toEqual("Phil.1.1", "parsing: 'FILIPPĪĀṂ 1:1'")
1854
+ expect(p.parse("PHIL 1:1").osis()).toEqual("Phil.1.1", "parsing: 'PHIL 1:1'")
1855
+ ;
1856
+ return true;
1857
+ });
1858
+ });
1859
+
1860
+ describe("Localized book Col (pa)", function() {
1861
+ var p;
1862
+ p = {};
1863
+ beforeEach(function() {
1864
+ p = new bcv_parser();
1865
+ p.set_options({
1866
+ book_alone_strategy: "ignore",
1867
+ book_sequence_strategy: "ignore",
1868
+ osis_compaction_strategy: "bc",
1869
+ captive_end_digits_strategy: "delete"
1870
+ });
1871
+ return p.include_apocrypha(true);
1872
+ });
1873
+ return it("should handle book: Col (pa)", function() {
1874
+
1875
+ expect(p.parse("kulussīāṃ nū̃ pattrī 1:1").osis()).toEqual("Col.1.1", "parsing: 'kulussīāṃ nū̃ pattrī 1:1'")
1876
+ expect(p.parse("ਕੁਲੁੱਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Col.1.1", "parsing: 'ਕੁਲੁੱਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1877
+ expect(p.parse("ਕੁਲੁੱਸੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Col.1.1", "parsing: 'ਕੁਲੁੱਸੀਆਂ ਨੂੰ 1:1'")
1878
+ expect(p.parse("kulussīāṃ 1:1").osis()).toEqual("Col.1.1", "parsing: 'kulussīāṃ 1:1'")
1879
+ expect(p.parse("Col 1:1").osis()).toEqual("Col.1.1", "parsing: 'Col 1:1'")
1880
+ p.include_apocrypha(false)
1881
+ expect(p.parse("KULUSSĪĀṂ NŪ̃ PATTRĪ 1:1").osis()).toEqual("Col.1.1", "parsing: 'KULUSSĪĀṂ NŪ̃ PATTRĪ 1:1'")
1882
+ expect(p.parse("ਕੁਲੁੱਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Col.1.1", "parsing: 'ਕੁਲੁੱਸੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
1883
+ expect(p.parse("ਕੁਲੁੱਸੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Col.1.1", "parsing: 'ਕੁਲੁੱਸੀਆਂ ਨੂੰ 1:1'")
1884
+ expect(p.parse("KULUSSĪĀṂ 1:1").osis()).toEqual("Col.1.1", "parsing: 'KULUSSĪĀṂ 1:1'")
1885
+ expect(p.parse("COL 1:1").osis()).toEqual("Col.1.1", "parsing: 'COL 1:1'")
1886
+ ;
1887
+ return true;
1888
+ });
1889
+ });
1890
+
1891
+ describe("Localized book 2Thess (pa)", function() {
1892
+ var p;
1893
+ p = {};
1894
+ beforeEach(function() {
1895
+ p = new bcv_parser();
1896
+ p.set_options({
1897
+ book_alone_strategy: "ignore",
1898
+ book_sequence_strategy: "ignore",
1899
+ osis_compaction_strategy: "bc",
1900
+ captive_end_digits_strategy: "delete"
1901
+ });
1902
+ return p.include_apocrypha(true);
1903
+ });
1904
+ return it("should handle book: 2Thess (pa)", function() {
1905
+
1906
+ expect(p.parse("tʰassalunīkīāṃ nū̃ dūjī pattrī 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'tʰassalunīkīāṃ nū̃ dūjī pattrī 1:1'")
1907
+ expect(p.parse("ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1908
+ expect(p.parse("2 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1'")
1909
+ expect(p.parse("2 tʰassalunīkīāṃ 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 tʰassalunīkīāṃ 1:1'")
1910
+ expect(p.parse("2Thess 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2Thess 1:1'")
1911
+ p.include_apocrypha(false)
1912
+ expect(p.parse("TʰASSALUNĪKĪĀṂ NŪ̃ DŪJĪ PATTRĪ 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'TʰASSALUNĪKĪĀṂ NŪ̃ DŪJĪ PATTRĪ 1:1'")
1913
+ expect(p.parse("ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Thess.1.1", "parsing: 'ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1914
+ expect(p.parse("2 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1'")
1915
+ expect(p.parse("2 TʰASSALUNĪKĪĀṂ 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2 TʰASSALUNĪKĪĀṂ 1:1'")
1916
+ expect(p.parse("2THESS 1:1").osis()).toEqual("2Thess.1.1", "parsing: '2THESS 1:1'")
1917
+ ;
1918
+ return true;
1919
+ });
1920
+ });
1921
+
1922
+ describe("Localized book 1Thess (pa)", function() {
1923
+ var p;
1924
+ p = {};
1925
+ beforeEach(function() {
1926
+ p = new bcv_parser();
1927
+ p.set_options({
1928
+ book_alone_strategy: "ignore",
1929
+ book_sequence_strategy: "ignore",
1930
+ osis_compaction_strategy: "bc",
1931
+ captive_end_digits_strategy: "delete"
1932
+ });
1933
+ return p.include_apocrypha(true);
1934
+ });
1935
+ return it("should handle book: 1Thess (pa)", function() {
1936
+
1937
+ expect(p.parse("tʰassalunīkīāṃ nū̃ pahilī pattrī 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'tʰassalunīkīāṃ nū̃ pahilī pattrī 1:1'")
1938
+ expect(p.parse("ਥਸੱਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'ਥਸੱਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1939
+ expect(p.parse("ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1940
+ expect(p.parse("1 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1'")
1941
+ expect(p.parse("1 tʰassalunīkīāṃ 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 tʰassalunīkīāṃ 1:1'")
1942
+ expect(p.parse("1Thess 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1Thess 1:1'")
1943
+ p.include_apocrypha(false)
1944
+ expect(p.parse("TʰASSALUNĪKĪĀṂ NŪ̃ PAHILĪ PATTRĪ 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'TʰASSALUNĪKĪĀṂ NŪ̃ PAHILĪ PATTRĪ 1:1'")
1945
+ expect(p.parse("ਥਸੱਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'ਥਸੱਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1946
+ expect(p.parse("ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Thess.1.1", "parsing: 'ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
1947
+ expect(p.parse("1 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 ਥੱਸਲੁਨੀਕੀਆਂ ਨੂੰ 1:1'")
1948
+ expect(p.parse("1 TʰASSALUNĪKĪĀṂ 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1 TʰASSALUNĪKĪĀṂ 1:1'")
1949
+ expect(p.parse("1THESS 1:1").osis()).toEqual("1Thess.1.1", "parsing: '1THESS 1:1'")
1950
+ ;
1951
+ return true;
1952
+ });
1953
+ });
1954
+
1955
+ describe("Localized book 2Tim (pa)", function() {
1956
+ var p;
1957
+ p = {};
1958
+ beforeEach(function() {
1959
+ p = new bcv_parser();
1960
+ p.set_options({
1961
+ book_alone_strategy: "ignore",
1962
+ book_sequence_strategy: "ignore",
1963
+ osis_compaction_strategy: "bc",
1964
+ captive_end_digits_strategy: "delete"
1965
+ });
1966
+ return p.include_apocrypha(true);
1967
+ });
1968
+ return it("should handle book: 2Tim (pa)", function() {
1969
+
1970
+ expect(p.parse("timotʰius nū̃ dūjī pattrī 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'timotʰius nū̃ dūjī pattrī 1:1'")
1971
+ expect(p.parse("ਤਿਮੋਥਿਉਸ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'ਤਿਮੋਥਿਉਸ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1972
+ expect(p.parse("2 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1'")
1973
+ expect(p.parse("2 timotʰius 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 timotʰius 1:1'")
1974
+ expect(p.parse("2Tim 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2Tim 1:1'")
1975
+ p.include_apocrypha(false)
1976
+ expect(p.parse("TIMOTʰIUS NŪ̃ DŪJĪ PATTRĪ 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'TIMOTʰIUS NŪ̃ DŪJĪ PATTRĪ 1:1'")
1977
+ expect(p.parse("ਤਿਮੋਥਿਉਸ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Tim.1.1", "parsing: 'ਤਿਮੋਥਿਉਸ ਨੂੰ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
1978
+ expect(p.parse("2 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1'")
1979
+ expect(p.parse("2 TIMOTʰIUS 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2 TIMOTʰIUS 1:1'")
1980
+ expect(p.parse("2TIM 1:1").osis()).toEqual("2Tim.1.1", "parsing: '2TIM 1:1'")
1981
+ ;
1982
+ return true;
1983
+ });
1984
+ });
1985
+
1986
+ describe("Localized book 1Tim (pa)", function() {
1987
+ var p;
1988
+ p = {};
1989
+ beforeEach(function() {
1990
+ p = new bcv_parser();
1991
+ p.set_options({
1992
+ book_alone_strategy: "ignore",
1993
+ book_sequence_strategy: "ignore",
1994
+ osis_compaction_strategy: "bc",
1995
+ captive_end_digits_strategy: "delete"
1996
+ });
1997
+ return p.include_apocrypha(true);
1998
+ });
1999
+ return it("should handle book: 1Tim (pa)", function() {
2000
+
2001
+ expect(p.parse("timotʰius nū̃ pahilī pattrī 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'timotʰius nū̃ pahilī pattrī 1:1'")
2002
+ expect(p.parse("ਤਿਮੋਥਿਉਸ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'ਤਿਮੋਥਿਉਸ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
2003
+ expect(p.parse("1 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1'")
2004
+ expect(p.parse("1 timotʰius 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 timotʰius 1:1'")
2005
+ expect(p.parse("1Tim 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1Tim 1:1'")
2006
+ p.include_apocrypha(false)
2007
+ expect(p.parse("TIMOTʰIUS NŪ̃ PAHILĪ PATTRĪ 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'TIMOTʰIUS NŪ̃ PAHILĪ PATTRĪ 1:1'")
2008
+ expect(p.parse("ਤਿਮੋਥਿਉਸ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Tim.1.1", "parsing: 'ਤਿਮੋਥਿਉਸ ਨੂੰ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
2009
+ expect(p.parse("1 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 ਤਿਮੋਥਿਉਸ ਨੂੰ 1:1'")
2010
+ expect(p.parse("1 TIMOTʰIUS 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1 TIMOTʰIUS 1:1'")
2011
+ expect(p.parse("1TIM 1:1").osis()).toEqual("1Tim.1.1", "parsing: '1TIM 1:1'")
2012
+ ;
2013
+ return true;
2014
+ });
2015
+ });
2016
+
2017
+ describe("Localized book Titus (pa)", function() {
2018
+ var p;
2019
+ p = {};
2020
+ beforeEach(function() {
2021
+ p = new bcv_parser();
2022
+ p.set_options({
2023
+ book_alone_strategy: "ignore",
2024
+ book_sequence_strategy: "ignore",
2025
+ osis_compaction_strategy: "bc",
2026
+ captive_end_digits_strategy: "delete"
2027
+ });
2028
+ return p.include_apocrypha(true);
2029
+ });
2030
+ return it("should handle book: Titus (pa)", function() {
2031
+
2032
+ expect(p.parse("tītus nū̃ pattrī 1:1").osis()).toEqual("Titus.1.1", "parsing: 'tītus nū̃ pattrī 1:1'")
2033
+ expect(p.parse("ਤੀਤੁਸ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Titus.1.1", "parsing: 'ਤੀਤੁਸ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2034
+ expect(p.parse("ਤੀਤੁਸ ਨੂੰ 1:1").osis()).toEqual("Titus.1.1", "parsing: 'ਤੀਤੁਸ ਨੂੰ 1:1'")
2035
+ expect(p.parse("Titus 1:1").osis()).toEqual("Titus.1.1", "parsing: 'Titus 1:1'")
2036
+ expect(p.parse("tītus 1:1").osis()).toEqual("Titus.1.1", "parsing: 'tītus 1:1'")
2037
+ expect(p.parse("ਤੀਤੁਸ 1:1").osis()).toEqual("Titus.1.1", "parsing: 'ਤੀਤੁਸ 1:1'")
2038
+ p.include_apocrypha(false)
2039
+ expect(p.parse("TĪTUS NŪ̃ PATTRĪ 1:1").osis()).toEqual("Titus.1.1", "parsing: 'TĪTUS NŪ̃ PATTRĪ 1:1'")
2040
+ expect(p.parse("ਤੀਤੁਸ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Titus.1.1", "parsing: 'ਤੀਤੁਸ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2041
+ expect(p.parse("ਤੀਤੁਸ ਨੂੰ 1:1").osis()).toEqual("Titus.1.1", "parsing: 'ਤੀਤੁਸ ਨੂੰ 1:1'")
2042
+ expect(p.parse("TITUS 1:1").osis()).toEqual("Titus.1.1", "parsing: 'TITUS 1:1'")
2043
+ expect(p.parse("TĪTUS 1:1").osis()).toEqual("Titus.1.1", "parsing: 'TĪTUS 1:1'")
2044
+ expect(p.parse("ਤੀਤੁਸ 1:1").osis()).toEqual("Titus.1.1", "parsing: 'ਤੀਤੁਸ 1:1'")
2045
+ ;
2046
+ return true;
2047
+ });
2048
+ });
2049
+
2050
+ describe("Localized book Phlm (pa)", function() {
2051
+ var p;
2052
+ p = {};
2053
+ beforeEach(function() {
2054
+ p = new bcv_parser();
2055
+ p.set_options({
2056
+ book_alone_strategy: "ignore",
2057
+ book_sequence_strategy: "ignore",
2058
+ osis_compaction_strategy: "bc",
2059
+ captive_end_digits_strategy: "delete"
2060
+ });
2061
+ return p.include_apocrypha(true);
2062
+ });
2063
+ return it("should handle book: Phlm (pa)", function() {
2064
+
2065
+ expect(p.parse("pʰilemon nū̃ pattrī 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'pʰilemon nū̃ pattrī 1:1'")
2066
+ expect(p.parse("ਫ਼ਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'ਫ਼ਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2067
+ expect(p.parse("ਫਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'ਫਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2068
+ expect(p.parse("ਫ਼ਿਲੇਮੋਨ ਨੂੰ 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'ਫ਼ਿਲੇਮੋਨ ਨੂੰ 1:1'")
2069
+ expect(p.parse("pʰilemon 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'pʰilemon 1:1'")
2070
+ expect(p.parse("Phlm 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'Phlm 1:1'")
2071
+ p.include_apocrypha(false)
2072
+ expect(p.parse("PʰILEMON NŪ̃ PATTRĪ 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'PʰILEMON NŪ̃ PATTRĪ 1:1'")
2073
+ expect(p.parse("ਫ਼ਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'ਫ਼ਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2074
+ expect(p.parse("ਫਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'ਫਿਲੇਮੋਨ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2075
+ expect(p.parse("ਫ਼ਿਲੇਮੋਨ ਨੂੰ 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'ਫ਼ਿਲੇਮੋਨ ਨੂੰ 1:1'")
2076
+ expect(p.parse("PʰILEMON 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'PʰILEMON 1:1'")
2077
+ expect(p.parse("PHLM 1:1").osis()).toEqual("Phlm.1.1", "parsing: 'PHLM 1:1'")
2078
+ ;
2079
+ return true;
2080
+ });
2081
+ });
2082
+
2083
+ describe("Localized book Heb (pa)", function() {
2084
+ var p;
2085
+ p = {};
2086
+ beforeEach(function() {
2087
+ p = new bcv_parser();
2088
+ p.set_options({
2089
+ book_alone_strategy: "ignore",
2090
+ book_sequence_strategy: "ignore",
2091
+ osis_compaction_strategy: "bc",
2092
+ captive_end_digits_strategy: "delete"
2093
+ });
2094
+ return p.include_apocrypha(true);
2095
+ });
2096
+ return it("should handle book: Heb (pa)", function() {
2097
+
2098
+ expect(p.parse("ibrānīāṃ nū̃ pattrī 1:1").osis()).toEqual("Heb.1.1", "parsing: 'ibrānīāṃ nū̃ pattrī 1:1'")
2099
+ expect(p.parse("ਇਬਰਾਨੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Heb.1.1", "parsing: 'ਇਬਰਾਨੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2100
+ expect(p.parse("ਇਬਰਾਨੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Heb.1.1", "parsing: 'ਇਬਰਾਨੀਆਂ ਨੂੰ 1:1'")
2101
+ expect(p.parse("ibrānīāṃ 1:1").osis()).toEqual("Heb.1.1", "parsing: 'ibrānīāṃ 1:1'")
2102
+ expect(p.parse("Heb 1:1").osis()).toEqual("Heb.1.1", "parsing: 'Heb 1:1'")
2103
+ p.include_apocrypha(false)
2104
+ expect(p.parse("IBRĀNĪĀṂ NŪ̃ PATTRĪ 1:1").osis()).toEqual("Heb.1.1", "parsing: 'IBRĀNĪĀṂ NŪ̃ PATTRĪ 1:1'")
2105
+ expect(p.parse("ਇਬਰਾਨੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Heb.1.1", "parsing: 'ਇਬਰਾਨੀਆਂ ਨੂੰ ਪੱਤ੍ਰੀ 1:1'")
2106
+ expect(p.parse("ਇਬਰਾਨੀਆਂ ਨੂੰ 1:1").osis()).toEqual("Heb.1.1", "parsing: 'ਇਬਰਾਨੀਆਂ ਨੂੰ 1:1'")
2107
+ expect(p.parse("IBRĀNĪĀṂ 1:1").osis()).toEqual("Heb.1.1", "parsing: 'IBRĀNĪĀṂ 1:1'")
2108
+ expect(p.parse("HEB 1:1").osis()).toEqual("Heb.1.1", "parsing: 'HEB 1:1'")
2109
+ ;
2110
+ return true;
2111
+ });
2112
+ });
2113
+
2114
+ describe("Localized book Jas (pa)", function() {
2115
+ var p;
2116
+ p = {};
2117
+ beforeEach(function() {
2118
+ p = new bcv_parser();
2119
+ p.set_options({
2120
+ book_alone_strategy: "ignore",
2121
+ book_sequence_strategy: "ignore",
2122
+ osis_compaction_strategy: "bc",
2123
+ captive_end_digits_strategy: "delete"
2124
+ });
2125
+ return p.include_apocrypha(true);
2126
+ });
2127
+ return it("should handle book: Jas (pa)", function() {
2128
+
2129
+ expect(p.parse("yākūb dī pattrī 1:1").osis()).toEqual("Jas.1.1", "parsing: 'yākūb dī pattrī 1:1'")
2130
+ expect(p.parse("ਯਾਕੂਬ ਦੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Jas.1.1", "parsing: 'ਯਾਕੂਬ ਦੀ ਪੱਤ੍ਰੀ 1:1'")
2131
+ expect(p.parse("yākūb 1:1").osis()).toEqual("Jas.1.1", "parsing: 'yākūb 1:1'")
2132
+ expect(p.parse("ਯਾਕੂਬ 1:1").osis()).toEqual("Jas.1.1", "parsing: 'ਯਾਕੂਬ 1:1'")
2133
+ expect(p.parse("Jas 1:1").osis()).toEqual("Jas.1.1", "parsing: 'Jas 1:1'")
2134
+ p.include_apocrypha(false)
2135
+ expect(p.parse("YĀKŪB DĪ PATTRĪ 1:1").osis()).toEqual("Jas.1.1", "parsing: 'YĀKŪB DĪ PATTRĪ 1:1'")
2136
+ expect(p.parse("ਯਾਕੂਬ ਦੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Jas.1.1", "parsing: 'ਯਾਕੂਬ ਦੀ ਪੱਤ੍ਰੀ 1:1'")
2137
+ expect(p.parse("YĀKŪB 1:1").osis()).toEqual("Jas.1.1", "parsing: 'YĀKŪB 1:1'")
2138
+ expect(p.parse("ਯਾਕੂਬ 1:1").osis()).toEqual("Jas.1.1", "parsing: 'ਯਾਕੂਬ 1:1'")
2139
+ expect(p.parse("JAS 1:1").osis()).toEqual("Jas.1.1", "parsing: 'JAS 1:1'")
2140
+ ;
2141
+ return true;
2142
+ });
2143
+ });
2144
+
2145
+ describe("Localized book 2Pet (pa)", function() {
2146
+ var p;
2147
+ p = {};
2148
+ beforeEach(function() {
2149
+ p = new bcv_parser();
2150
+ p.set_options({
2151
+ book_alone_strategy: "ignore",
2152
+ book_sequence_strategy: "ignore",
2153
+ osis_compaction_strategy: "bc",
2154
+ captive_end_digits_strategy: "delete"
2155
+ });
2156
+ return p.include_apocrypha(true);
2157
+ });
2158
+ return it("should handle book: 2Pet (pa)", function() {
2159
+
2160
+ expect(p.parse("patras dī dūjī pattrī 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'patras dī dūjī pattrī 1:1'")
2161
+ expect(p.parse("ਪਤਰਸ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'ਪਤਰਸ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
2162
+ expect(p.parse("2 patras 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 patras 1:1'")
2163
+ expect(p.parse("2 ਪਤਰਸ 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 ਪਤਰਸ 1:1'")
2164
+ expect(p.parse("2Pet 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2Pet 1:1'")
2165
+ p.include_apocrypha(false)
2166
+ expect(p.parse("PATRAS DĪ DŪJĪ PATTRĪ 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'PATRAS DĪ DŪJĪ PATTRĪ 1:1'")
2167
+ expect(p.parse("ਪਤਰਸ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("2Pet.1.1", "parsing: 'ਪਤਰਸ ਦੀ ਦੂਜੀ ਪੱਤ੍ਰੀ 1:1'")
2168
+ expect(p.parse("2 PATRAS 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 PATRAS 1:1'")
2169
+ expect(p.parse("2 ਪਤਰਸ 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2 ਪਤਰਸ 1:1'")
2170
+ expect(p.parse("2PET 1:1").osis()).toEqual("2Pet.1.1", "parsing: '2PET 1:1'")
2171
+ ;
2172
+ return true;
2173
+ });
2174
+ });
2175
+
2176
+ describe("Localized book 1Pet (pa)", function() {
2177
+ var p;
2178
+ p = {};
2179
+ beforeEach(function() {
2180
+ p = new bcv_parser();
2181
+ p.set_options({
2182
+ book_alone_strategy: "ignore",
2183
+ book_sequence_strategy: "ignore",
2184
+ osis_compaction_strategy: "bc",
2185
+ captive_end_digits_strategy: "delete"
2186
+ });
2187
+ return p.include_apocrypha(true);
2188
+ });
2189
+ return it("should handle book: 1Pet (pa)", function() {
2190
+
2191
+ expect(p.parse("patras dī pahilī pattrī 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'patras dī pahilī pattrī 1:1'")
2192
+ expect(p.parse("ਪਤਰਸ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'ਪਤਰਸ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
2193
+ expect(p.parse("1 patras 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 patras 1:1'")
2194
+ expect(p.parse("1 ਪਤਰਸ 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 ਪਤਰਸ 1:1'")
2195
+ expect(p.parse("1Pet 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1Pet 1:1'")
2196
+ p.include_apocrypha(false)
2197
+ expect(p.parse("PATRAS DĪ PAHILĪ PATTRĪ 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'PATRAS DĪ PAHILĪ PATTRĪ 1:1'")
2198
+ expect(p.parse("ਪਤਰਸ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("1Pet.1.1", "parsing: 'ਪਤਰਸ ਦੀ ਪਹਿਲੀ ਪੱਤ੍ਰੀ 1:1'")
2199
+ expect(p.parse("1 PATRAS 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 PATRAS 1:1'")
2200
+ expect(p.parse("1 ਪਤਰਸ 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1 ਪਤਰਸ 1:1'")
2201
+ expect(p.parse("1PET 1:1").osis()).toEqual("1Pet.1.1", "parsing: '1PET 1:1'")
2202
+ ;
2203
+ return true;
2204
+ });
2205
+ });
2206
+
2207
+ describe("Localized book Jude (pa)", function() {
2208
+ var p;
2209
+ p = {};
2210
+ beforeEach(function() {
2211
+ p = new bcv_parser();
2212
+ p.set_options({
2213
+ book_alone_strategy: "ignore",
2214
+ book_sequence_strategy: "ignore",
2215
+ osis_compaction_strategy: "bc",
2216
+ captive_end_digits_strategy: "delete"
2217
+ });
2218
+ return p.include_apocrypha(true);
2219
+ });
2220
+ return it("should handle book: Jude (pa)", function() {
2221
+
2222
+ expect(p.parse("yahūdāh dī pattrī 1:1").osis()).toEqual("Jude.1.1", "parsing: 'yahūdāh dī pattrī 1:1'")
2223
+ expect(p.parse("ਯਹੂਦਾਹ ਦੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Jude.1.1", "parsing: 'ਯਹੂਦਾਹ ਦੀ ਪੱਤ੍ਰੀ 1:1'")
2224
+ expect(p.parse("yahūdāh 1:1").osis()).toEqual("Jude.1.1", "parsing: 'yahūdāh 1:1'")
2225
+ expect(p.parse("ਯਹੂਦਾਹ 1:1").osis()).toEqual("Jude.1.1", "parsing: 'ਯਹੂਦਾਹ 1:1'")
2226
+ expect(p.parse("Jude 1:1").osis()).toEqual("Jude.1.1", "parsing: 'Jude 1:1'")
2227
+ p.include_apocrypha(false)
2228
+ expect(p.parse("YAHŪDĀH DĪ PATTRĪ 1:1").osis()).toEqual("Jude.1.1", "parsing: 'YAHŪDĀH DĪ PATTRĪ 1:1'")
2229
+ expect(p.parse("ਯਹੂਦਾਹ ਦੀ ਪੱਤ੍ਰੀ 1:1").osis()).toEqual("Jude.1.1", "parsing: 'ਯਹੂਦਾਹ ਦੀ ਪੱਤ੍ਰੀ 1:1'")
2230
+ expect(p.parse("YAHŪDĀH 1:1").osis()).toEqual("Jude.1.1", "parsing: 'YAHŪDĀH 1:1'")
2231
+ expect(p.parse("ਯਹੂਦਾਹ 1:1").osis()).toEqual("Jude.1.1", "parsing: 'ਯਹੂਦਾਹ 1:1'")
2232
+ expect(p.parse("JUDE 1:1").osis()).toEqual("Jude.1.1", "parsing: 'JUDE 1:1'")
2233
+ ;
2234
+ return true;
2235
+ });
2236
+ });
2237
+
2238
+ describe("Localized book Tob (pa)", function() {
2239
+ var p;
2240
+ p = {};
2241
+ beforeEach(function() {
2242
+ p = new bcv_parser();
2243
+ p.set_options({
2244
+ book_alone_strategy: "ignore",
2245
+ book_sequence_strategy: "ignore",
2246
+ osis_compaction_strategy: "bc",
2247
+ captive_end_digits_strategy: "delete"
2248
+ });
2249
+ return p.include_apocrypha(true);
2250
+ });
2251
+ return it("should handle book: Tob (pa)", function() {
2252
+
2253
+ expect(p.parse("Tob 1:1").osis()).toEqual("Tob.1.1", "parsing: 'Tob 1:1'")
2254
+ ;
2255
+ return true;
2256
+ });
2257
+ });
2258
+
2259
+ describe("Localized book Jdt (pa)", function() {
2260
+ var p;
2261
+ p = {};
2262
+ beforeEach(function() {
2263
+ p = new bcv_parser();
2264
+ p.set_options({
2265
+ book_alone_strategy: "ignore",
2266
+ book_sequence_strategy: "ignore",
2267
+ osis_compaction_strategy: "bc",
2268
+ captive_end_digits_strategy: "delete"
2269
+ });
2270
+ return p.include_apocrypha(true);
2271
+ });
2272
+ return it("should handle book: Jdt (pa)", function() {
2273
+
2274
+ expect(p.parse("Jdt 1:1").osis()).toEqual("Jdt.1.1", "parsing: 'Jdt 1:1'")
2275
+ ;
2276
+ return true;
2277
+ });
2278
+ });
2279
+
2280
+ describe("Localized book Bar (pa)", function() {
2281
+ var p;
2282
+ p = {};
2283
+ beforeEach(function() {
2284
+ p = new bcv_parser();
2285
+ p.set_options({
2286
+ book_alone_strategy: "ignore",
2287
+ book_sequence_strategy: "ignore",
2288
+ osis_compaction_strategy: "bc",
2289
+ captive_end_digits_strategy: "delete"
2290
+ });
2291
+ return p.include_apocrypha(true);
2292
+ });
2293
+ return it("should handle book: Bar (pa)", function() {
2294
+
2295
+ expect(p.parse("Bar 1:1").osis()).toEqual("Bar.1.1", "parsing: 'Bar 1:1'")
2296
+ ;
2297
+ return true;
2298
+ });
2299
+ });
2300
+
2301
+ describe("Localized book Sus (pa)", function() {
2302
+ var p;
2303
+ p = {};
2304
+ beforeEach(function() {
2305
+ p = new bcv_parser();
2306
+ p.set_options({
2307
+ book_alone_strategy: "ignore",
2308
+ book_sequence_strategy: "ignore",
2309
+ osis_compaction_strategy: "bc",
2310
+ captive_end_digits_strategy: "delete"
2311
+ });
2312
+ return p.include_apocrypha(true);
2313
+ });
2314
+ return it("should handle book: Sus (pa)", function() {
2315
+
2316
+ expect(p.parse("Sus 1:1").osis()).toEqual("Sus.1.1", "parsing: 'Sus 1:1'")
2317
+ ;
2318
+ return true;
2319
+ });
2320
+ });
2321
+
2322
+ describe("Localized book 2Macc (pa)", function() {
2323
+ var p;
2324
+ p = {};
2325
+ beforeEach(function() {
2326
+ p = new bcv_parser();
2327
+ p.set_options({
2328
+ book_alone_strategy: "ignore",
2329
+ book_sequence_strategy: "ignore",
2330
+ osis_compaction_strategy: "bc",
2331
+ captive_end_digits_strategy: "delete"
2332
+ });
2333
+ return p.include_apocrypha(true);
2334
+ });
2335
+ return it("should handle book: 2Macc (pa)", function() {
2336
+
2337
+ expect(p.parse("2Macc 1:1").osis()).toEqual("2Macc.1.1", "parsing: '2Macc 1:1'")
2338
+ ;
2339
+ return true;
2340
+ });
2341
+ });
2342
+
2343
+ describe("Localized book 3Macc (pa)", function() {
2344
+ var p;
2345
+ p = {};
2346
+ beforeEach(function() {
2347
+ p = new bcv_parser();
2348
+ p.set_options({
2349
+ book_alone_strategy: "ignore",
2350
+ book_sequence_strategy: "ignore",
2351
+ osis_compaction_strategy: "bc",
2352
+ captive_end_digits_strategy: "delete"
2353
+ });
2354
+ return p.include_apocrypha(true);
2355
+ });
2356
+ return it("should handle book: 3Macc (pa)", function() {
2357
+
2358
+ expect(p.parse("3Macc 1:1").osis()).toEqual("3Macc.1.1", "parsing: '3Macc 1:1'")
2359
+ ;
2360
+ return true;
2361
+ });
2362
+ });
2363
+
2364
+ describe("Localized book 4Macc (pa)", function() {
2365
+ var p;
2366
+ p = {};
2367
+ beforeEach(function() {
2368
+ p = new bcv_parser();
2369
+ p.set_options({
2370
+ book_alone_strategy: "ignore",
2371
+ book_sequence_strategy: "ignore",
2372
+ osis_compaction_strategy: "bc",
2373
+ captive_end_digits_strategy: "delete"
2374
+ });
2375
+ return p.include_apocrypha(true);
2376
+ });
2377
+ return it("should handle book: 4Macc (pa)", function() {
2378
+
2379
+ expect(p.parse("4Macc 1:1").osis()).toEqual("4Macc.1.1", "parsing: '4Macc 1:1'")
2380
+ ;
2381
+ return true;
2382
+ });
2383
+ });
2384
+
2385
+ describe("Localized book 1Macc (pa)", function() {
2386
+ var p;
2387
+ p = {};
2388
+ beforeEach(function() {
2389
+ p = new bcv_parser();
2390
+ p.set_options({
2391
+ book_alone_strategy: "ignore",
2392
+ book_sequence_strategy: "ignore",
2393
+ osis_compaction_strategy: "bc",
2394
+ captive_end_digits_strategy: "delete"
2395
+ });
2396
+ return p.include_apocrypha(true);
2397
+ });
2398
+ return it("should handle book: 1Macc (pa)", function() {
2399
+
2400
+ expect(p.parse("1Macc 1:1").osis()).toEqual("1Macc.1.1", "parsing: '1Macc 1:1'")
2401
+ ;
2402
+ return true;
2403
+ });
2404
+ });
2405
+
2406
+ describe("Miscellaneous tests", function() {
2407
+ var p;
2408
+ p = {};
2409
+ beforeEach(function() {
2410
+ p = new bcv_parser();
2411
+ p.set_options({
2412
+ book_alone_strategy: "ignore",
2413
+ book_sequence_strategy: "ignore",
2414
+ osis_compaction_strategy: "bc",
2415
+ captive_end_digits_strategy: "delete"
2416
+ });
2417
+ return p.include_apocrypha(true);
2418
+ });
2419
+ it("should return the expected language", function() {
2420
+ return expect(p.languages).toEqual(["pa"]);
2421
+ });
2422
+ it("should handle ranges (pa)", function() {
2423
+ expect(p.parse("Titus 1:1 - 2").osis()).toEqual("Titus.1.1-Titus.1.2", "parsing: 'Titus 1:1 - 2'");
2424
+ expect(p.parse("Matt 1-2").osis()).toEqual("Matt.1-Matt.2", "parsing: 'Matt 1-2'");
2425
+ return expect(p.parse("Phlm 2 - 3").osis()).toEqual("Phlm.1.2-Phlm.1.3", "parsing: 'Phlm 2 - 3'");
2426
+ });
2427
+ it("should handle chapters (pa)", function() {
2428
+ expect(p.parse("Titus 1:1, chapter 2").osis()).toEqual("Titus.1.1,Titus.2", "parsing: 'Titus 1:1, chapter 2'");
2429
+ return expect(p.parse("Matt 3:4 CHAPTER 6").osis()).toEqual("Matt.3.4,Matt.6", "parsing: 'Matt 3:4 CHAPTER 6'");
2430
+ });
2431
+ it("should handle verses (pa)", function() {
2432
+ expect(p.parse("Exod 1:1 ਪਦ 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 ਪਦ 3'");
2433
+ return expect(p.parse("Phlm ਪਦ 6").osis()).toEqual("Phlm.1.6", "parsing: 'Phlm ਪਦ 6'");
2434
+ });
2435
+ it("should handle 'and' (pa)", function() {
2436
+ expect(p.parse("Exod 1:1 ਜਾਂ 3").osis()).toEqual("Exod.1.1,Exod.1.3", "parsing: 'Exod 1:1 ਜਾਂ 3'");
2437
+ return expect(p.parse("Phlm 2 ਜਾਂ 6").osis()).toEqual("Phlm.1.2,Phlm.1.6", "parsing: 'Phlm 2 ਜਾਂ 6'");
2438
+ });
2439
+ it("should handle titles (pa)", function() {
2440
+ 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'");
2441
+ 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'");
2442
+ });
2443
+ it("should handle 'ff' (pa)", function() {
2444
+ expect(p.parse("Rev 3ff, 4:2ff").osis()).toEqual("Rev.3-Rev.22,Rev.4.2-Rev.4.11", "parsing: 'Rev 3ff, 4:2ff'");
2445
+ 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'");
2446
+ });
2447
+ it("should handle translations (pa)", function() {
2448
+ expect(p.parse("Lev 1 (ERV)").osis_and_translations()).toEqual([["Lev.1", "ERV"]]);
2449
+ return expect(p.parse("lev 1 erv").osis_and_translations()).toEqual([["Lev.1", "ERV"]]);
2450
+ });
2451
+ return it("should handle boundaries (pa)", function() {
2452
+ p.set_options({
2453
+ book_alone_strategy: "full"
2454
+ });
2455
+ expect(p.parse("\u2014Matt\u2014").osis()).toEqual("Matt.1-Matt.28", "parsing: '\u2014Matt\u2014'");
2456
+ return expect(p.parse("\u201cMatt 1:1\u201d").osis()).toEqual("Matt.1.1", "parsing: '\u201cMatt 1:1\u201d'");
2457
+ });
2458
+ });
2459
+
2460
+ }).call(this);