Skip to content

Commit e9f7350

Browse files
authored
Regression reproduction in large XML (#106)
1 parent 1efc9c2 commit e9f7350

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/js/__test__/largeXML.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { readFileSync, createReadStream } from 'fs';
22
import { resolve as pathResolve } from 'path';
3-
import {deepEqual, equal, notStrictEqual} from 'assert';
3+
import {deepEqual, equal, notStrictEqual, strictEqual} from 'assert';
44
import { Detail, Reader, SaxEventType, SAXParser } from '../saxWasm';
55
import { Readable } from 'stream';
66

@@ -51,6 +51,10 @@ describe('When parsing XML, the SaxWasm', () => {
5151
});
5252
});
5353
notStrictEqual(_data.length, 0);
54+
55+
const tagAt0x00020000 = _data.find(entry => entry.name.endsWith("0x00020000"));
56+
strictEqual(tagAt0x00020000?.name, "issueAt0x00020000");
57+
5458
});
5559

5660
it ('events should be equivalent between the generator and event_handler', async () => {

src/js/__test__/xml.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@
10431043
review
10441044
</properly>
10451045
<rubber>
1046-
quite</rubber>
1046+
<issueAt0x00020000></issueAt0x00020000></rubber>
10471047
<coast>
10481048
-678023491</coast>
10491049
<!--library

0 commit comments

Comments
 (0)