Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4b96fc8

Browse files
committedMay 18, 2024·
Update parse_test.ts
1 parent 98a059f commit 4b96fc8

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed
 

‎parse_test.ts

+37-37
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { parse } from "./parse.ts"
22
import { expect, test } from "@libs/testing"
33

4-
test("all")("parse() xml syntax tag", () =>
4+
test("deno", "node")("parse() xml syntax tag", () =>
55
expect(
66
parse(`
77
<root>hello world</root>
@@ -12,7 +12,7 @@ test("all")("parse() xml syntax tag", () =>
1212
},
1313
))
1414

15-
test("all")("parse(): xml syntax tag with attributes", () =>
15+
test("deno", "node")("parse(): xml syntax tag with attributes", () =>
1616
expect(
1717
parse(`
1818
<root lang="en" type="greeting">hello world</root>
@@ -27,7 +27,7 @@ test("all")("parse(): xml syntax tag with attributes", () =>
2727
},
2828
))
2929

30-
test("all")("parse(): xml syntax self-closing tag", () =>
30+
test("deno", "node")("parse(): xml syntax self-closing tag", () =>
3131
expect(
3232
parse(`
3333
<root/>
@@ -38,7 +38,7 @@ test("all")("parse(): xml syntax self-closing tag", () =>
3838
},
3939
))
4040

41-
test("all")("parse(): xml syntax self-closing with attributes", () =>
41+
test("deno", "node")("parse(): xml syntax self-closing with attributes", () =>
4242
expect(
4343
parse(`
4444
<root lang="en" type="greeting" text="hello world"></root>
@@ -53,7 +53,7 @@ test("all")("parse(): xml syntax self-closing with attributes", () =>
5353
},
5454
))
5555

56-
test("all")("parse(): xml syntax empty tag", () =>
56+
test("deno", "node")("parse(): xml syntax empty tag", () =>
5757
expect(
5858
parse(`
5959
<root></root>
@@ -64,7 +64,7 @@ test("all")("parse(): xml syntax empty tag", () =>
6464
},
6565
))
6666

67-
test("all")("parse(): xml syntax empty tag with attributes", () =>
67+
test("deno", "node")("parse(): xml syntax empty tag with attributes", () =>
6868
expect(
6969
parse(`
7070
<root type="test"></root>
@@ -77,7 +77,7 @@ test("all")("parse(): xml syntax empty tag with attributes", () =>
7777
},
7878
))
7979

80-
test("all")("parse(): xml syntax simple tree", () =>
80+
test("deno", "node")("parse(): xml syntax simple tree", () =>
8181
expect(
8282
parse(`
8383
<root>
@@ -96,7 +96,7 @@ test("all")("parse(): xml syntax simple tree", () =>
9696
},
9797
))
9898

99-
test("all")("parse(): xml syntax simple tree with same tags", () =>
99+
test("deno", "node")("parse(): xml syntax simple tree with same tags", () =>
100100
expect(
101101
parse(`
102102
<root>
@@ -114,7 +114,7 @@ test("all")("parse(): xml syntax simple tree with same tags", () =>
114114
},
115115
))
116116

117-
test("all")("parse(): xml syntax simple tree with same tags and attributes", () =>
117+
test("deno", "node")("parse(): xml syntax simple tree with same tags and attributes", () =>
118118
expect(
119119
parse(`
120120
<root>
@@ -137,7 +137,7 @@ test("all")("parse(): xml syntax simple tree with same tags and attributes", ()
137137
},
138138
))
139139

140-
test("all")("parse(): xml syntax simple tree with nested tags of same name", () =>
140+
test("deno", "node")("parse(): xml syntax simple tree with nested tags of same name", () =>
141141
expect(
142142
parse(`
143143
<root>
@@ -158,7 +158,7 @@ test("all")("parse(): xml syntax simple tree with nested tags of same name", ()
158158
},
159159
))
160160

161-
test("all")("parse(): xml syntax mixed content", () =>
161+
test("deno", "node")("parse(): xml syntax mixed content", () =>
162162
expect(
163163
parse(`
164164
<root>some <b>bold</b> text</root>
@@ -172,7 +172,7 @@ test("all")("parse(): xml syntax mixed content", () =>
172172
},
173173
))
174174

175-
test("all")("parse(): xml syntax nested mixed content", () =>
175+
test("deno", "node")("parse(): xml syntax nested mixed content", () =>
176176
expect(
177177
parse(`
178178
<root>some <b>bold <i>italic</i> </b> text</root>
@@ -189,7 +189,7 @@ test("all")("parse(): xml syntax nested mixed content", () =>
189189
},
190190
))
191191

192-
test("all")("parse(): xml syntax xml prolog", () =>
192+
test("deno", "node")("parse(): xml syntax xml prolog", () =>
193193
expect(
194194
parse(
195195
`
@@ -206,7 +206,7 @@ test("all")("parse(): xml syntax xml prolog", () =>
206206
},
207207
))
208208

209-
test.skip("all")("parse(): xml syntax xml stylesheet", () =>
209+
test.skip("deno", "node")("parse(): xml syntax xml stylesheet", () =>
210210
expect(
211211
parse(
212212
`
@@ -229,7 +229,7 @@ test.skip("all")("parse(): xml syntax xml stylesheet", () =>
229229
},
230230
))
231231

232-
test.skip("all")("parse(): xml syntax doctype", () =>
232+
test.skip("deno", "node")("parse(): xml syntax doctype", () =>
233233
expect(
234234
parse(
235235
`
@@ -247,7 +247,7 @@ test.skip("all")("parse(): xml syntax doctype", () =>
247247
},
248248
))
249249

250-
test.skip("all")("parse(): xml syntax doctype with element", () =>
250+
test.skip("deno", "node")("parse(): xml syntax doctype with element", () =>
251251
expect(
252252
parse(
253253
`
@@ -278,7 +278,7 @@ test.skip("all")("parse(): xml syntax doctype with element", () =>
278278
},
279279
))
280280

281-
test("all")("parse(): xml syntax case sensitive", () =>
281+
test("deno", "node")("parse(): xml syntax case sensitive", () =>
282282
expect(
283283
parse(`
284284
<root>
@@ -308,7 +308,7 @@ test("all")("parse(): xml syntax case sensitive", () =>
308308
},
309309
))
310310

311-
test("all")("parse(): xml syntax defined entities", () =>
311+
test("deno", "node")("parse(): xml syntax defined entities", () =>
312312
expect(
313313
parse(`
314314
<root>
@@ -321,7 +321,7 @@ test("all")("parse(): xml syntax defined entities", () =>
321321
},
322322
))
323323

324-
test("all")("parse: xml syntax decimal entity reference", () =>
324+
test("deno", "node")("parse: xml syntax decimal entity reference", () =>
325325
expect(
326326
parse(`
327327
<root>
@@ -334,7 +334,7 @@ test("all")("parse: xml syntax decimal entity reference", () =>
334334
},
335335
))
336336

337-
test("all")("parse: xml syntax hexadecimal entity reference", () =>
337+
test("deno", "node")("parse: xml syntax hexadecimal entity reference", () =>
338338
expect(
339339
parse(`
340340
<root>
@@ -347,7 +347,7 @@ test("all")("parse: xml syntax hexadecimal entity reference", () =>
347347
},
348348
))
349349

350-
test("all")("parse(): xml syntax comments", () =>
350+
test("deno", "node")("parse(): xml syntax comments", () =>
351351
expect(
352352
parse(`
353353
<root>
@@ -368,7 +368,7 @@ test("all")("parse(): xml syntax comments", () =>
368368
},
369369
))
370370

371-
test("all")("parse(): xml syntax white spaces preserved", () =>
371+
test("deno", "node")("parse(): xml syntax white spaces preserved", () =>
372372
expect(
373373
parse(`
374374
<root>
@@ -383,7 +383,7 @@ are you?`,
383383
},
384384
))
385385

386-
test("all")("parse(): xml syntax CDATA", () =>
386+
test("deno", "node")("parse(): xml syntax CDATA", () =>
387387
expect(
388388
parse(`
389389
<root>
@@ -407,7 +407,7 @@ test("all")("parse(): xml syntax CDATA", () =>
407407
},
408408
))
409409

410-
test("all")("parse(): xml syntax mixed content with CDATA", () =>
410+
test("deno", "node")("parse(): xml syntax mixed content with CDATA", () =>
411411
expect(
412412
parse(`
413413
<root>
@@ -432,7 +432,7 @@ test("all")("parse(): xml syntax mixed content with CDATA", () =>
432432
},
433433
))
434434

435-
test("all")("parse(): xml syntax with multiple CDATA's", () =>
435+
test("deno", "node")("parse(): xml syntax with multiple CDATA's", () =>
436436
expect(
437437
parse(`
438438
<root>
@@ -450,7 +450,7 @@ test("all")("parse(): xml syntax with multiple CDATA's", () =>
450450
},
451451
))
452452

453-
test("all")("parse(): xml space preserve", () =>
453+
test("deno", "node")("parse(): xml space preserve", () =>
454454
expect(
455455
parse(`
456456
<root>
@@ -530,7 +530,7 @@ Deno.test("parse: xml syntax first character", () => {
530530

531531
//Example below were taken from https://www.w3schools.com/xml/default.asp
532532

533-
test("all")("parse(): xml example w3schools.com#1", () =>
533+
test("deno", "node")("parse(): xml example w3schools.com#1", () =>
534534
expect(
535535
parse(`
536536
<note>
@@ -551,7 +551,7 @@ test("all")("parse(): xml example w3schools.com#1", () =>
551551
},
552552
))
553553

554-
test("all")("parse(): xml example w3schools.com#2", () =>
554+
test("deno", "node")("parse(): xml example w3schools.com#2", () =>
555555
expect(
556556
parse(`
557557
<note>
@@ -574,7 +574,7 @@ test("all")("parse(): xml example w3schools.com#2", () =>
574574
},
575575
))
576576

577-
test("all")("parse(): xml example w3schools.com#3", () =>
577+
test("deno", "node")("parse(): xml example w3schools.com#3", () =>
578578
expect(
579579
parse(`
580580
<bookstore>
@@ -657,7 +657,7 @@ test("all")("parse(): xml example w3schools.com#3", () =>
657657
},
658658
))
659659

660-
test("all")("parse(): xml example w3schools.com#4", () =>
660+
test("deno", "node")("parse(): xml example w3schools.com#4", () =>
661661
expect(
662662
parse(`
663663
<nitf>
@@ -700,7 +700,7 @@ test("all")("parse(): xml example w3schools.com#4", () =>
700700
},
701701
))
702702

703-
test("all")("parse(): xml example w3schools.com#5", () =>
703+
test("deno", "node")("parse(): xml example w3schools.com#5", () =>
704704
expect(
705705
parse(
706706
`
@@ -785,7 +785,7 @@ test("all")("parse(): xml example w3schools.com#5", () =>
785785
},
786786
))
787787

788-
test("all")("parse(): xml example w3schools.com#6", () =>
788+
test("deno", "node")("parse(): xml example w3schools.com#6", () =>
789789
expect(
790790
parse(`
791791
<breakfast_menu>
@@ -872,7 +872,7 @@ test("all")("parse(): xml example w3schools.com#6", () =>
872872

873873
// Parser options
874874

875-
test("all")("parse: xml parser option no flatten text", () =>
875+
test("deno", "node")("parse: xml parser option no flatten text", () =>
876876
expect(
877877
parse(
878878
`
@@ -896,7 +896,7 @@ test("all")("parse: xml parser option no flatten text", () =>
896896
},
897897
))
898898

899-
test("all")("parse(): xml parser option revive", () =>
899+
test("deno", "node")("parse(): xml parser option revive", () =>
900900
expect(
901901
parse(
902902
`
@@ -924,7 +924,7 @@ test("all")("parse(): xml parser option revive", () =>
924924
},
925925
))
926926

927-
test("all")("parse(): xml parser option no-revive", () =>
927+
test("deno", "node")("parse(): xml parser option no-revive", () =>
928928
expect(
929929
parse(
930930
`
@@ -952,7 +952,7 @@ test("all")("parse(): xml parser option no-revive", () =>
952952
},
953953
))
954954

955-
test.skip("all")("parse: xml parser reviver", () =>
955+
test.skip("deno", "node")("parse: xml parser reviver", () =>
956956
expect(
957957
parse(
958958
`
@@ -1043,7 +1043,7 @@ Deno.test("parse: xml parser reviver (tag node can be edited)", () =>
10431043
10441044
// Metadata
10451045
1046-
test("all")("parse(): xml parser option metadata", () => {
1046+
test("deno", "node")("parse(): xml parser option metadata", () => {
10471047
const xml = parse(
10481048
`
10491049
<root>

0 commit comments

Comments
 (0)
Please sign in to comment.