jspurefix 1.3.0 → 1.4.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.
- package/README.md +5 -2
- package/data/session/genkey.ps1 +179 -0
- package/dist/buffer/ascii/ascii-encoder.d.ts +1 -1
- package/dist/buffer/ascii/ascii-encoder.js +42 -30
- package/dist/buffer/ascii/ascii-encoder.js.map +1 -1
- package/dist/buffer/ascii/ascii-view.d.ts +2 -2
- package/dist/buffer/ascii/ascii-view.js.map +1 -1
- package/dist/buffer/ascii/time-formatter.js.map +1 -1
- package/dist/buffer/elastic-buffer.js +1 -1
- package/dist/buffer/elastic-buffer.js.map +1 -1
- package/dist/buffer/encode-proxy.js.map +1 -1
- package/dist/buffer/fixml/fixml-encoder.js +1 -1
- package/dist/buffer/fixml/fixml-encoder.js.map +1 -1
- package/dist/buffer/fixml/fixml-view.d.ts +2 -0
- package/dist/buffer/fixml/fixml-view.js +3 -0
- package/dist/buffer/fixml/fixml-view.js.map +1 -1
- package/dist/buffer/msg-view.d.ts +2 -0
- package/dist/buffer/msg-view.js +2 -2
- package/dist/buffer/msg-view.js.map +1 -1
- package/dist/dict-parser.js +9 -9
- package/dist/dict-parser.js.map +1 -1
- package/dist/dictionary/compiler/msg-compiler.js +2 -2
- package/dist/dictionary/compiler/msg-compiler.js.map +1 -1
- package/dist/dictionary/parser/fix-repository/repository-xml-parser.js +1 -1
- package/dist/dictionary/parser/fix-repository/repository-xml-parser.js.map +1 -1
- package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js +1 -1
- package/dist/dictionary/parser/quickfix/quick-fix-xml-file-parser.js.map +1 -1
- package/dist/jsfix-cmd.js +3 -3
- package/dist/jsfix-cmd.js.map +1 -1
- package/dist/sample/http/oms/app.js +2 -2
- package/dist/sample/http/oms/app.js.map +1 -1
- package/dist/sample/launcher.js +2 -2
- package/dist/sample/launcher.js.map +1 -1
- package/dist/sample/tcp/qf-md/app.js +2 -2
- package/dist/sample/tcp/qf-md/app.js.map +1 -1
- package/dist/sample/tcp/recovering-skeleton/respawn-2.d.ts +2 -0
- package/dist/sample/tcp/recovering-skeleton/respawn-2.js +3 -0
- package/dist/sample/tcp/recovering-skeleton/respawn-2.js.map +1 -0
- package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js +1 -1
- package/dist/sample/tcp/recovering-skeleton/respawn-acceptor.js.map +1 -1
- package/dist/sample/tcp/skeleton/app.js +2 -2
- package/dist/sample/tcp/skeleton/app.js.map +1 -1
- package/dist/sample/tcp/skeleton/skeleton-session.d.ts +5 -1
- package/dist/sample/tcp/skeleton/skeleton-session.js +21 -2
- package/dist/sample/tcp/skeleton/skeleton-session.js.map +1 -1
- package/dist/sample/tcp/tls-trade-capture/app.js +2 -2
- package/dist/sample/tcp/tls-trade-capture/app.js.map +1 -1
- package/dist/sample/tcp/trade-capture/app.js +2 -2
- package/dist/sample/tcp/trade-capture/app.js.map +1 -1
- package/dist/sample/tcp/trade-capture/trade-capture-client.d.ts +1 -0
- package/dist/sample/tcp/trade-capture/trade-capture-client.js +7 -3
- package/dist/sample/tcp/trade-capture/trade-capture-client.js.map +1 -1
- package/dist/store/fix-msg-ascii-store-recovery.d.ts +12 -0
- package/dist/store/fix-msg-ascii-store-recovery.js +60 -0
- package/dist/store/fix-msg-ascii-store-recovery.js.map +1 -0
- package/dist/store/fix-msg-ascii-store-replay.d.ts +13 -0
- package/dist/store/fix-msg-ascii-store-replay.js +60 -0
- package/dist/store/fix-msg-ascii-store-replay.js.map +1 -0
- package/dist/store/fix-msg-ascii-store-resend.js +3 -2
- package/dist/store/fix-msg-ascii-store-resend.js.map +1 -1
- package/dist/store/fix-msg-store-record.js.map +1 -1
- package/dist/store/fix-replay-record.d.ts +12 -0
- package/dist/store/fix-replay-record.js +12 -0
- package/dist/store/fix-replay-record.js.map +1 -0
- package/dist/store/fix-resend-record.d.ts +12 -0
- package/dist/store/fix-resend-record.js +12 -0
- package/dist/store/fix-resend-record.js.map +1 -0
- package/dist/store/replay-record.d.ts +6 -0
- package/dist/store/replay-record.js +3 -0
- package/dist/store/replay-record.js.map +1 -0
- package/dist/store/store-replay-record.d.ts +12 -0
- package/dist/store/store-replay-record.js +12 -0
- package/dist/store/store-replay-record.js.map +1 -0
- package/dist/tcp/tls-options.d.ts +5 -0
- package/dist/tcp/tls-options.js +45 -0
- package/dist/tcp/tls-options.js.map +1 -0
- package/dist/test/ascii-encode.test.d.ts +1 -0
- package/dist/test/ascii-encode.test.js +416 -0
- package/dist/test/ascii-encode.test.js.map +1 -0
- package/dist/test/ascii-encoder.test.js +2 -2
- package/dist/test/ascii-encoder.test.js.map +1 -1
- package/dist/test/ascii-parser.test.js +9 -7
- package/dist/test/ascii-parser.test.js.map +1 -1
- package/dist/test/ascii-segment.test.js +7 -6
- package/dist/test/ascii-segment.test.js.map +1 -1
- package/dist/test/ascii-store-recovery.test.d.ts +1 -0
- package/dist/test/ascii-store-recovery.test.js +50 -0
- package/dist/test/ascii-store-recovery.test.js.map +1 -0
- package/dist/test/ascii-store-replay.test.js +2 -2
- package/dist/test/ascii-store-replay.test.js.map +1 -1
- package/dist/test/ascii-tag-pos.test.js +2 -2
- package/dist/test/ascii-tag-pos.test.js.map +1 -1
- package/dist/test/encode-proxy.test.js +1 -1
- package/dist/test/encode-proxy.test.js.map +1 -1
- package/dist/test/execution-report.test.js +2 -2
- package/dist/test/execution-report.test.js.map +1 -1
- package/dist/test/fix-log-replay.test.js +2 -2
- package/dist/test/fix-log-replay.test.js.map +1 -1
- package/dist/test/fix-repo-dict.test.js +1 -1
- package/dist/test/fix-repo-dict.test.js.map +1 -1
- package/dist/test/logon.test.js +2 -2
- package/dist/test/logon.test.js.map +1 -1
- package/dist/test/memory-store.test.js +2 -2
- package/dist/test/memory-store.test.js.map +1 -1
- package/dist/test/qf-full-msg.test.js +14 -13
- package/dist/test/qf-full-msg.test.js.map +1 -1
- package/dist/test/repo-full-ascii-msg.test.js +10 -9
- package/dist/test/repo-full-ascii-msg.test.js.map +1 -1
- package/dist/test/repo-full-fixml-msg.test.js +15 -15
- package/dist/test/repo-full-fixml-msg.test.js.map +1 -1
- package/dist/test/session.test.js +262 -143
- package/dist/test/session.test.js.map +1 -1
- package/dist/test/to-views.js +1 -1
- package/dist/test/to-views.js.map +1 -1
- package/dist/test/view-decode.test.js +2 -2
- package/dist/test/view-decode.test.js.map +1 -1
- package/dist/transport/ascii/ascii-msg-transmitter.js +6 -3
- package/dist/transport/ascii/ascii-msg-transmitter.js.map +1 -1
- package/dist/transport/ascii/ascii-session.d.ts +8 -0
- package/dist/transport/ascii/ascii-session.js +67 -19
- package/dist/transport/ascii/ascii-session.js.map +1 -1
- package/dist/transport/duplex/http-duplex.js +2 -2
- package/dist/transport/duplex/http-duplex.js.map +1 -1
- package/dist/transport/fix-session-state.js +4 -1
- package/dist/transport/fix-session-state.js.map +1 -1
- package/dist/transport/fix-session.d.ts +6 -0
- package/dist/transport/fix-session.js +91 -38
- package/dist/transport/fix-session.js.map +1 -1
- package/dist/transport/http/http-acceptor.js +8 -7
- package/dist/transport/http/http-acceptor.js.map +1 -1
- package/dist/transport/make-config.js +1 -1
- package/dist/transport/make-config.js.map +1 -1
- package/dist/transport/session-msg-factory.d.ts +24 -2
- package/dist/transport/session-msg-factory.js +143 -3
- package/dist/transport/session-msg-factory.js.map +1 -1
- package/dist/transport/tcp/recovering-initiator.d.ts +17 -0
- package/dist/transport/tcp/recovering-initiator.js +30 -0
- package/dist/transport/tcp/recovering-initiator.js.map +1 -0
- package/dist/transport/tcp/recovering_initiator.d.ts +12 -0
- package/dist/transport/tcp/recovering_initiator.js +25 -0
- package/dist/transport/tcp/recovering_initiator.js.map +1 -0
- package/dist/transport/tcp/resilient-initiator.d.ts +12 -0
- package/dist/transport/tcp/resilient-initiator.js +41 -0
- package/dist/transport/tcp/resilient-initiator.js.map +1 -0
- package/dist/transport/tcp/tcp-acceptor.d.ts +7 -0
- package/dist/transport/tcp/tcp-acceptor.js +57 -38
- package/dist/transport/tcp/tcp-acceptor.js.map +1 -1
- package/dist/transport/tcp/tcp-initiator.d.ts +2 -0
- package/dist/transport/tcp/tcp-initiator.js +59 -32
- package/dist/transport/tcp/tcp-initiator.js.map +1 -1
- package/dist/types/FIX4.4/quickfix/set/header.d.ts +31 -0
- package/dist/types/FIX4.4/quickfix/set/header.js +3 -0
- package/dist/types/FIX4.4/quickfix/set/header.js.map +1 -0
- package/dist/types/FIX4.4/quickfix/set/trailer.d.ts +6 -0
- package/dist/types/FIX4.4/quickfix/set/trailer.js +3 -0
- package/dist/types/FIX4.4/quickfix/set/trailer.js.map +1 -0
- package/dist/util/buffer-helper.js +1 -1
- package/dist/util/buffer-helper.js.map +1 -1
- package/dist/util/json-helper.js +2 -2
- package/dist/util/json-helper.js.map +1 -1
- package/dist/util/message-generator.js +1 -1
- package/dist/util/message-generator.js.map +1 -1
- package/package.json +16 -15
- package/script/genkey.ps1 +179 -179
- package/src/buffer/ascii/ascii-encoder.ts +71 -33
- package/src/buffer/ascii/ascii-view.ts +2 -2
- package/src/buffer/ascii/time-formatter.ts +2 -2
- package/src/buffer/encode-proxy.ts +2 -2
- package/src/buffer/fixml/fixml-view.ts +5 -0
- package/src/buffer/msg-view.ts +3 -0
- package/src/sample/tcp/skeleton/skeleton-session.ts +24 -2
- package/src/sample/tcp/trade-capture/trade-capture-client.ts +8 -3
- package/src/store/fix-msg-ascii-store-resend.ts +3 -2
- package/src/store/fix-msg-store-record.ts +1 -0
- package/src/transport/ascii/ascii-msg-transmitter.ts +6 -3
- package/src/transport/ascii/ascii-session.ts +75 -19
- package/src/transport/duplex/http-duplex.ts +2 -2
- package/src/transport/fix-session-state.ts +4 -1
- package/src/transport/fix-session.ts +98 -37
- package/src/transport/http/http-acceptor.ts +7 -6
- package/src/transport/tcp/tcp-acceptor.ts +59 -35
- package/src/transport/tcp/tcp-initiator.ts +63 -38
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ascii-tag-pos.test.js","sourceRoot":"","sources":["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C,eAAM,CAAC,OAAO,CAAC,CAAA;IAC9C,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAChC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;AACpD,CAAC,CAAC,CAAA","sourcesContent":["import * as path from 'path'\r\nimport { AsciiChars, MsgView, TagPos, Structure } from '../buffer'\r\nimport { FixDefinitions } from '../dictionary'\r\nimport { ISessionDescription, AsciiMsgTransmitter } from '../transport'\r\nimport { JsFixConfig } from '../config'\r\nimport { getDefinitions, replayFixFile } from '../util'\r\n\r\nconst root: string = path.join(__dirname, '../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet session: AsciiMsgTransmitter\r\nlet views: MsgView[]\r\nlet structure: Structure\r\nlet tp: TagPos[]\r\n\r\nconst testTags: TagPos[] = [\r\n new TagPos(0, 120, 0, 1), // 3\r\n new TagPos(1, 50, 1, 1), // 0\r\n new TagPos(2, 50, 2, 1), // 1\r\n new TagPos(3, 120, 3, 1), // 4\r\n new TagPos(4, 100, 4, 1) // 2\r\n]\r\n\r\nconst expected: TagPos[] = [\r\n new TagPos(1, 50, 1, 1), // 0\r\n new TagPos(2, 50, 2, 1), // 1\r\n new TagPos(4, 100, 4, 1), // 2\r\n new TagPos(0, 120, 0, 1), // 3\r\n new TagPos(3, 120, 3, 1) // 4\r\n]\r\n\r\nconst unsortedLogon = [\r\n new TagPos(0, 8, 2, 6),\r\n new TagPos(1, 9, 11, 7),\r\n new TagPos(2, 35, 22, 1),\r\n new TagPos(3, 49, 27, 9),\r\n new TagPos(4, 56, 40, 9),\r\n new TagPos(5, 34, 53, 1),\r\n new TagPos(6, 57, 58, 5),\r\n new TagPos(7, 52, 67, 21),\r\n new TagPos(8, 98, 92, 1),\r\n new TagPos(9, 108, 98, 5),\r\n new TagPos(10, 95, 107, 2),\r\n new TagPos(11, 96, 113, 20),\r\n new TagPos(12, 141, 138, 1),\r\n new TagPos(13, 789, 144, 4),\r\n new TagPos(14, 383, 153, 2),\r\n new TagPos(15, 384, 160, 1),\r\n new TagPos(16, 372, 166, 5),\r\n new TagPos(17, 385, 176, 1),\r\n new TagPos(18, 464, 182, 1),\r\n new TagPos(19, 553, 188, 3),\r\n new TagPos(20, 554, 196, 11)\r\n]\r\n\r\nbeforeAll(async () => {\r\n const sessionDescription: ISessionDescription = require(path.join(root, 'session/test-initiator.json'))\r\n definitions = await getDefinitions(sessionDescription.application.dictionary)\r\n const config = new JsFixConfig(null, definitions, sessionDescription, AsciiChars.Pipe)\r\n session = new AsciiMsgTransmitter(config)\r\n views = await replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/quickfix/logon/fix.txt'), AsciiChars.Pipe)\r\n if (views && views.length > 0) {\r\n structure = views[0].structure\r\n tp = views[0].structure.tags.tagPos.slice(0, views[0].segment.endPosition)\r\n }\r\n}, 45000)\r\n\r\ntest('logon tags parsed fully', () => {\r\n expect(tp).toEqual(unsortedLogon)\r\n})\r\n\r\ntest('expect tags to sort in tag first order', () => {\r\n const sorted = testTags.slice().sort(TagPos.compare)\r\n const sortedTags = sorted.map(e => e.tag)\r\n expect(sortedTags).toEqual([50, 50, 100, 120, 120])\r\n})\r\n\r\ntest('expect tags to sort in tag then start order', () => {\r\n const sorted = testTags.slice().sort(TagPos.compare)\r\n expect(sorted[0].tag).toEqual(sorted[1].tag)\r\n expect(sorted[0].start < sorted[1].start).toEqual(true)\r\n})\r\n\r\ntest('expect start to carry with its tag', () => {\r\n const sorted = testTags.slice().sort(TagPos.compare)\r\n expect(sorted).toEqual(expected)\r\n})\r\n\r\ntest('binary search on sorted', () => {\r\n const sorted = testTags.slice().sort(TagPos.compare)\r\n expect(TagPos.binarySearch(sorted, 100)).toEqual(2)\r\n})\r\n\r\ntest('binary search for non existing tag', () => {\r\n const sorted = testTags.slice().sort(TagPos.compare)\r\n expect(TagPos.binarySearch(sorted, 1000) < 0).toEqual(true)\r\n})\r\n\r\ntest('binary search duplicate tag', () => {\r\n const sorted = testTags.slice().sort(TagPos.compare)\r\n expect(TagPos.binarySearch(sorted, 50) <= 1).toEqual(true)\r\n})\r\n\r\ntest('check logon', () => {\r\n const sorted = tp.slice().sort(TagPos.compare)\r\n expect(sorted[0].tag).toEqual(8)\r\n expect(sorted[sorted.length - 1].tag).toEqual(789)\r\n})\r\n"]}
|
|
@@ -20,7 +20,7 @@ let session;
|
|
|
20
20
|
let proxyFactory;
|
|
21
21
|
beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
22
|
const sessionDescription = require(path.join(root, 'session/qf-fix44.json'));
|
|
23
|
-
definitions = yield
|
|
23
|
+
definitions = yield util_1.getDefinitions(sessionDescription.application.dictionary);
|
|
24
24
|
const config = new config_1.JsFixConfig(null, definitions, sessionDescription, buffer_1.AsciiChars.Pipe);
|
|
25
25
|
session = new transport_1.AsciiMsgTransmitter(config);
|
|
26
26
|
proxyFactory = new buffer_1.EncodeProxy(definitions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode-proxy.test.js","sourceRoot":"","sources":["../../src/test/encode-proxy.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,sCAAmD;AAGnD,4CAAuE;AACvE,sCAAuC;AACvC,kCAAwC;AACxC,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAEvD,IAAI,WAA2B,CAAA;AAC/B,IAAI,OAA4B,CAAA;AAChC,IAAI,YAAyB,CAAA;AAE7B,SAAS,CAAC,GAAS,EAAE;IACnB,MAAM,kBAAkB,GAAwB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC,CAAA;IACjG,WAAW,GAAG,MAAM,IAAA,qBAAc,EAAC,kBAAkB,CAAC,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SAAS;YACpB,eAAe,EAAE,GAAG;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE;gBACZ,eAAe,EAAE;oBACf;wBACE,YAAY,EAAE,QAAQ;wBACtB,gBAAgB,EAAE,EAAE;qBACrB;oBACD;wBACE,YAAY,EAAE,SAAS;wBACvB,gBAAgB,EAAE,EAAE;qBACrB;oBACD;wBACE,YAAY,EAAE,MAAM;wBACpB,gBAAgB,EAAE,EAAE;qBACrB;iBACF;aACF;SACF;QACD;YACE,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,GAAG;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE;gBACZ,eAAe,EAAE;oBACf;wBACE,YAAY,EAAE,IAAI;wBAClB,gBAAgB,EAAE,CAAC;qBACpB;iBACF;aACF;SACF;KACF,CAAA;AACH,CAAC","sourcesContent":["import * as path from 'path'\r\nimport { EncodeProxy, AsciiChars } from '../buffer'\r\nimport { FixDefinitions } from '../dictionary'\r\nimport { ILooseObject } from '../collections/collection'\r\nimport { ISessionDescription, AsciiMsgTransmitter } from '../transport'\r\nimport { JsFixConfig } from '../config'\r\nimport { getDefinitions } from '../util'\r\nconst root: string = path.join(__dirname, '../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet session: AsciiMsgTransmitter\r\nlet proxyFactory: EncodeProxy\r\n\r\nbeforeAll(async () => {\r\n const sessionDescription: ISessionDescription = require(path.join(root, 'session/qf-fix44.json'))\r\n definitions = await getDefinitions(sessionDescription.application.dictionary)\r\n const config = new JsFixConfig(null, definitions, sessionDescription, AsciiChars.Pipe)\r\n session = new AsciiMsgTransmitter(config)\r\n proxyFactory = new EncodeProxy(definitions)\r\n}, 45000)\r\n\r\ntest('check wrapper will reject unknown field', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Unknown = 999\r\n }\r\n expect(run).toThrow(/no field named Unknown/)\r\n})\r\n\r\ntest('check wrapper will accept known field', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.OrderID = 'ipsum'\r\n }\r\n run()\r\n expect(proxy.OrderID).toEqual('ipsum')\r\n})\r\n\r\ntest('check wrapper rejects unknown enum value', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlType = '23'\r\n }\r\n expect(run).toThrow(/enum field SettlType does not support \"23\"/)\r\n})\r\n\r\ntest('check wrapper will accept known enum field', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlType = '1'\r\n }\r\n run()\r\n expect(proxy.SettlType).toEqual('1')\r\n})\r\n\r\ntest('check wrapper rejects Date field when not given Date', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlDate = \"I'm not a good date\"\r\n }\r\n expect(run).toThrow(/expects Date but receives/)\r\n})\r\n\r\ntest('check wrapper will accept Date field when given Date', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlDate = new Date()\r\n }\r\n run()\r\n expect(proxy.SettlDate).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper rejects boolean field when not given boolean', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.LastRptRequested = \"I'm not a good boolean\"\r\n }\r\n expect(run).toThrow(/expects boolean but receives/)\r\n})\r\n\r\ntest('check wrapper will accept boolean field when given boolean', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.LastRptRequested = true\r\n }\r\n run()\r\n expect(proxy.LastRptRequested).toEqual(true)\r\n})\r\n\r\ntest('check wrapper rejects Buffer field when not given Buffer', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.EncodedText = \"I'm not a Buffer, don't accept me!\"\r\n }\r\n expect(run).toThrow(/expects Buffer but receives/)\r\n})\r\n\r\ntest('check wrapper will accept Buffer field when given Buffer', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.EncodedText = new Buffer('I am a buffer.', 'utf8')\r\n }\r\n run()\r\n expect(proxy.EncodedText).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper rejects string field when not given string', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.ClOrdID = 123\r\n }\r\n expect(run).toThrow(/expects string but receives/)\r\n})\r\n\r\ntest('check wrapper will accept string field when given string', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.ClOrdID = \"I'm a great string\"\r\n }\r\n run()\r\n expect(proxy.ClOrdID).toEqual(\"I'm a great string\")\r\n})\r\n\r\ntest('check wrapper rejects number field when not given number', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.GrossTradeAmt = \"I'm no number\"\r\n }\r\n expect(run).toThrow(/expects number but receives/)\r\n})\r\n\r\ntest('check wrapper will accept number field when given number', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.GrossTradeAmt = 12234\r\n }\r\n run()\r\n expect(proxy.GrossTradeAmt).toEqual(12234)\r\n})\r\n\r\ntest('check wrapper rejects non object field when assigning component', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = 'I should be an object, but I am sadly not'\r\n }\r\n expect(run).toThrow(/is a component but/)\r\n})\r\n\r\ntest('check wrapper accepts object field when assigning component', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = {\r\n }\r\n }\r\n run()\r\n expect(proxy.Parties).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper when assigned component wraps so it can be checked.', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.YieldData = {\r\n }\r\n }\r\n run()\r\n function run2 (): void {\r\n proxy.YieldData.GrossTradeAmt = 999\r\n }\r\n // reject this\r\n expect(run2).toThrow(/no field named GrossTradeAmt/)\r\n proxy.YieldData.YieldCalcDate = new Date()\r\n // accept this\r\n expect(proxy.YieldData).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper when given populated component.', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.YieldData = {\r\n ClOrdID: \"I don't belong here.\"\r\n }\r\n }\r\n // reject this\r\n expect(run).toThrow(/no field named ClOrdID/)\r\n})\r\n\r\ntest('check wrapper accepts number for group field and wraps n elements', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = {\r\n NoPartyIDs: 2\r\n }\r\n }\r\n run()\r\n expect(proxy.Parties).toBeTruthy()\r\n expect(Array.isArray(proxy.Parties.NoPartyIDs)).toEqual(true)\r\n expect(proxy.Parties.NoPartyIDs.length).toEqual(2)\r\n // now assign a field, this should also be wrapped\r\n proxy.Parties.NoPartyIDs[0].PartyID = 'hello'\r\n expect(proxy.Parties.NoPartyIDs[0].PartyID).toBeTruthy()\r\n function run2 (): void {\r\n proxy.Parties.NoPartyIDs[0].GrossTradeAmt = 999\r\n }\r\n // reject this\r\n expect(run2).toThrow(/no field named GrossTradeAmt/)\r\n})\r\n\r\ntest('check wrapper accepts array of objects in group component', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = {\r\n NoPartyIDs: getParties()\r\n }\r\n }\r\n run()\r\n function run2 (): void {\r\n proxy.Parties.NoPartyIDs[0].GrossTradeAmt = 999\r\n }\r\n // reject this\r\n expect(run2).toThrow(/no field named GrossTradeAmt/)\r\n})\r\n\r\nfunction getParties (): ILooseObject {\r\n return [\r\n {\r\n 'PartyID': 'magna.',\r\n 'PartyIDSource': '9',\r\n 'PartyRole': 28,\r\n 'PtysSubGrp': {\r\n 'NoPartySubIDs': [\r\n {\r\n 'PartySubID': 'et',\r\n 'PartySubIDType': 22\r\n },\r\n {\r\n 'PartySubID': 'leo,',\r\n 'PartySubIDType': 10\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n 'PartyID': 'iaculis',\r\n 'PartyIDSource': 'F',\r\n 'PartyRole': 2,\r\n 'PtysSubGrp': {\r\n 'NoPartySubIDs': [\r\n {\r\n 'PartySubID': 'Nullam',\r\n 'PartySubIDType': 12\r\n },\r\n {\r\n 'PartySubID': 'lectus,',\r\n 'PartySubIDType': 13\r\n },\r\n {\r\n 'PartySubID': 'eget',\r\n 'PartySubIDType': 18\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n 'PartyID': 'vitae,',\r\n 'PartyIDSource': '9',\r\n 'PartyRole': 5,\r\n 'PtysSubGrp': {\r\n 'NoPartySubIDs': [\r\n {\r\n 'PartySubID': 'ac',\r\n 'PartySubIDType': 6\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"encode-proxy.test.js","sourceRoot":"","sources":["../../src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AAC,CAAC,CAAC,CAAC,aAAa,GAAG,GAAG,CAAA;IACjD,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAA;AACtD,CAAC,CAAC,CAAA;AAEF,SAAS,UAAU;IACjB,OAAO;QACL;YACE,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,GAAG;YACpB,WAAW,EAAE,EAAE;YACf,YAAY,EAAE;gBACZ,eAAe,EAAE;oBACf;wBACE,YAAY,EAAE,IAAI;wBAClB,gBAAgB,EAAE,EAAE;qBACrB;oBACD;wBACE,YAAY,EAAE,MAAM;wBACpB,gBAAgB,EAAE,EAAE;qBACrB;iBACF;aACF;SACF;QACD;YACE,SAAS,EAAE,SAAS;YACpB,eAAe,EAAE,GAAG;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE;gBACZ,eAAe,EAAE;oBACf;wBACE,YAAY,EAAE,QAAQ;wBACtB,gBAAgB,EAAE,EAAE;qBACrB;oBACD;wBACE,YAAY,EAAE,SAAS;wBACvB,gBAAgB,EAAE,EAAE;qBACrB;oBACD;wBACE,YAAY,EAAE,MAAM;wBACpB,gBAAgB,EAAE,EAAE;qBACrB;iBACF;aACF;SACF;QACD;YACE,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,GAAG;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE;gBACZ,eAAe,EAAE;oBACf;wBACE,YAAY,EAAE,IAAI;wBAClB,gBAAgB,EAAE,CAAC;qBACpB;iBACF;aACF;SACF;KACF,CAAA;AACH,CAAC","sourcesContent":["import * as path from 'path'\r\nimport { EncodeProxy, AsciiChars } from '../buffer'\r\nimport { FixDefinitions } from '../dictionary'\r\nimport { ILooseObject } from '../collections/collection'\r\nimport { ISessionDescription, AsciiMsgTransmitter } from '../transport'\r\nimport { JsFixConfig } from '../config'\r\nimport { getDefinitions } from '../util'\r\nconst root: string = path.join(__dirname, '../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet session: AsciiMsgTransmitter\r\nlet proxyFactory: EncodeProxy\r\n\r\nbeforeAll(async () => {\r\n const sessionDescription: ISessionDescription = require(path.join(root, 'session/qf-fix44.json'))\r\n definitions = await getDefinitions(sessionDescription.application.dictionary)\r\n const config = new JsFixConfig(null, definitions, sessionDescription, AsciiChars.Pipe)\r\n session = new AsciiMsgTransmitter(config)\r\n proxyFactory = new EncodeProxy(definitions)\r\n}, 45000)\r\n\r\ntest('check wrapper will reject unknown field', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Unknown = 999\r\n }\r\n expect(run).toThrow(/no field named Unknown/)\r\n})\r\n\r\ntest('check wrapper will accept known field', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.OrderID = 'ipsum'\r\n }\r\n run()\r\n expect(proxy.OrderID).toEqual('ipsum')\r\n})\r\n\r\ntest('check wrapper rejects unknown enum value', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlType = '23'\r\n }\r\n expect(run).toThrow(/enum field SettlType does not support \"23\"/)\r\n})\r\n\r\ntest('check wrapper will accept known enum field', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlType = '1'\r\n }\r\n run()\r\n expect(proxy.SettlType).toEqual('1')\r\n})\r\n\r\ntest('check wrapper rejects Date field when not given Date', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlDate = \"I'm not a good date\"\r\n }\r\n expect(run).toThrow(/expects Date but receives/)\r\n})\r\n\r\ntest('check wrapper will accept Date field when given Date', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.SettlDate = new Date()\r\n }\r\n run()\r\n expect(proxy.SettlDate).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper rejects boolean field when not given boolean', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.LastRptRequested = \"I'm not a good boolean\"\r\n }\r\n expect(run).toThrow(/expects boolean but receives/)\r\n})\r\n\r\ntest('check wrapper will accept boolean field when given boolean', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.LastRptRequested = true\r\n }\r\n run()\r\n expect(proxy.LastRptRequested).toEqual(true)\r\n})\r\n\r\ntest('check wrapper rejects Buffer field when not given Buffer', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.EncodedText = \"I'm not a Buffer, don't accept me!\"\r\n }\r\n expect(run).toThrow(/expects Buffer but receives/)\r\n})\r\n\r\ntest('check wrapper will accept Buffer field when given Buffer', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.EncodedText = new Buffer('I am a buffer.', 'utf8')\r\n }\r\n run()\r\n expect(proxy.EncodedText).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper rejects string field when not given string', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.ClOrdID = 123\r\n }\r\n expect(run).toThrow(/expects string but receives/)\r\n})\r\n\r\ntest('check wrapper will accept string field when given string', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.ClOrdID = \"I'm a great string\"\r\n }\r\n run()\r\n expect(proxy.ClOrdID).toEqual(\"I'm a great string\")\r\n})\r\n\r\ntest('check wrapper rejects number field when not given number', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.GrossTradeAmt = \"I'm no number\"\r\n }\r\n expect(run).toThrow(/expects number but receives/)\r\n})\r\n\r\ntest('check wrapper will accept number field when given number', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.GrossTradeAmt = 12234\r\n }\r\n run()\r\n expect(proxy.GrossTradeAmt).toEqual(12234)\r\n})\r\n\r\ntest('check wrapper rejects non object field when assigning component', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = 'I should be an object, but I am sadly not'\r\n }\r\n expect(run).toThrow(/is a component but/)\r\n})\r\n\r\ntest('check wrapper accepts object field when assigning component', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = {\r\n }\r\n }\r\n run()\r\n expect(proxy.Parties).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper when assigned component wraps so it can be checked.', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.YieldData = {\r\n }\r\n }\r\n run()\r\n function run2 (): void {\r\n proxy.YieldData.GrossTradeAmt = 999\r\n }\r\n // reject this\r\n expect(run2).toThrow(/no field named GrossTradeAmt/)\r\n proxy.YieldData.YieldCalcDate = new Date()\r\n // accept this\r\n expect(proxy.YieldData).toBeTruthy()\r\n})\r\n\r\ntest('check wrapper when given populated component.', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.YieldData = {\r\n ClOrdID: \"I don't belong here.\"\r\n }\r\n }\r\n // reject this\r\n expect(run).toThrow(/no field named ClOrdID/)\r\n})\r\n\r\ntest('check wrapper accepts number for group field and wraps n elements', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = {\r\n NoPartyIDs: 2\r\n }\r\n }\r\n run()\r\n expect(proxy.Parties).toBeTruthy()\r\n expect(Array.isArray(proxy.Parties.NoPartyIDs)).toEqual(true)\r\n expect(proxy.Parties.NoPartyIDs.length).toEqual(2)\r\n // now assign a field, this should also be wrapped\r\n proxy.Parties.NoPartyIDs[0].PartyID = 'hello'\r\n expect(proxy.Parties.NoPartyIDs[0].PartyID).toBeTruthy()\r\n function run2 (): void {\r\n proxy.Parties.NoPartyIDs[0].GrossTradeAmt = 999\r\n }\r\n // reject this\r\n expect(run2).toThrow(/no field named GrossTradeAmt/)\r\n})\r\n\r\ntest('check wrapper accepts array of objects in group component', () => {\r\n const proxy: ILooseObject = proxyFactory.wrap('ExecutionReport')\r\n expect(proxy).toBeTruthy()\r\n function run (): void {\r\n proxy.Parties = {\r\n NoPartyIDs: getParties()\r\n }\r\n }\r\n run()\r\n function run2 (): void {\r\n proxy.Parties.NoPartyIDs[0].GrossTradeAmt = 999\r\n }\r\n // reject this\r\n expect(run2).toThrow(/no field named GrossTradeAmt/)\r\n})\r\n\r\nfunction getParties (): ILooseObject {\r\n return [\r\n {\r\n 'PartyID': 'magna.',\r\n 'PartyIDSource': '9',\r\n 'PartyRole': 28,\r\n 'PtysSubGrp': {\r\n 'NoPartySubIDs': [\r\n {\r\n 'PartySubID': 'et',\r\n 'PartySubIDType': 22\r\n },\r\n {\r\n 'PartySubID': 'leo,',\r\n 'PartySubIDType': 10\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n 'PartyID': 'iaculis',\r\n 'PartyIDSource': 'F',\r\n 'PartyRole': 2,\r\n 'PtysSubGrp': {\r\n 'NoPartySubIDs': [\r\n {\r\n 'PartySubID': 'Nullam',\r\n 'PartySubIDType': 12\r\n },\r\n {\r\n 'PartySubID': 'lectus,',\r\n 'PartySubIDType': 13\r\n },\r\n {\r\n 'PartySubID': 'eget',\r\n 'PartySubIDType': 18\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n 'PartyID': 'vitae,',\r\n 'PartyIDSource': '9',\r\n 'PartyRole': 5,\r\n 'PtysSubGrp': {\r\n 'NoPartySubIDs': [\r\n {\r\n 'PartySubID': 'ac',\r\n 'PartySubIDType': 6\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}\r\n"]}
|
|
@@ -21,10 +21,10 @@ let views;
|
|
|
21
21
|
let structure;
|
|
22
22
|
beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
23
|
const sessionDescription = require(path.join(root, 'session/qf-fix44.json'));
|
|
24
|
-
definitions = yield
|
|
24
|
+
definitions = yield util_1.getDefinitions(sessionDescription.application.dictionary);
|
|
25
25
|
const config = new config_1.JsFixConfig(null, definitions, sessionDescription, buffer_1.AsciiChars.Pipe);
|
|
26
26
|
session = new transport_1.AsciiMsgTransmitter(config);
|
|
27
|
-
views = yield
|
|
27
|
+
views = yield util_1.replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/quickfix/execution-report/fix.txt'), buffer_1.AsciiChars.Pipe);
|
|
28
28
|
if (views && views.length > 0) {
|
|
29
29
|
structure = views[0].structure;
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-report.test.js","sourceRoot":"","sources":["../../src/test/execution-report.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,sCAA2F;AAG3F,4CAAuE;AACvE,sCAAuC;AAEvC,kCAAuD;AAEvD,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAEvD,IAAI,WAA2B,CAAA;AAC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EAAE,QAAQ;gBACjC,6BAA6B,EAAE,QAAQ;aACxC;YACD;gBACE,uBAAuB,EAAE,KAAK;gBAC9B,6BAA6B,EAAE,IAAI;aACpC;YACD;gBACE,uBAAuB,EAAE,WAAW;gBACpC,6BAA6B,EAAE,cAAc;aAC9C;SAAC;KACL,CAAC,CAAA;IACJ,MAAM,WAAW,GAAiB,yBAAyB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAA;IACjG,MAAM,CAAC,WAAW,CAAC,CAAC,UAAU,EAAE,CAAA;IAChC,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IACpD,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,OAAO,CACxC;QACE,yBAAyB,EAAE;YACzB;gBACE,uBAAuB,EAAE,SAAS;gBAClC,6BAA6B,EAAE,QAAQ;aACxC;SACF;KACF,CAAC,CAAA;AACN,CAAC,EAAE,IAAI,CAAC,CAAA","sourcesContent":["import * as path from 'path'\r\nimport { SegmentDescription, SegmentType, MsgView, Structure, AsciiChars } from '../buffer'\r\nimport { ILooseObject } from '../collections/collection'\r\nimport { FixDefinitions } from '../dictionary'\r\nimport { ISessionDescription, AsciiMsgTransmitter } from '../transport'\r\nimport { JsFixConfig } from '../config'\r\nimport { IUndInstrmtGrp, IUnderlyingInstrument } from '../types/FIX4.4/quickfix'\r\nimport { replayFixFile, getDefinitions } from '../util'\r\n\r\nconst root: string = path.join(__dirname, '../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet session: AsciiMsgTransmitter\r\nlet views: MsgView[]\r\nlet structure: Structure\r\n\r\nbeforeAll(async () => {\r\n const sessionDescription: ISessionDescription = require(path.join(root, 'session/qf-fix44.json'))\r\n definitions = await getDefinitions(sessionDescription.application.dictionary)\r\n const config = new JsFixConfig(null, definitions, sessionDescription, AsciiChars.Pipe)\r\n session = new AsciiMsgTransmitter(config)\r\n views = await replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/quickfix/execution-report/fix.txt'), AsciiChars.Pipe)\r\n if (views && views.length > 0) {\r\n structure = views[0].structure\r\n }\r\n}, 45000)\r\n\r\ntest('expect a structure from fix msg', () => {\r\n expect(structure).toBeTruthy()\r\n})\r\n\r\n/*\r\n[20] 453 (NoPartyIDs) = 3, [21] 448 (PartyID) = magna.\r\n[22] 447 (PartyIDSource) = 9[AUSTRALIAN_BUSINESS_NUMBER], [23] 452 (PartyRole) = 28[CUSTODIAN]\r\n[24] 802 (NoPartySubIDs) = 2, [25] 523 (PartySubID) = et\r\n[26] 803 (PartySubIDType) = 22[SECURITIES_ACCOUNT_NAME], [27] 523 (PartySubID) = leo,\r\n[28] 803 (PartySubIDType) = 10[SECURITIES_ACCOUNT_NUMBER], [29] 448 (PartyID) = iaculis\r\n[30] 447 (PartyIDSource) = F[SETTLEMENT_ENTITY_LOCATION], [31] 452 (PartyRole) = 2[BROKER_OF_CREDIT]\r\n[32] 802 (NoPartySubIDs) = 3, [33] 523 (PartySubID) = Nullam\r\n[34] 803 (PartySubIDType) = 12[REGISTERED_ADDRESS_12], [35] 523 (PartySubID) = lectus,\r\n[36] 803 (PartySubIDType) = 13[REGULATORY_STATUS], [37] 523 (PartySubID) = eget\r\n[38] 803 (PartySubIDType) = 18[REGISTERED_ADDRESS_18], [39] 448 (PartyID) = vitae,\r\n[40] 447 (PartyIDSource) = 9[AUSTRALIAN_BUSINESS_NUMBER], [41] 452 (PartyRole) = 5[INVESTOR_ID]\r\n[42] 802 (NoPartySubIDs) = 1, [43] 523 (PartySubID) = ac\r\n[44] 803 (PartySubIDType) = 6[POSTAL_ADDRESS], [45] 229 (TradeOriginationDate) = 20180528-16:38:03.972\r\n */\r\n\r\ntest('Parties structure', () => {\r\n const parties: SegmentDescription = structure.layout.Parties\r\n const noPartyIDs: SegmentDescription = structure.layout.NoPartyIDs\r\n expect(parties).toBeTruthy()\r\n expect(parties.startPosition === 20)\r\n expect(parties.endPosition === 44)\r\n expect(parties.depth === 1)\r\n expect(parties.type === SegmentType.Component)\r\n expect(noPartyIDs.startPosition === 20)\r\n expect(noPartyIDs.endPosition === 44)\r\n expect(noPartyIDs.depth === 2)\r\n expect(parties.type === SegmentType.Group)\r\n})\r\n\r\ntest('Parties PartySubIDType sub-structure', () => {\r\n const ptysSubGrp: SegmentDescription[] = structure.layout.PtysSubGrp\r\n expect(ptysSubGrp).toBeTruthy()\r\n expect(Array.isArray(ptysSubGrp)).toEqual(true)\r\n expect(ptysSubGrp.length).toEqual(3)\r\n expect(ptysSubGrp[0].startPosition).toEqual(24)\r\n expect(ptysSubGrp[0].type).toEqual(SegmentType.Component)\r\n expect(ptysSubGrp[1].startPosition).toEqual(32)\r\n expect(ptysSubGrp[1].type).toEqual(SegmentType.Component)\r\n expect(ptysSubGrp[2].startPosition).toEqual(42)\r\n expect(ptysSubGrp[2].type).toEqual(SegmentType.Component)\r\n\r\n const noPartySubIDs: SegmentDescription[] = structure.layout.NoPartySubIDs\r\n expect(noPartySubIDs).toBeTruthy()\r\n expect(Array.isArray(noPartySubIDs)).toEqual(true)\r\n expect(noPartySubIDs.length).toEqual(3)\r\n\r\n expect(noPartySubIDs[0].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[0].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[0].delimiterPositions).toEqual([25, 27])\r\n expect(noPartySubIDs[0].depth).toEqual(4)\r\n\r\n expect(noPartySubIDs[1].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[1].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[1].delimiterPositions).toEqual([33, 35, 37])\r\n expect(noPartySubIDs[1].depth).toEqual(4)\r\n\r\n expect(noPartySubIDs[2].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[2].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[2].delimiterPositions).toEqual([43])\r\n expect(noPartySubIDs[2].depth).toEqual(4)\r\n})\r\n\r\n/*\r\n[46] 382 (NoContraBrokers) = 3, [47] 375 (ContraBroker) = Quisque\r\n[48] 337 (ContraTrader) = tincidunt, [49] 437 (ContraTradeQty) = 18171\r\n[50] 438 (ContraTradeTime) = 20180528-16:38:03.972, [51] 655 (ContraLegRefID) = Class\r\n[52] 375 (ContraBroker) = taciti, [53] 337 (ContraTrader) = ad\r\n[54] 437 (ContraTradeQty) = 91261, [55] 438 (ContraTradeTime) = 20180528-16:38:03.972\r\n[56] 655 (ContraLegRefID) = torquent, [57] 375 (ContraBroker) = conubia\r\n[58] 337 (ContraTrader) = per, [59] 437 (ContraTradeQty) = 97017\r\n[60] 438 (ContraTradeTime) = 20180528-16:38:03.972, [61] 655 (ContraLegRefID) = himenaeos.\r\n */\r\n\r\ntest('ContraGrp structure', () => {\r\n const contraGrp: SegmentDescription = structure.layout.ContraGrp\r\n expect(contraGrp).toBeTruthy()\r\n expect(contraGrp.depth).toEqual(1)\r\n expect(contraGrp.type).toEqual(SegmentType.Component)\r\n expect(contraGrp.startPosition).toEqual(46)\r\n expect(contraGrp.endPosition).toEqual(61)\r\n\r\n const noContraBrokers: SegmentDescription = structure.layout.NoContraBrokers\r\n expect(noContraBrokers).toBeTruthy()\r\n expect(noContraBrokers.depth).toEqual(2)\r\n expect(noContraBrokers.type).toEqual(SegmentType.Group)\r\n expect(noContraBrokers.delimiterTag).toEqual(375)\r\n expect(noContraBrokers.delimiterPositions).toEqual([47, 52, 57])\r\n\r\n})\r\n\r\n/*\r\n[82] 635 (ClearingFeeIndicator) = 5[5TH_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT], [83] 55 (Symbol) = ac,\r\n[84] 65 (SymbolSfx) = non, [85] 48 (SecurityID) = Pellentesque\r\n[86] 22 (SecurityIDSource) = B[WERTPAPIER], [87] 454 (NoSecurityAltID) = 2\r\n[88] 455 (SecurityAltID) = lorem, [89] 456 (SecurityAltIDSource) = consequat\r\n[90] 455 (SecurityAltID) = sapien, [91] 456 (SecurityAltIDSource) = tempor\r\n[92] 460 (Product) = 2[COMMODITY], [93] 461 (CFICode) = a\r\n[94] 167 (SecurityType) = SECLOAN[SECURITIES_LOAN], [95] 762 (SecuritySubType) = purus\r\n[96] 200 (MaturityMonthYear) = ut, [97] 541 (MaturityDate) = 20180528-16:38:03.972\r\n[98] 201 (PutOrCall) = 1[CALL], [99] 224 (CouponPaymentDate) = 20180528-16:38:03.972\r\n[100] 225 (IssueDate) = 20180528-16:38:03.972, [101] 239 (RepoCollateralSecurityType) = Proin\r\n[102] 226 (RepurchaseTerm) = 62025, [103] 227 (RepurchaseRate) = 27005\r\n[104] 228 (Factor) = 68810, [105] 255 (CreditRating) = justo\r\n[106] 543 (InstrRegistry) = ut, [107] 470 (CountryOfIssue) = nibh\r\n[108] 471 (StateOrProvinceOfIssue) = at., [109] 472 (LocaleOfIssue) = fermentum\r\n[110] 240 (RedemptionDate) = 20180528-16:38:03.972, [111] 202 (StrikePrice) = 52639\r\n[112] 947 (StrikeCurrency) = 50824, [113] 206 (OptAttribute) = risus,\r\n[114] 231 (ContractMultiplier) = 10378, [115] 223 (CouponRate) = 25946\r\n[116] 207 (SecurityExchange) = placerat, [117] 106 (Issuer) = luctus\r\n[118] 348 (EncodedIssuerLen) = 20, [119] 349 (EncodedIssuer) = zqJsegy0CQ8EyKQ1bmLw\r\n[120] 107 (SecurityDesc) = Vivamus, [121] 350 (EncodedSecurityDescLen) = 20\r\n[122] 351 (EncodedSecurityDesc) = A1xB4jDS31E4zM1xAbk5, [123] 691 (Pool) = mi\r\n[124] 667 (ContractSettlMonth) = arcu, [125] 875 (CPProgram) = 2[4]\r\n[126] 876 (CPRegType) = rhoncus, [127] 864 (NoEvents) = 1\r\n[128] 865 (EventType) = 1[PUT], [129] 866 (EventDate) = 20180528-16:38:03.973\r\n[130] 867 (EventPx) = 16817, [131] 868 (EventText) = amet\r\n[132] 873 (DatedDate) = 20180528-16:38:03.973, [133] 874 (InterestAccrualDate) = 20180528-16:38:03.973\r\n */\r\n\r\ntest('Instrument structure', () => {\r\n const instrument: SegmentDescription = structure.layout.Instrument\r\n expect(instrument).toBeTruthy()\r\n expect(instrument.type).toEqual(SegmentType.Component)\r\n expect(instrument.startPosition).toEqual(83)\r\n expect(instrument.startTag).toEqual(55)\r\n expect(instrument.endPosition).toEqual(133)\r\n expect(instrument.endTag).toEqual(874)\r\n\r\n const noSecurityAltID: SegmentDescription = structure.layout.NoSecurityAltID\r\n expect(noSecurityAltID).toBeTruthy()\r\n expect(noSecurityAltID.type).toEqual(SegmentType.Group)\r\n expect(noSecurityAltID.delimiterTag).toEqual(455)\r\n expect(noSecurityAltID.delimiterPositions).toEqual([88, 90])\r\n})\r\n\r\n/*\r\n[134] 913 (AgreementDesc) = sit, [135] 914 (AgreementID) = eleifend\r\n[136] 915 (AgreementDate) = 20180528-16:38:03.973, [137] 918 (AgreementCurrency) = 78552\r\n[138] 788 (TerminationType) = 2[TERM], [139] 916 (StartDate) = 20180528-16:38:03.973\r\n[140] 917 (EndDate) = 20180528-16:38:03.973, [141] 919 (DeliveryType) = 3[HOLD_IN_CUSTODY]\r\n[142] 898 (MarginRatio) = 13625, [143] 711 (NoUnderlyings) = 2\r\n */\r\n\r\ntest('FinancingDetails structure', () => {\r\n const financingDetails: SegmentDescription = structure.layout.FinancingDetails\r\n expect(financingDetails).toBeTruthy()\r\n expect(financingDetails.depth).toEqual(1)\r\n expect(financingDetails.type).toEqual(SegmentType.Component)\r\n expect(financingDetails.startPosition).toEqual(134)\r\n expect(financingDetails.startTag).toEqual(913)\r\n expect(financingDetails.endPosition).toEqual(142)\r\n expect(financingDetails.endTag).toEqual(898)\r\n})\r\n\r\n/*\r\n[272] 211 (PegOffsetValue) = 38459, [273] 835 (PegMoveType) = 1[FIXED]\r\n[274] 836 (PegOffsetType) = [undefined], [275] 837 (PegLimitType) = 2\r\n[276] 838 (PegRoundDirection) = 2, [277] 840 (PegScope) = 4[NATIONAL_EXCLUDING_LOCAL]\r\n */\r\n\r\ntest('PegInstructions structure', () => {\r\n const pegInstructions: SegmentDescription = structure.layout.PegInstructions\r\n expect(pegInstructions).toBeTruthy()\r\n expect(pegInstructions.depth).toEqual(1)\r\n expect(pegInstructions.type).toEqual(SegmentType.Component)\r\n expect(pegInstructions.startPosition).toEqual(272)\r\n expect(pegInstructions.startTag).toEqual(211)\r\n expect(pegInstructions.endPosition).toEqual(277)\r\n expect(pegInstructions.endTag).toEqual(840)\r\n})\r\n\r\n/*\r\n[278] 388 (DiscretionInst) = 2[RELATED_TO_PRIMARY_PRICE], [279] 389 (DiscretionOffsetValue) = 48430\r\n[280] 841 (DiscretionMoveType) = 1[FIXED], [281] 842 (DiscretionOffsetType) = 3[PRICE_TIER]\r\n[282] 843 (DiscretionLimitType) = 2, [283] 844 (DiscretionRoundDirection) = 2\r\n[284] 846 (DiscretionScope) = 4[NATIONAL_EXCLUDING_LOCAL], [285] 839 (PeggedPrice) = 18644\r\n */\r\n\r\ntest('DiscretionInstructions structure', () => {\r\n const discretionInstructions: SegmentDescription = structure.layout.DiscretionInstructions\r\n expect(discretionInstructions).toBeTruthy()\r\n expect(discretionInstructions.depth).toEqual(1)\r\n expect(discretionInstructions.type).toEqual(SegmentType.Component)\r\n expect(discretionInstructions.startPosition).toEqual(278)\r\n expect(discretionInstructions.startTag).toEqual(388)\r\n expect(discretionInstructions.endPosition).toEqual(284)\r\n expect(discretionInstructions.endTag).toEqual(846)\r\n})\r\n\r\n/*\r\n[324] 12 (Commission) = 3339, [325] 13 (CommType) = 1[PER_UNIT]\r\n[326] 479 (CommCurrency) = 25841, [327] 497 (FundRenewWaiv) = N[NO]\r\n */\r\ntest('CommissionData structure', () => {\r\n const commisionData: SegmentDescription = structure.layout.CommissionData\r\n expect(commisionData).toBeTruthy()\r\n expect(commisionData.depth).toEqual(1)\r\n expect(commisionData.type).toEqual(SegmentType.Component)\r\n expect(commisionData.startPosition).toEqual(324)\r\n expect(commisionData.startTag).toEqual(12)\r\n expect(commisionData.endPosition).toEqual(327)\r\n expect(commisionData.endTag).toEqual(497)\r\n})\r\n\r\n/*\r\n[328] 218 (Spread) = 72687, [329] 220 (BenchmarkCurveCurrency) = 84249\r\n[330] 221 (BenchmarkCurveName) = Pellentesque, [331] 222 (BenchmarkCurvePoint) = luctus\r\n[332] 662 (BenchmarkPrice) = 90721, [333] 663 (BenchmarkPriceType) = 66615\r\n[334] 699 (BenchmarkSecurityID) = et, [335] 761 (BenchmarkSecurityIDSource) = nunc.\r\n */\r\n\r\ntest('SpreadOrBenchmarkCurveData structure', () => {\r\n const spreadBenchData: SegmentDescription = structure.layout.SpreadOrBenchmarkCurveData\r\n expect(spreadBenchData).toBeTruthy()\r\n expect(spreadBenchData.depth).toEqual(1)\r\n expect(spreadBenchData.type).toEqual(SegmentType.Component)\r\n expect(spreadBenchData.startPosition).toEqual(328)\r\n expect(spreadBenchData.startTag).toEqual(218)\r\n expect(spreadBenchData.endPosition).toEqual(335)\r\n expect(spreadBenchData.endTag).toEqual(761)\r\n})\r\n\r\n/*\r\n[336] 235 (YieldType) = INVERSEFLOATER[INVERSE_FLOATER_BOND_YIELD], [337] 236 (Yield) = 34183\r\n[338] 701 (YieldCalcDate) = 20180528-16:38:03.973, [339] 696 (YieldRedemptionDate) = 20180528-16:38:03.973\r\n[340] 697 (YieldRedemptionPrice) = 3652, [341] 698 (YieldRedemptionPriceType) = 10535\r\n */\r\n\r\ntest('YieldData structure', () => {\r\n const yieldData: SegmentDescription = structure.layout.YieldData\r\n expect(yieldData).toBeTruthy()\r\n expect(yieldData.depth).toEqual(1)\r\n expect(yieldData.type).toEqual(SegmentType.Component)\r\n expect(yieldData.startPosition).toEqual(336)\r\n expect(yieldData.startTag).toEqual(235)\r\n expect(yieldData.endPosition).toEqual(341)\r\n expect(yieldData.endTag).toEqual(698)\r\n})\r\n\r\n/*\r\n[384] 851 (LastLiquidityInd) = 3[LIQUIDITY_ROUTED_OUT], [385] 518 (NoContAmts) = 3\r\n[386] 519 (ContAmtType) = 5[DISCOUNT_AMOUNT], [387] 520 (ContAmtValue) = 95673\r\n[388] 521 (ContAmtCurr) = 87528, [389] 519 (ContAmtType) = 14[FUND_BASED_RENEWAL_COMMISSION_AMOUNT_14]\r\n[390] 520 (ContAmtValue) = 56344, [391] 521 (ContAmtCurr) = 46066\r\n[392] 519 (ContAmtType) = 11[FUND_BASED_RENEWAL_COMMISSION], [393] 520 (ContAmtValue) = 94762\r\n[394] 521 (ContAmtCurr) = 6779, [395] 555 (NoLegs) = 3\r\n */\r\n\r\ntest('ContAmtGrp structure', () => {\r\n const contAmtGrp: SegmentDescription = structure.layout.ContAmtGrp\r\n expect(contAmtGrp).toBeTruthy()\r\n expect(contAmtGrp.depth).toEqual(1)\r\n expect(contAmtGrp.type).toEqual(SegmentType.Component)\r\n expect(contAmtGrp.startPosition).toEqual(385)\r\n expect(contAmtGrp.startTag).toEqual(518)\r\n expect(contAmtGrp.endPosition).toEqual(394)\r\n expect(contAmtGrp.endTag).toEqual(521)\r\n\r\n const noContAmts: SegmentDescription = structure.layout.NoContAmts\r\n expect(noContAmts).toBeTruthy()\r\n expect(noContAmts.depth).toEqual(2)\r\n expect(noContAmts.type).toEqual(SegmentType.Group)\r\n expect(noContAmts.startPosition).toEqual(385)\r\n expect(noContAmts.startTag).toEqual(518)\r\n expect(noContAmts.endPosition).toEqual(394)\r\n expect(noContAmts.endTag).toEqual(521)\r\n expect(noContAmts.delimiterTag).toEqual(519)\r\n expect(noContAmts.delimiterPositions).toEqual([386, 389, 392])\r\n})\r\n\r\n/*\r\n[636] 136 (NoMiscFees) = 2, [637] 137 (MiscFeeAmt) = 56059\r\n[638] 138 (MiscFeeCurr) = 92115, [639] 139 (MiscFeeType) = 7[OTHER]\r\n[640] 891 (MiscFeeBasis) = [undefined], [641] 137 (MiscFeeAmt) = 93185\r\n[642] 138 (MiscFeeCurr) = 72195, [643] 139 (MiscFeeType) = 12[AGENT]\r\n[644] 891 (MiscFeeBasis) = [undefined], [645] 10 (CheckSum) = 59\r\n */\r\n\r\ntest('MiscFeesGrp structure', () => {\r\n const miscFees: SegmentDescription = structure.layout.MiscFeesGrp\r\n expect(miscFees).toBeTruthy()\r\n expect(miscFees.depth).toEqual(1)\r\n expect(miscFees.type).toEqual(SegmentType.Component)\r\n expect(miscFees.startPosition).toEqual(636)\r\n expect(miscFees.startTag).toEqual(136)\r\n expect(miscFees.endPosition).toEqual(644)\r\n expect(miscFees.endTag).toEqual(891)\r\n\r\n const noMiscfees: SegmentDescription = structure.layout.NoMiscFees\r\n expect(noMiscfees).toBeTruthy()\r\n expect(noMiscfees.depth).toEqual(2)\r\n expect(noMiscfees.type).toEqual(SegmentType.Group)\r\n expect(noMiscfees.startPosition).toEqual(636)\r\n expect(noMiscfees.startTag).toEqual(136)\r\n expect(noMiscfees.endPosition).toEqual(644)\r\n expect(noMiscfees.endTag).toEqual(891)\r\n expect(noMiscfees.delimiterTag).toEqual(137)\r\n expect(noMiscfees.delimiterPositions).toEqual([637, 641])\r\n})\r\n\r\n/*\r\n[142] 898 (MarginRatio) = 13625, [143] 711 (NoUnderlyings) = 2\r\n[144] 311 (UnderlyingSymbol) = massa., [145] 312 (UnderlyingSymbolSfx) = metus\r\n[146] 309 (UnderlyingSecurityID) = maximus, [147] 305 (UnderlyingSecurityIDSource) = facilisis\r\n[148] 457 (NoUnderlyingSecurityAltID) = 3, [149] 458 (UnderlyingSecurityAltID) = ornare\r\n[150] 459 (UnderlyingSecurityAltIDSource) = magna., [151] 458 (UnderlyingSecurityAltID) = non\r\n[152] 459 (UnderlyingSecurityAltIDSource) = at, [153] 458 (UnderlyingSecurityAltID) = hendrerit\r\n[154] 459 (UnderlyingSecurityAltIDSource) = Pellentesque, [155] 462 (UnderlyingProduct) = 89682\r\n[156] 463 (UnderlyingCFICode) = arcu,, [157] 310 (UnderlyingSecurityType) = eu\r\n[158] 763 (UnderlyingSecuritySubType) = vitae,, [159] 313 (UnderlyingMaturityMonthYear) = ut\r\n[160] 542 (UnderlyingMaturityDate) = 20180528-16:38:03.973, [161] 315 (UnderlyingPutOrCall) = 81619\r\n[162] 241 (UnderlyingCouponPaymentDate) = 20180528-16:38:03.973, [163] 242 (UnderlyingIssueDate) = 20180528-16:38:03.973\r\n[164] 243 (UnderlyingRepoCollateralSecurityType) = Aliquam, [165] 244 (UnderlyingRepurchaseTerm) = 1819\r\n[166] 245 (UnderlyingRepurchaseRate) = 12004, [167] 246 (UnderlyingFactor) = 81916\r\n[168] 256 (UnderlyingCreditRating) = erat, [169] 595 (UnderlyingInstrRegistry) = tellus\r\n[170] 592 (UnderlyingCountryOfIssue) = in, [171] 593 (UnderlyingStateOrProvinceOfIssue) = nisi\r\n[172] 594 (UnderlyingLocaleOfIssue) = Interdum, [173] 247 (UnderlyingRedemptionDate) = 20180528-16:38:03.973\r\n[174] 316 (UnderlyingStrikePrice) = 46328, [175] 941 (UnderlyingStrikeCurrency) = 21536\r\n[176] 317 (UnderlyingOptAttribute) = malesuada, [177] 436 (UnderlyingContractMultiplier) = 83404\r\n[178] 435 (UnderlyingCouponRate) = 1709, [179] 308 (UnderlyingSecurityExchange) = ac\r\n[180] 306 (UnderlyingIssuer) = ipsum, [181] 362 (EncodedUnderlyingIssuerLen) = 20\r\n[182] 363 (EncodedUnderlyingIssuer) = gJ40LPqdkNUGQxMisPLk, [183] 307 (UnderlyingSecurityDesc) = in\r\n[184] 364 (EncodedUnderlyingSecurityDescLen) = 20, [185] 365 (EncodedUnderlyingSecurityDesc) = RUQjbmg6gsPoWBsuwDCh\r\n[186] 877 (UnderlyingCPProgram) = Ut, [187] 878 (UnderlyingCPRegType) = massa\r\n[188] 318 (UnderlyingCurrency) = 47704, [189] 879 (UnderlyingQty) = 31703\r\n[190] 810 (UnderlyingPx) = 60977, [191] 882 (UnderlyingDirtyPrice) = 67361\r\n[192] 883 (UnderlyingEndPrice) = 51785, [193] 884 (UnderlyingStartValue) = 80625\r\n[194] 885 (UnderlyingCurrentValue) = 29888, [195] 886 (UnderlyingEndValue) = 49266\r\n[196] 887 (NoUnderlyingStips) = 3, [197] 888 (UnderlyingStipType) = cursus\r\n[198] 889 (UnderlyingStipValue) = Vivamus, [199] 888 (UnderlyingStipType) = convallis\r\n[200] 889 (UnderlyingStipValue) = nec, [201] 888 (UnderlyingStipType) = urna\r\n[202] 889 (UnderlyingStipValue) = vitae., [203] 311 (UnderlyingSymbol) = erat\r\n[204] 312 (UnderlyingSymbolSfx) = In, [205] 309 (UnderlyingSecurityID) = feugiat\r\n[206] 305 (UnderlyingSecurityIDSource) = ut, [207] 457 (NoUnderlyingSecurityAltID) = 1\r\n[208] 458 (UnderlyingSecurityAltID) = Quisque, [209] 459 (UnderlyingSecurityAltIDSource) = tortor\r\n[210] 462 (UnderlyingProduct) = 36068, [211] 463 (UnderlyingCFICode) = est\r\n[212] 310 (UnderlyingSecurityType) = Lorem, [213] 763 (UnderlyingSecuritySubType) = dolor\r\n[214] 313 (UnderlyingMaturityMonthYear) = amet,, [215] 542 (UnderlyingMaturityDate) = 20180528-16:38:03.973\r\n[216] 315 (UnderlyingPutOrCall) = 94032, [217] 241 (UnderlyingCouponPaymentDate) = 20180528-16:38:03.973\r\n[218] 242 (UnderlyingIssueDate) = 20180528-16:38:03.973, [219] 243 (UnderlyingRepoCollateralSecurityType) = adipiscing\r\n[220] 244 (UnderlyingRepurchaseTerm) = 17712, [221] 245 (UnderlyingRepurchaseRate) = 95092\r\n[222] 246 (UnderlyingFactor) = 82914, [223] 256 (UnderlyingCreditRating) = Nunc\r\n[224] 595 (UnderlyingInstrRegistry) = orci,, [225] 592 (UnderlyingCountryOfIssue) = vel\r\n[226] 593 (UnderlyingStateOrProvinceOfIssue) = sed,, [227] 594 (UnderlyingLocaleOfIssue) = cursus\r\n[228] 247 (UnderlyingRedemptionDate) = 20180528-16:38:03.973, [229] 316 (UnderlyingStrikePrice) = 84513\r\n[230] 941 (UnderlyingStrikeCurrency) = 31556, [231] 317 (UnderlyingOptAttribute) = Aenean\r\n[232] 436 (UnderlyingContractMultiplier) = 8879, [233] 435 (UnderlyingCouponRate) = 68005\r\n[234] 308 (UnderlyingSecurityExchange) = diam, [235] 306 (UnderlyingIssuer) = Aenean\r\n[236] 362 (EncodedUnderlyingIssuerLen) = 20, [237] 363 (EncodedUnderlyingIssuer) = VxRjId4eWuuNiBYgjNpp\r\n[238] 307 (UnderlyingSecurityDesc) = viverra, [239] 364 (EncodedUnderlyingSecurityDescLen) = 20\r\n[240] 365 (EncodedUnderlyingSecurityDesc) = fwlY5CmVswvapjFalVLb, [241] 877 (UnderlyingCPProgram) = non\r\n[242] 878 (UnderlyingCPRegType) = neque., [243] 318 (UnderlyingCurrency) = 53806\r\n[244] 879 (UnderlyingQty) = 26390, [245] 810 (UnderlyingPx) = 32442\r\n[246] 882 (UnderlyingDirtyPrice) = 82617, [247] 883 (UnderlyingEndPrice) = 86326\r\n[248] 884 (UnderlyingStartValue) = 34911, [249] 885 (UnderlyingCurrentValue) = 46867\r\n[250] 886 (UnderlyingEndValue) = 94014, [251] 887 (NoUnderlyingStips) = 3\r\n[252] 888 (UnderlyingStipType) = arcu, [253] 889 (UnderlyingStipValue) = dignissim\r\n[254] 888 (UnderlyingStipType) = auctor, [255] 889 (UnderlyingStipValue) = maximus\r\n[256] 888 (UnderlyingStipType) = quam., [257] 889 (UnderlyingStipValue) = varius\r\n */\r\n\r\ntest('UndInstrmtGrp structure', () => {\r\n const undInstrmtGrp: SegmentDescription = structure.layout.UndInstrmtGrp\r\n expect(undInstrmtGrp).toBeTruthy()\r\n expect(undInstrmtGrp.type).toEqual(SegmentType.Component)\r\n expect(undInstrmtGrp.startPosition).toEqual(143)\r\n expect(undInstrmtGrp.startTag).toEqual(711)\r\n expect(undInstrmtGrp.endPosition).toEqual(257)\r\n expect(undInstrmtGrp.endTag).toEqual(889)\r\n expect(undInstrmtGrp.depth).toEqual(1)\r\n\r\n const noUnderlyings: SegmentDescription = structure.layout.NoUnderlyings\r\n expect(noUnderlyings).toBeTruthy()\r\n expect(noUnderlyings.delimiterTag).toEqual(311)\r\n expect(noUnderlyings.delimiterPositions).toEqual([144, 203])\r\n expect(noUnderlyings.depth).toEqual(2)\r\n expect(noUnderlyings.type).toEqual(SegmentType.Group)\r\n\r\n const underlyingInstrument: SegmentDescription[] = structure.layout.UnderlyingInstrument\r\n expect(underlyingInstrument).toBeTruthy()\r\n expect(underlyingInstrument.length).toEqual(2)\r\n expect(underlyingInstrument).toBeTruthy()\r\n\r\n expect(underlyingInstrument[0].startPosition).toEqual(144)\r\n expect(underlyingInstrument[0].startTag).toEqual(311)\r\n expect(underlyingInstrument[0].endPosition).toEqual(202)\r\n expect(underlyingInstrument[0].endTag).toEqual(889)\r\n expect(underlyingInstrument[0].depth).toEqual(3)\r\n expect(underlyingInstrument[0].type).toEqual(SegmentType.Component)\r\n\r\n expect(underlyingInstrument[1].startPosition).toEqual(203)\r\n expect(underlyingInstrument[1].startTag).toEqual(311)\r\n expect(underlyingInstrument[1].endPosition).toEqual(257)\r\n expect(underlyingInstrument[1].endTag).toEqual(889)\r\n expect(underlyingInstrument[1].depth).toEqual(3)\r\n expect(underlyingInstrument[1].type).toEqual(SegmentType.Component)\r\n\r\n const undSecAltIDGrp: SegmentDescription[] = structure.layout.UndSecAltIDGrp\r\n expect(undSecAltIDGrp.length).toEqual(2)\r\n expect(undSecAltIDGrp[0].startPosition).toEqual(148)\r\n expect(undSecAltIDGrp[0].startTag).toEqual(457)\r\n expect(undSecAltIDGrp[0].endPosition).toEqual(154)\r\n expect(undSecAltIDGrp[0].endTag).toEqual(459)\r\n expect(undSecAltIDGrp[0].depth).toEqual(4)\r\n expect(undSecAltIDGrp[0].type).toEqual(SegmentType.Component)\r\n\r\n expect(undSecAltIDGrp[1].startPosition).toEqual(207)\r\n expect(undSecAltIDGrp[1].startTag).toEqual(457)\r\n expect(undSecAltIDGrp[1].endPosition).toEqual(209)\r\n expect(undSecAltIDGrp[1].endTag).toEqual(459)\r\n expect(undSecAltIDGrp[1].depth).toEqual(4)\r\n expect(undSecAltIDGrp[1].type).toEqual(SegmentType.Component)\r\n\r\n const noUnderlyingSecurityAltID: SegmentDescription[] = structure.layout.NoUnderlyingSecurityAltID\r\n expect(noUnderlyingSecurityAltID.length).toEqual(2)\r\n expect(noUnderlyingSecurityAltID).toBeTruthy()\r\n\r\n expect(noUnderlyingSecurityAltID[0].depth).toEqual(5)\r\n expect(noUnderlyingSecurityAltID[0].delimiterTag).toEqual(458)\r\n expect(noUnderlyingSecurityAltID[0].type).toEqual(SegmentType.Group)\r\n expect(noUnderlyingSecurityAltID[0].startPosition).toEqual(148)\r\n expect(noUnderlyingSecurityAltID[0].endPosition).toEqual(154)\r\n expect(noUnderlyingSecurityAltID[0].delimiterPositions).toEqual([149, 151, 153])\r\n\r\n expect(noUnderlyingSecurityAltID[1].depth).toEqual(5)\r\n expect(noUnderlyingSecurityAltID[1].delimiterTag).toEqual(458)\r\n expect(noUnderlyingSecurityAltID[1].type).toEqual(SegmentType.Group)\r\n expect(noUnderlyingSecurityAltID[1].startPosition).toEqual(207)\r\n expect(noUnderlyingSecurityAltID[1].endPosition).toEqual(209)\r\n expect(noUnderlyingSecurityAltID[1].delimiterPositions).toEqual([208])\r\n\r\n const boundNoUnderlyingSecurityAltID: SegmentDescription = structure.firstContainedWithin(\r\n 'NoUnderlyingSecurityAltID',\r\n underlyingInstrument[1])\r\n expect(boundNoUnderlyingSecurityAltID).toBeTruthy()\r\n})\r\n\r\n/*\r\n[394] 521 (ContAmtCurr) = 6779, [395] 555 (NoLegs) = 3\r\n[396] 600 (LegSymbol) = posuere, [397] 601 (LegSymbolSfx) = nibh.\r\n[398] 602 (LegSecurityID) = ornare,, [399] 603 (LegSecurityIDSource) = semper\r\n[400] 604 (NoLegSecurityAltID) = 3, [401] 605 (LegSecurityAltID) = laoreet,\r\n[402] 606 (LegSecurityAltIDSource) = odio, [403] 605 (LegSecurityAltID) = velit,\r\n[404] 606 (LegSecurityAltIDSource) = sollicitudin, [405] 605 (LegSecurityAltID) = augue\r\n[406] 606 (LegSecurityAltIDSource) = odio., [407] 607 (LegProduct) = 12438\r\n[408] 608 (LegCFICode) = tempor, [409] 609 (LegSecurityType) = nisi,\r\n[410] 764 (LegSecuritySubType) = euismod, [411] 610 (LegMaturityMonthYear) = convallis\r\n[412] 611 (LegMaturityDate) = 20180528-16:38:03.973, [413] 248 (LegCouponPaymentDate) = 20180528-16:38:03.973\r\n[414] 249 (LegIssueDate) = 20180528-16:38:03.973, [415] 250 (LegRepoCollateralSecurityType) = Donec\r\n[416] 251 (LegRepurchaseTerm) = 50636, [417] 252 (LegRepurchaseRate) = 29567\r\n[418] 253 (LegFactor) = 12603, [419] 257 (LegCreditRating) = erat\r\n[420] 599 (LegInstrRegistry) = vel, [421] 596 (LegCountryOfIssue) = nulla\r\n[422] 597 (LegStateOrProvinceOfIssue) = ac., [423] 598 (LegLocaleOfIssue) = vel\r\n[424] 254 (LegRedemptionDate) = 20180528-16:38:03.973, [425] 612 (LegStrikePrice) = 45964\r\n[426] 942 (LegStrikeCurrency) = 52294, [427] 613 (LegOptAttribute) = eros.\r\n[428] 614 (LegContractMultiplier) = 15566, [429] 615 (LegCouponRate) = 29897\r\n[430] 616 (LegSecurityExchange) = urna,, [431] 617 (LegIssuer) = sit\r\n[432] 618 (EncodedLegIssuerLen) = 20, [433] 619 (EncodedLegIssuer) = bsCdR5NlOBXt99NrTSbA\r\n[434] 620 (LegSecurityDesc) = bibendum, [435] 621 (EncodedLegSecurityDescLen) = 20\r\n[436] 622 (EncodedLegSecurityDesc) = 3Mzh9ClDlcxCLLtgAZ0x, [437] 623 (LegRatioQty) = 47570\r\n[438] 624 (LegSide) = amet,, [439] 556 (LegCurrency) = 18817\r\n[440] 740 (LegPool) = non, [441] 739 (LegDatedDate) = 20180528-16:38:03.973\r\n[442] 955 (LegContractSettlMonth) = Nam, [443] 956 (LegInterestAccrualDate) = 20180528-16:38:03.973\r\n[444] 687 (LegQty) = 38413, [445] 690 (LegSwapType) = 4[RISK]\r\n[446] 683 (NoLegStipulations) = 2, [447] 688 (LegStipulationType) = mi,\r\n[448] 689 (LegStipulationValue) = et, [449] 688 (LegStipulationType) = in,\r\n[450] 689 (LegStipulationValue) = sed, [451] 564 (LegPositionEffect) = Nulla\r\n[452] 565 (LegCoveredOrUncovered) = 45098, [453] 539 (NoNestedPartyIDs) = 1\r\n[454] 524 (NestedPartyID) = leo, [455] 525 (NestedPartyIDSource) = odio\r\n[456] 538 (NestedPartyRole) = 59224, [457] 804 (NoNestedPartySubIDs) = 1\r\n[458] 545 (NestedPartySubID) = placerat., [459] 805 (NestedPartySubIDType) = 83297\r\n[460] 654 (LegRefID) = felis, [461] 566 (LegPrice) = 39429\r\n[462] 587 (LegSettlType) = elementum, [463] 588 (LegSettlDate) = 20180528-16:38:03.973\r\n[464] 637 (LegLastPx) = 75387, [465] 600 (LegSymbol) = mollis\r\n[466] 601 (LegSymbolSfx) = euismod, [467] 602 (LegSecurityID) = diam.\r\n[468] 603 (LegSecurityIDSource) = porttitor, [469] 604 (NoLegSecurityAltID) = 3\r\n[470] 605 (LegSecurityAltID) = eget, [471] 606 (LegSecurityAltIDSource) = cursus,\r\n[472] 605 (LegSecurityAltID) = hendrerit, [473] 606 (LegSecurityAltIDSource) = tempus.\r\n[474] 605 (LegSecurityAltID) = et, [475] 606 (LegSecurityAltIDSource) = fames\r\n[476] 607 (LegProduct) = 6990, [477] 608 (LegCFICode) = ante\r\n[478] 609 (LegSecurityType) = primis, [479] 764 (LegSecuritySubType) = faucibus.\r\n[480] 610 (LegMaturityMonthYear) = egestas, [481] 611 (LegMaturityDate) = 20180528-16:38:03.973\r\n[482] 248 (LegCouponPaymentDate) = 20180528-16:38:03.973, [483] 249 (LegIssueDate) = 20180528-16:38:03.973\r\n[484] 250 (LegRepoCollateralSecurityType) = ac, [485] 251 (LegRepurchaseTerm) = 58397\r\n[486] 252 (LegRepurchaseRate) = 22917, [487] 253 (LegFactor) = 96132\r\n[488] 257 (LegCreditRating) = semper., [489] 599 (LegInstrRegistry) = rhoncus\r\n[490] 596 (LegCountryOfIssue) = nulla,, [491] 597 (LegStateOrProvinceOfIssue) = ornare\r\n[492] 598 (LegLocaleOfIssue) = iaculis, [493] 254 (LegRedemptionDate) = 20180528-16:38:03.973\r\n[494] 612 (LegStrikePrice) = 86522, [495] 942 (LegStrikeCurrency) = 3727\r\n[496] 613 (LegOptAttribute) = Aliquam, [497] 614 (LegContractMultiplier) = 18485\r\n[498] 615 (LegCouponRate) = 36169, [499] 616 (LegSecurityExchange) = volutpat.\r\n[500] 617 (LegIssuer) = condimentum, [501] 618 (EncodedLegIssuerLen) = 20\r\n[502] 619 (EncodedLegIssuer) = P813lip75NKBgG1C8re8, [503] 620 (LegSecurityDesc) = sem\r\n[504] 621 (EncodedLegSecurityDescLen) = 20, [505] 622 (EncodedLegSecurityDesc) = 8qbetIHVFcKFS7EY3XOK\r\n[506] 623 (LegRatioQty) = 42919, [507] 624 (LegSide) = porttitor.\r\n[508] 556 (LegCurrency) = 34832, [509] 740 (LegPool) = pellentesque\r\n[510] 739 (LegDatedDate) = 20180528-16:38:03.973, [511] 955 (LegContractSettlMonth) = eget\r\n[512] 956 (LegInterestAccrualDate) = 20180528-16:38:03.973, [513] 687 (LegQty) = 16560\r\n[514] 690 (LegSwapType) = 1[PAR_FOR_PAR], [515] 683 (NoLegStipulations) = 3\r\n[516] 688 (LegStipulationType) = tincidunt, [517] 689 (LegStipulationValue) = ipsum\r\n[518] 688 (LegStipulationType) = sit, [519] 689 (LegStipulationValue) = consectetur\r\n[520] 688 (LegStipulationType) = elit., [521] 689 (LegStipulationValue) = odio\r\n[522] 564 (LegPositionEffect) = blandit, [523] 565 (LegCoveredOrUncovered) = 61021\r\n[524] 539 (NoNestedPartyIDs) = 3, [525] 524 (NestedPartyID) = semper\r\n[526] 525 (NestedPartyIDSource) = bibendum, [527] 538 (NestedPartyRole) = 33332\r\n[528] 804 (NoNestedPartySubIDs) = 1, [529] 545 (NestedPartySubID) = lectus.\r\n[530] 805 (NestedPartySubIDType) = 78292, [531] 524 (NestedPartyID) = vel\r\n[532] 525 (NestedPartyIDSource) = magna., [533] 538 (NestedPartyRole) = 8563\r\n[534] 804 (NoNestedPartySubIDs) = 3, [535] 545 (NestedPartySubID) = et\r\n[536] 805 (NestedPartySubIDType) = 91784, [537] 545 (NestedPartySubID) = leo,\r\n[538] 805 (NestedPartySubIDType) = 69741, [539] 545 (NestedPartySubID) = iaculis\r\n[540] 805 (NestedPartySubIDType) = 88660, [541] 524 (NestedPartyID) = Nullam\r\n[542] 525 (NestedPartyIDSource) = lectus,, [543] 538 (NestedPartyRole) = 92219\r\n[544] 804 (NoNestedPartySubIDs) = 2, [545] 545 (NestedPartySubID) = eget\r\n[546] 805 (NestedPartySubIDType) = 61048, [547] 545 (NestedPartySubID) = vitae,\r\n[548] 805 (NestedPartySubIDType) = 82229, [549] 654 (LegRefID) = ac\r\n[550] 566 (LegPrice) = 87104, [551] 587 (LegSettlType) = Quisque\r\n[552] 588 (LegSettlDate) = 20180528-16:38:03.974, [553] 637 (LegLastPx) = 56182\r\n[554] 600 (LegSymbol) = tincidunt, [555] 601 (LegSymbolSfx) = Class\r\n[556] 602 (LegSecurityID) = taciti, [557] 603 (LegSecurityIDSource) = ad\r\n[558] 604 (NoLegSecurityAltID) = 3, [559] 605 (LegSecurityAltID) = torquent\r\n[560] 606 (LegSecurityAltIDSource) = conubia, [561] 605 (LegSecurityAltID) = per\r\n[562] 606 (LegSecurityAltIDSource) = himenaeos., [563] 605 (LegSecurityAltID) = eu\r\n[564] 606 (LegSecurityAltIDSource) = risus,, [565] 607 (LegProduct) = 36203\r\n[566] 608 (LegCFICode) = tincidunt, [567] 609 (LegSecurityType) = Morbi\r\n[568] 764 (LegSecuritySubType) = mi,, [569] 610 (LegMaturityMonthYear) = vel\r\n[570] 611 (LegMaturityDate) = 20180528-16:38:03.974, [571] 248 (LegCouponPaymentDate) = 20180528-16:38:03.974\r\n[572] 249 (LegIssueDate) = 20180528-16:38:03.974, [573] 250 (LegRepoCollateralSecurityType) = ac,\r\n[574] 251 (LegRepurchaseTerm) = 89976, [575] 252 (LegRepurchaseRate) = 16951\r\n[576] 253 (LegFactor) = 28912, [577] 257 (LegCreditRating) = non\r\n[578] 599 (LegInstrRegistry) = Pellentesque, [579] 596 (LegCountryOfIssue) = lorem\r\n[580] 597 (LegStateOrProvinceOfIssue) = consequat, [581] 598 (LegLocaleOfIssue) = sapien\r\n[582] 254 (LegRedemptionDate) = 20180528-16:38:03.974, [583] 612 (LegStrikePrice) = 97965\r\n[584] 942 (LegStrikeCurrency) = 62977, [585] 613 (LegOptAttribute) = tempor\r\n[586] 614 (LegContractMultiplier) = 4694, [587] 615 (LegCouponRate) = 20263\r\n[588] 616 (LegSecurityExchange) = a, [589] 617 (LegIssuer) = purus\r\n[590] 618 (EncodedLegIssuerLen) = 20, [591] 619 (EncodedLegIssuer) = Z2GKqFkA713xSVG2nqOx\r\n[592] 620 (LegSecurityDesc) = ut, [593] 621 (EncodedLegSecurityDescLen) = 20\r\n[594] 622 (EncodedLegSecurityDesc) = lyQLPxezPpjDNJnvSnCo, [595] 623 (LegRatioQty) = 24444\r\n[596] 624 (LegSide) = Proin, [597] 556 (LegCurrency) = 86893\r\n[598] 740 (LegPool) = justo, [599] 739 (LegDatedDate) = 20180528-16:38:03.974\r\n[600] 955 (LegContractSettlMonth) = ut, [601] 956 (LegInterestAccrualDate) = 20180528-16:38:03.974\r\n[602] 687 (LegQty) = 33589, [603] 690 (LegSwapType) = 4[RISK]\r\n[604] 683 (NoLegStipulations) = 2, [605] 688 (LegStipulationType) = nibh\r\n[606] 689 (LegStipulationValue) = at., [607] 688 (LegStipulationType) = fermentum\r\n[608] 689 (LegStipulationValue) = risus,, [609] 564 (LegPositionEffect) = placerat\r\n[610] 565 (LegCoveredOrUncovered) = 74238, [611] 539 (NoNestedPartyIDs) = 2\r\n[612] 524 (NestedPartyID) = luctus, [613] 525 (NestedPartyIDSource) = Vivamus\r\n[614] 538 (NestedPartyRole) = 41104, [615] 804 (NoNestedPartySubIDs) = 3\r\n[616] 545 (NestedPartySubID) = mi, [617] 805 (NestedPartySubIDType) = 26305\r\n[618] 545 (NestedPartySubID) = arcu, [619] 805 (NestedPartySubIDType) = 97537\r\n[620] 545 (NestedPartySubID) = rhoncus, [621] 805 (NestedPartySubIDType) = 71231\r\n[622] 524 (NestedPartyID) = amet, [623] 525 (NestedPartyIDSource) = sit\r\n[624] 538 (NestedPartyRole) = 66844, [625] 804 (NoNestedPartySubIDs) = 2\r\n[626] 545 (NestedPartySubID) = eleifend, [627] 805 (NestedPartySubIDType) = 8186\r\n[628] 545 (NestedPartySubID) = massa., [629] 805 (NestedPartySubIDType) = 82689\r\n[630] 654 (LegRefID) = metus, [631] 566 (LegPrice) = 6725\r\n[632] 587 (LegSettlType) = maximus, [633] 588 (LegSettlDate) = 20180528-16:38:03.974\r\n[634] 637 (LegLastPx) = 88665, [635] 797 (CopyMsgIndicator) = Y\r\n */\r\n\r\ntest('InstrmtLegExecGrp structure', () => {\r\n const instrmtLegExecGrp: SegmentDescription = structure.layout.InstrmtLegExecGrp\r\n expect(instrmtLegExecGrp).toBeTruthy()\r\n expect(instrmtLegExecGrp.type).toEqual(SegmentType.Component)\r\n expect(instrmtLegExecGrp.startPosition).toEqual(395)\r\n expect(instrmtLegExecGrp.startTag).toEqual(555)\r\n expect(instrmtLegExecGrp.endTag).toEqual(637)\r\n expect(instrmtLegExecGrp.endPosition).toEqual(634)\r\n expect(instrmtLegExecGrp.depth).toEqual(1)\r\n\r\n const noLegs: SegmentDescription = structure.layout.NoLegs\r\n expect(noLegs).toBeTruthy()\r\n expect(noLegs.type).toEqual(SegmentType.Group)\r\n expect(noLegs.startPosition).toEqual(395)\r\n expect(noLegs.startTag).toEqual(555)\r\n expect(noLegs.endTag).toEqual(637)\r\n expect(noLegs.endPosition).toEqual(634)\r\n expect(noLegs.depth).toEqual(2)\r\n expect(noLegs.delimiterTag).toEqual(600)\r\n expect(noLegs.delimiterPositions).toEqual([396, 465, 554])\r\n})\r\n\r\ntest('instrumentLeg structure', () => {\r\n const instrumentLeg: SegmentDescription[] = structure.layout.InstrumentLeg\r\n expect(instrumentLeg).toBeTruthy()\r\n expect(Array.isArray(instrumentLeg)).toEqual(true)\r\n expect(instrumentLeg.length).toEqual(3)\r\n\r\n expect(instrumentLeg[0].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[0].depth).toEqual(3)\r\n expect(instrumentLeg[0].startTag).toEqual(600)\r\n expect(instrumentLeg[0].startPosition).toEqual(396)\r\n expect(instrumentLeg[0].endPosition).toEqual(443)\r\n expect(instrumentLeg[0].endTag).toEqual(956)\r\n\r\n expect(instrumentLeg[1].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[1].depth).toEqual(3)\r\n expect(instrumentLeg[1].startTag).toEqual(600)\r\n expect(instrumentLeg[1].startPosition).toEqual(465)\r\n expect(instrumentLeg[1].endPosition).toEqual(512)\r\n expect(instrumentLeg[1].endTag).toEqual(956)\r\n\r\n expect(instrumentLeg[2].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[2].depth).toEqual(3)\r\n expect(instrumentLeg[2].startTag).toEqual(600)\r\n expect(instrumentLeg[2].startPosition).toEqual(554)\r\n expect(instrumentLeg[2].endPosition).toEqual(601)\r\n expect(instrumentLeg[2].endTag).toEqual(956)\r\n})\r\n\r\ntest('LegSecAltIDGrp [0] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 0\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(400)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(406)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(400)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(406)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([401, 403, 405])\r\n})\r\n\r\ntest('LegSecAltIDGrp [1] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 1\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(469)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(475)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(469)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(475)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([470, 472, 474])\r\n})\r\n\r\ntest('LegSecAltIDGrp [2] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 2\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(558)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(564)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(558)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(564)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([559, 561, 563])\r\n})\r\n\r\ntest('expect one message view from one line fix file', () => {\r\n expect(views).toHaveLength(1)\r\n}, 1000)\r\n\r\ntest('can create object from view', () => {\r\n const erView: MsgView = views[0]\r\n const erAsObject: ILooseObject = erView.toObject()\r\n expect(erAsObject).toBeTruthy()\r\n}, 1000)\r\n\r\ntest('simple tag decoding', () => {\r\n const erView: MsgView = views[0]\r\n expect(erView.getString(35)).toEqual('8')\r\n expect(erView.getString('MsgType')).toEqual('8')\r\n expect(erView.getString(8)).toEqual('FIX4.4')\r\n expect(erView.getTyped(9)).toEqual(6545)\r\n expect(erView.getTyped('TotNumReports')).toEqual(19404)\r\n expect(erView.getTyped('StrikePrice')).toEqual(52639)\r\n}, 1000)\r\n\r\ntest('simple repeated tag decoding', () => {\r\n const erView: MsgView = views[0]\r\n expect(erView.getStrings('PartyID')).toEqual(['magna.', 'iaculis', 'vitae,'])\r\n}, 1000)\r\n\r\ntest('repeated group decoding of Parties', () => {\r\n const erView: MsgView = views[0]\r\n const partyView: MsgView = erView.getView('Parties')\r\n expect(partyView).toBeTruthy()\r\n const partyViewAsObject: ILooseObject = partyView.toObject()\r\n expect(partyViewAsObject).toBeTruthy()\r\n expect(partyViewAsObject.NoPartyIDs.length).toEqual(3)\r\n expect(partyViewAsObject.NoPartyIDs[0]).toEqual({\r\n PartyID: 'magna.',\r\n PartyIDSource: '9',\r\n PartyRole: 28,\r\n PtysSubGrp: {\r\n NoPartySubIDs: [\r\n {\r\n PartySubID: 'et',\r\n PartySubIDType: 22\r\n },\r\n {\r\n PartySubID: 'leo,',\r\n PartySubIDType: 10\r\n }\r\n ]\r\n }\r\n })\r\n const noParties: MsgView = partyView.getView('NoPartyIDs')\r\n expect(noParties).toBeTruthy()\r\n expect(noParties.groupCount()).toEqual(3)\r\n const np0View: MsgView = noParties.getGroupInstance(0)\r\n expect(np0View).toBeTruthy()\r\n expect(np0View.getString('PartyID')).toEqual('magna.')\r\n expect(np0View.getString('PartyIDSource')).toEqual('9')\r\n const np0ViewPtysSubGrp: MsgView = np0View.getView('PtysSubGrp')\r\n const np0ViewPtysSubGrpAsObject: ILooseObject = np0ViewPtysSubGrp.toObject()\r\n expect(np0ViewPtysSubGrpAsObject).toBeTruthy()\r\n expect(np0ViewPtysSubGrpAsObject).toEqual(partyViewAsObject.NoPartyIDs[0].PtysSubGrp)\r\n}, 1000)\r\n\r\ntest('instrument component decode', () => {\r\n const erView: MsgView = views[0]\r\n // check the instrument component\r\n const instrumentView: MsgView = erView.getView('Instrument')\r\n expect(instrumentView).toBeTruthy()\r\n expect(instrumentView.getString('Symbol')).toEqual('ac,')\r\n const secAltIDGrpAsObject: ILooseObject = instrumentView.getView('SecAltIDGrp').toObject()\r\n expect(secAltIDGrpAsObject).toBeTruthy()\r\n expect(secAltIDGrpAsObject.NoSecurityAltID.length).toEqual(2)\r\n}, 1000)\r\n\r\ntest('UndInstrmtGrp component decode', () => {\r\n const erView: MsgView = views[0]\r\n // check the instrument component\r\n const undInstrmtGrpView: MsgView = erView.getView('UndInstrmtGrp')\r\n expect(undInstrmtGrpView).toBeTruthy()\r\n const undInstrmtGrpViewAsObject: IUndInstrmtGrp = undInstrmtGrpView.toObject()\r\n expect(undInstrmtGrpViewAsObject).toBeTruthy()\r\n expect(undInstrmtGrpViewAsObject.NoUnderlyings.length).toEqual(2)\r\n const underlying0: IUnderlyingInstrument = undInstrmtGrpViewAsObject.NoUnderlyings[0].UnderlyingInstrument\r\n expect(underlying0).toBeTruthy()\r\n expect(underlying0.UnderlyingSymbol).toEqual('massa.')\r\n expect(underlying0.UndSecAltIDGrp).toEqual(\r\n {\r\n NoUnderlyingSecurityAltID: [\r\n {\r\n UnderlyingSecurityAltID: 'ornare',\r\n UnderlyingSecurityAltIDSource: 'magna.'\r\n },\r\n {\r\n UnderlyingSecurityAltID: 'non',\r\n UnderlyingSecurityAltIDSource: 'at'\r\n },\r\n {\r\n UnderlyingSecurityAltID: 'hendrerit',\r\n UnderlyingSecurityAltIDSource: 'Pellentesque'\r\n }]\r\n })\r\n const underlying1: ILooseObject = undInstrmtGrpViewAsObject.NoUnderlyings[1].UnderlyingInstrument\r\n expect(underlying1).toBeTruthy()\r\n expect(underlying1.UnderlyingSymbol).toEqual('erat')\r\n expect(underlying1.UndSecAltIDGrp).toEqual(\r\n {\r\n NoUnderlyingSecurityAltID: [\r\n {\r\n UnderlyingSecurityAltID: 'Quisque',\r\n UnderlyingSecurityAltIDSource: 'tortor'\r\n }\r\n ]\r\n })\r\n}, 1000)\r\n"]}
|
|
1
|
+
{"version":3,"file":"execution-report.test.js","sourceRoot":"","sources":["../../src/test/execution-report.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,sCAA2F;AAG3F,4CAAuE;AACvE,sCAAuC;AAEvC,kCAAuD;AAEvD,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAEvD,IAAI,WAA2B,CAAA;AAC/B,IAAI,OAA4B,CAAA;AAChC,IAAI,KAAgB,CAAA;AACpB,IAAI,SAAoB,CAAA;AAExB,SAAS,CAAC,GAAS,EAAE;IACnB,MAAM,kBAAkB,GAAwB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC,CAAA;IACjG,WAAW,GAAG,MAAM,qBAAc,CAAC,kBAAkB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;IAC7E,MAAM,MAAM,GAAG,IAAI,oBAAW,CAAC,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,mBAAU,CAAC,IAAI,CAAC,CAAA;IACtF,OAAO,GAAG,IAAI,+BAAmB,CAAC,MAAM,CAAC,CAAA;IACzC,KAAK,GAAG,MAAM,oBAAa,CAAC,WAAW,EAAE,kBAAkB,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,oDAAoD,CAAC,EAAE,mBAAU,CAAC,IAAI,CAAC,CAAA;IACpJ,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;KAC/B;AACH,CAAC,CAAA,EAAE,KAAK,CAA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B,CAAC,CAAC,UAAU,EAAE,CAAA;IAC9C,MAAM,CAAC,yBAAyB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IACjE,MAAM,WAAW,GAA0B,yBAAyB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAA;IAC1G,MAAM,CAAC,WAAW,CAAC,CAAC,UAAU,EAAE,CAAA;IAChC,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACtD,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,OAAO,CACxC;QACE,yBAAyB,EAAE;YACzB;gBACE,uBAAuB,EAAE,QAAQ;gBACjC,6BAA6B,EAAE,QAAQ;aACxC;YACD;gBACE,uBAAuB,EAAE,KAAK;gBAC9B,6BAA6B,EAAE,IAAI;aACpC;YACD;gBACE,uBAAuB,EAAE,WAAW;gBACpC,6BAA6B,EAAE,cAAc;aAC9C;SAAC;KACL,CAAC,CAAA;IACJ,MAAM,WAAW,GAAiB,yBAAyB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAA;IACjG,MAAM,CAAC,WAAW,CAAC,CAAC,UAAU,EAAE,CAAA;IAChC,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IACpD,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,OAAO,CACxC;QACE,yBAAyB,EAAE;YACzB;gBACE,uBAAuB,EAAE,SAAS;gBAClC,6BAA6B,EAAE,QAAQ;aACxC;SACF;KACF,CAAC,CAAA;AACN,CAAC,EAAE,IAAI,CAAC,CAAA","sourcesContent":["import * as path from 'path'\r\nimport { SegmentDescription, SegmentType, MsgView, Structure, AsciiChars } from '../buffer'\r\nimport { ILooseObject } from '../collections/collection'\r\nimport { FixDefinitions } from '../dictionary'\r\nimport { ISessionDescription, AsciiMsgTransmitter } from '../transport'\r\nimport { JsFixConfig } from '../config'\r\nimport { IUndInstrmtGrp, IUnderlyingInstrument } from '../types/FIX4.4/quickfix'\r\nimport { replayFixFile, getDefinitions } from '../util'\r\n\r\nconst root: string = path.join(__dirname, '../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet session: AsciiMsgTransmitter\r\nlet views: MsgView[]\r\nlet structure: Structure\r\n\r\nbeforeAll(async () => {\r\n const sessionDescription: ISessionDescription = require(path.join(root, 'session/qf-fix44.json'))\r\n definitions = await getDefinitions(sessionDescription.application.dictionary)\r\n const config = new JsFixConfig(null, definitions, sessionDescription, AsciiChars.Pipe)\r\n session = new AsciiMsgTransmitter(config)\r\n views = await replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/quickfix/execution-report/fix.txt'), AsciiChars.Pipe)\r\n if (views && views.length > 0) {\r\n structure = views[0].structure\r\n }\r\n}, 45000)\r\n\r\ntest('expect a structure from fix msg', () => {\r\n expect(structure).toBeTruthy()\r\n})\r\n\r\n/*\r\n[20] 453 (NoPartyIDs) = 3, [21] 448 (PartyID) = magna.\r\n[22] 447 (PartyIDSource) = 9[AUSTRALIAN_BUSINESS_NUMBER], [23] 452 (PartyRole) = 28[CUSTODIAN]\r\n[24] 802 (NoPartySubIDs) = 2, [25] 523 (PartySubID) = et\r\n[26] 803 (PartySubIDType) = 22[SECURITIES_ACCOUNT_NAME], [27] 523 (PartySubID) = leo,\r\n[28] 803 (PartySubIDType) = 10[SECURITIES_ACCOUNT_NUMBER], [29] 448 (PartyID) = iaculis\r\n[30] 447 (PartyIDSource) = F[SETTLEMENT_ENTITY_LOCATION], [31] 452 (PartyRole) = 2[BROKER_OF_CREDIT]\r\n[32] 802 (NoPartySubIDs) = 3, [33] 523 (PartySubID) = Nullam\r\n[34] 803 (PartySubIDType) = 12[REGISTERED_ADDRESS_12], [35] 523 (PartySubID) = lectus,\r\n[36] 803 (PartySubIDType) = 13[REGULATORY_STATUS], [37] 523 (PartySubID) = eget\r\n[38] 803 (PartySubIDType) = 18[REGISTERED_ADDRESS_18], [39] 448 (PartyID) = vitae,\r\n[40] 447 (PartyIDSource) = 9[AUSTRALIAN_BUSINESS_NUMBER], [41] 452 (PartyRole) = 5[INVESTOR_ID]\r\n[42] 802 (NoPartySubIDs) = 1, [43] 523 (PartySubID) = ac\r\n[44] 803 (PartySubIDType) = 6[POSTAL_ADDRESS], [45] 229 (TradeOriginationDate) = 20180528-16:38:03.972\r\n */\r\n\r\ntest('Parties structure', () => {\r\n const parties: SegmentDescription = structure.layout.Parties\r\n const noPartyIDs: SegmentDescription = structure.layout.NoPartyIDs\r\n expect(parties).toBeTruthy()\r\n expect(parties.startPosition === 20)\r\n expect(parties.endPosition === 44)\r\n expect(parties.depth === 1)\r\n expect(parties.type === SegmentType.Component)\r\n expect(noPartyIDs.startPosition === 20)\r\n expect(noPartyIDs.endPosition === 44)\r\n expect(noPartyIDs.depth === 2)\r\n expect(parties.type === SegmentType.Group)\r\n})\r\n\r\ntest('Parties PartySubIDType sub-structure', () => {\r\n const ptysSubGrp: SegmentDescription[] = structure.layout.PtysSubGrp\r\n expect(ptysSubGrp).toBeTruthy()\r\n expect(Array.isArray(ptysSubGrp)).toEqual(true)\r\n expect(ptysSubGrp.length).toEqual(3)\r\n expect(ptysSubGrp[0].startPosition).toEqual(24)\r\n expect(ptysSubGrp[0].type).toEqual(SegmentType.Component)\r\n expect(ptysSubGrp[1].startPosition).toEqual(32)\r\n expect(ptysSubGrp[1].type).toEqual(SegmentType.Component)\r\n expect(ptysSubGrp[2].startPosition).toEqual(42)\r\n expect(ptysSubGrp[2].type).toEqual(SegmentType.Component)\r\n\r\n const noPartySubIDs: SegmentDescription[] = structure.layout.NoPartySubIDs\r\n expect(noPartySubIDs).toBeTruthy()\r\n expect(Array.isArray(noPartySubIDs)).toEqual(true)\r\n expect(noPartySubIDs.length).toEqual(3)\r\n\r\n expect(noPartySubIDs[0].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[0].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[0].delimiterPositions).toEqual([25, 27])\r\n expect(noPartySubIDs[0].depth).toEqual(4)\r\n\r\n expect(noPartySubIDs[1].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[1].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[1].delimiterPositions).toEqual([33, 35, 37])\r\n expect(noPartySubIDs[1].depth).toEqual(4)\r\n\r\n expect(noPartySubIDs[2].delimiterTag).toEqual(523)\r\n expect(noPartySubIDs[2].type).toEqual(SegmentType.Group)\r\n expect(noPartySubIDs[2].delimiterPositions).toEqual([43])\r\n expect(noPartySubIDs[2].depth).toEqual(4)\r\n})\r\n\r\n/*\r\n[46] 382 (NoContraBrokers) = 3, [47] 375 (ContraBroker) = Quisque\r\n[48] 337 (ContraTrader) = tincidunt, [49] 437 (ContraTradeQty) = 18171\r\n[50] 438 (ContraTradeTime) = 20180528-16:38:03.972, [51] 655 (ContraLegRefID) = Class\r\n[52] 375 (ContraBroker) = taciti, [53] 337 (ContraTrader) = ad\r\n[54] 437 (ContraTradeQty) = 91261, [55] 438 (ContraTradeTime) = 20180528-16:38:03.972\r\n[56] 655 (ContraLegRefID) = torquent, [57] 375 (ContraBroker) = conubia\r\n[58] 337 (ContraTrader) = per, [59] 437 (ContraTradeQty) = 97017\r\n[60] 438 (ContraTradeTime) = 20180528-16:38:03.972, [61] 655 (ContraLegRefID) = himenaeos.\r\n */\r\n\r\ntest('ContraGrp structure', () => {\r\n const contraGrp: SegmentDescription = structure.layout.ContraGrp\r\n expect(contraGrp).toBeTruthy()\r\n expect(contraGrp.depth).toEqual(1)\r\n expect(contraGrp.type).toEqual(SegmentType.Component)\r\n expect(contraGrp.startPosition).toEqual(46)\r\n expect(contraGrp.endPosition).toEqual(61)\r\n\r\n const noContraBrokers: SegmentDescription = structure.layout.NoContraBrokers\r\n expect(noContraBrokers).toBeTruthy()\r\n expect(noContraBrokers.depth).toEqual(2)\r\n expect(noContraBrokers.type).toEqual(SegmentType.Group)\r\n expect(noContraBrokers.delimiterTag).toEqual(375)\r\n expect(noContraBrokers.delimiterPositions).toEqual([47, 52, 57])\r\n\r\n})\r\n\r\n/*\r\n[82] 635 (ClearingFeeIndicator) = 5[5TH_YEAR_DELEGATE_TRADING_FOR_HIS_OWN_ACCOUNT], [83] 55 (Symbol) = ac,\r\n[84] 65 (SymbolSfx) = non, [85] 48 (SecurityID) = Pellentesque\r\n[86] 22 (SecurityIDSource) = B[WERTPAPIER], [87] 454 (NoSecurityAltID) = 2\r\n[88] 455 (SecurityAltID) = lorem, [89] 456 (SecurityAltIDSource) = consequat\r\n[90] 455 (SecurityAltID) = sapien, [91] 456 (SecurityAltIDSource) = tempor\r\n[92] 460 (Product) = 2[COMMODITY], [93] 461 (CFICode) = a\r\n[94] 167 (SecurityType) = SECLOAN[SECURITIES_LOAN], [95] 762 (SecuritySubType) = purus\r\n[96] 200 (MaturityMonthYear) = ut, [97] 541 (MaturityDate) = 20180528-16:38:03.972\r\n[98] 201 (PutOrCall) = 1[CALL], [99] 224 (CouponPaymentDate) = 20180528-16:38:03.972\r\n[100] 225 (IssueDate) = 20180528-16:38:03.972, [101] 239 (RepoCollateralSecurityType) = Proin\r\n[102] 226 (RepurchaseTerm) = 62025, [103] 227 (RepurchaseRate) = 27005\r\n[104] 228 (Factor) = 68810, [105] 255 (CreditRating) = justo\r\n[106] 543 (InstrRegistry) = ut, [107] 470 (CountryOfIssue) = nibh\r\n[108] 471 (StateOrProvinceOfIssue) = at., [109] 472 (LocaleOfIssue) = fermentum\r\n[110] 240 (RedemptionDate) = 20180528-16:38:03.972, [111] 202 (StrikePrice) = 52639\r\n[112] 947 (StrikeCurrency) = 50824, [113] 206 (OptAttribute) = risus,\r\n[114] 231 (ContractMultiplier) = 10378, [115] 223 (CouponRate) = 25946\r\n[116] 207 (SecurityExchange) = placerat, [117] 106 (Issuer) = luctus\r\n[118] 348 (EncodedIssuerLen) = 20, [119] 349 (EncodedIssuer) = zqJsegy0CQ8EyKQ1bmLw\r\n[120] 107 (SecurityDesc) = Vivamus, [121] 350 (EncodedSecurityDescLen) = 20\r\n[122] 351 (EncodedSecurityDesc) = A1xB4jDS31E4zM1xAbk5, [123] 691 (Pool) = mi\r\n[124] 667 (ContractSettlMonth) = arcu, [125] 875 (CPProgram) = 2[4]\r\n[126] 876 (CPRegType) = rhoncus, [127] 864 (NoEvents) = 1\r\n[128] 865 (EventType) = 1[PUT], [129] 866 (EventDate) = 20180528-16:38:03.973\r\n[130] 867 (EventPx) = 16817, [131] 868 (EventText) = amet\r\n[132] 873 (DatedDate) = 20180528-16:38:03.973, [133] 874 (InterestAccrualDate) = 20180528-16:38:03.973\r\n */\r\n\r\ntest('Instrument structure', () => {\r\n const instrument: SegmentDescription = structure.layout.Instrument\r\n expect(instrument).toBeTruthy()\r\n expect(instrument.type).toEqual(SegmentType.Component)\r\n expect(instrument.startPosition).toEqual(83)\r\n expect(instrument.startTag).toEqual(55)\r\n expect(instrument.endPosition).toEqual(133)\r\n expect(instrument.endTag).toEqual(874)\r\n\r\n const noSecurityAltID: SegmentDescription = structure.layout.NoSecurityAltID\r\n expect(noSecurityAltID).toBeTruthy()\r\n expect(noSecurityAltID.type).toEqual(SegmentType.Group)\r\n expect(noSecurityAltID.delimiterTag).toEqual(455)\r\n expect(noSecurityAltID.delimiterPositions).toEqual([88, 90])\r\n})\r\n\r\n/*\r\n[134] 913 (AgreementDesc) = sit, [135] 914 (AgreementID) = eleifend\r\n[136] 915 (AgreementDate) = 20180528-16:38:03.973, [137] 918 (AgreementCurrency) = 78552\r\n[138] 788 (TerminationType) = 2[TERM], [139] 916 (StartDate) = 20180528-16:38:03.973\r\n[140] 917 (EndDate) = 20180528-16:38:03.973, [141] 919 (DeliveryType) = 3[HOLD_IN_CUSTODY]\r\n[142] 898 (MarginRatio) = 13625, [143] 711 (NoUnderlyings) = 2\r\n */\r\n\r\ntest('FinancingDetails structure', () => {\r\n const financingDetails: SegmentDescription = structure.layout.FinancingDetails\r\n expect(financingDetails).toBeTruthy()\r\n expect(financingDetails.depth).toEqual(1)\r\n expect(financingDetails.type).toEqual(SegmentType.Component)\r\n expect(financingDetails.startPosition).toEqual(134)\r\n expect(financingDetails.startTag).toEqual(913)\r\n expect(financingDetails.endPosition).toEqual(142)\r\n expect(financingDetails.endTag).toEqual(898)\r\n})\r\n\r\n/*\r\n[272] 211 (PegOffsetValue) = 38459, [273] 835 (PegMoveType) = 1[FIXED]\r\n[274] 836 (PegOffsetType) = [undefined], [275] 837 (PegLimitType) = 2\r\n[276] 838 (PegRoundDirection) = 2, [277] 840 (PegScope) = 4[NATIONAL_EXCLUDING_LOCAL]\r\n */\r\n\r\ntest('PegInstructions structure', () => {\r\n const pegInstructions: SegmentDescription = structure.layout.PegInstructions\r\n expect(pegInstructions).toBeTruthy()\r\n expect(pegInstructions.depth).toEqual(1)\r\n expect(pegInstructions.type).toEqual(SegmentType.Component)\r\n expect(pegInstructions.startPosition).toEqual(272)\r\n expect(pegInstructions.startTag).toEqual(211)\r\n expect(pegInstructions.endPosition).toEqual(277)\r\n expect(pegInstructions.endTag).toEqual(840)\r\n})\r\n\r\n/*\r\n[278] 388 (DiscretionInst) = 2[RELATED_TO_PRIMARY_PRICE], [279] 389 (DiscretionOffsetValue) = 48430\r\n[280] 841 (DiscretionMoveType) = 1[FIXED], [281] 842 (DiscretionOffsetType) = 3[PRICE_TIER]\r\n[282] 843 (DiscretionLimitType) = 2, [283] 844 (DiscretionRoundDirection) = 2\r\n[284] 846 (DiscretionScope) = 4[NATIONAL_EXCLUDING_LOCAL], [285] 839 (PeggedPrice) = 18644\r\n */\r\n\r\ntest('DiscretionInstructions structure', () => {\r\n const discretionInstructions: SegmentDescription = structure.layout.DiscretionInstructions\r\n expect(discretionInstructions).toBeTruthy()\r\n expect(discretionInstructions.depth).toEqual(1)\r\n expect(discretionInstructions.type).toEqual(SegmentType.Component)\r\n expect(discretionInstructions.startPosition).toEqual(278)\r\n expect(discretionInstructions.startTag).toEqual(388)\r\n expect(discretionInstructions.endPosition).toEqual(284)\r\n expect(discretionInstructions.endTag).toEqual(846)\r\n})\r\n\r\n/*\r\n[324] 12 (Commission) = 3339, [325] 13 (CommType) = 1[PER_UNIT]\r\n[326] 479 (CommCurrency) = 25841, [327] 497 (FundRenewWaiv) = N[NO]\r\n */\r\ntest('CommissionData structure', () => {\r\n const commisionData: SegmentDescription = structure.layout.CommissionData\r\n expect(commisionData).toBeTruthy()\r\n expect(commisionData.depth).toEqual(1)\r\n expect(commisionData.type).toEqual(SegmentType.Component)\r\n expect(commisionData.startPosition).toEqual(324)\r\n expect(commisionData.startTag).toEqual(12)\r\n expect(commisionData.endPosition).toEqual(327)\r\n expect(commisionData.endTag).toEqual(497)\r\n})\r\n\r\n/*\r\n[328] 218 (Spread) = 72687, [329] 220 (BenchmarkCurveCurrency) = 84249\r\n[330] 221 (BenchmarkCurveName) = Pellentesque, [331] 222 (BenchmarkCurvePoint) = luctus\r\n[332] 662 (BenchmarkPrice) = 90721, [333] 663 (BenchmarkPriceType) = 66615\r\n[334] 699 (BenchmarkSecurityID) = et, [335] 761 (BenchmarkSecurityIDSource) = nunc.\r\n */\r\n\r\ntest('SpreadOrBenchmarkCurveData structure', () => {\r\n const spreadBenchData: SegmentDescription = structure.layout.SpreadOrBenchmarkCurveData\r\n expect(spreadBenchData).toBeTruthy()\r\n expect(spreadBenchData.depth).toEqual(1)\r\n expect(spreadBenchData.type).toEqual(SegmentType.Component)\r\n expect(spreadBenchData.startPosition).toEqual(328)\r\n expect(spreadBenchData.startTag).toEqual(218)\r\n expect(spreadBenchData.endPosition).toEqual(335)\r\n expect(spreadBenchData.endTag).toEqual(761)\r\n})\r\n\r\n/*\r\n[336] 235 (YieldType) = INVERSEFLOATER[INVERSE_FLOATER_BOND_YIELD], [337] 236 (Yield) = 34183\r\n[338] 701 (YieldCalcDate) = 20180528-16:38:03.973, [339] 696 (YieldRedemptionDate) = 20180528-16:38:03.973\r\n[340] 697 (YieldRedemptionPrice) = 3652, [341] 698 (YieldRedemptionPriceType) = 10535\r\n */\r\n\r\ntest('YieldData structure', () => {\r\n const yieldData: SegmentDescription = structure.layout.YieldData\r\n expect(yieldData).toBeTruthy()\r\n expect(yieldData.depth).toEqual(1)\r\n expect(yieldData.type).toEqual(SegmentType.Component)\r\n expect(yieldData.startPosition).toEqual(336)\r\n expect(yieldData.startTag).toEqual(235)\r\n expect(yieldData.endPosition).toEqual(341)\r\n expect(yieldData.endTag).toEqual(698)\r\n})\r\n\r\n/*\r\n[384] 851 (LastLiquidityInd) = 3[LIQUIDITY_ROUTED_OUT], [385] 518 (NoContAmts) = 3\r\n[386] 519 (ContAmtType) = 5[DISCOUNT_AMOUNT], [387] 520 (ContAmtValue) = 95673\r\n[388] 521 (ContAmtCurr) = 87528, [389] 519 (ContAmtType) = 14[FUND_BASED_RENEWAL_COMMISSION_AMOUNT_14]\r\n[390] 520 (ContAmtValue) = 56344, [391] 521 (ContAmtCurr) = 46066\r\n[392] 519 (ContAmtType) = 11[FUND_BASED_RENEWAL_COMMISSION], [393] 520 (ContAmtValue) = 94762\r\n[394] 521 (ContAmtCurr) = 6779, [395] 555 (NoLegs) = 3\r\n */\r\n\r\ntest('ContAmtGrp structure', () => {\r\n const contAmtGrp: SegmentDescription = structure.layout.ContAmtGrp\r\n expect(contAmtGrp).toBeTruthy()\r\n expect(contAmtGrp.depth).toEqual(1)\r\n expect(contAmtGrp.type).toEqual(SegmentType.Component)\r\n expect(contAmtGrp.startPosition).toEqual(385)\r\n expect(contAmtGrp.startTag).toEqual(518)\r\n expect(contAmtGrp.endPosition).toEqual(394)\r\n expect(contAmtGrp.endTag).toEqual(521)\r\n\r\n const noContAmts: SegmentDescription = structure.layout.NoContAmts\r\n expect(noContAmts).toBeTruthy()\r\n expect(noContAmts.depth).toEqual(2)\r\n expect(noContAmts.type).toEqual(SegmentType.Group)\r\n expect(noContAmts.startPosition).toEqual(385)\r\n expect(noContAmts.startTag).toEqual(518)\r\n expect(noContAmts.endPosition).toEqual(394)\r\n expect(noContAmts.endTag).toEqual(521)\r\n expect(noContAmts.delimiterTag).toEqual(519)\r\n expect(noContAmts.delimiterPositions).toEqual([386, 389, 392])\r\n})\r\n\r\n/*\r\n[636] 136 (NoMiscFees) = 2, [637] 137 (MiscFeeAmt) = 56059\r\n[638] 138 (MiscFeeCurr) = 92115, [639] 139 (MiscFeeType) = 7[OTHER]\r\n[640] 891 (MiscFeeBasis) = [undefined], [641] 137 (MiscFeeAmt) = 93185\r\n[642] 138 (MiscFeeCurr) = 72195, [643] 139 (MiscFeeType) = 12[AGENT]\r\n[644] 891 (MiscFeeBasis) = [undefined], [645] 10 (CheckSum) = 59\r\n */\r\n\r\ntest('MiscFeesGrp structure', () => {\r\n const miscFees: SegmentDescription = structure.layout.MiscFeesGrp\r\n expect(miscFees).toBeTruthy()\r\n expect(miscFees.depth).toEqual(1)\r\n expect(miscFees.type).toEqual(SegmentType.Component)\r\n expect(miscFees.startPosition).toEqual(636)\r\n expect(miscFees.startTag).toEqual(136)\r\n expect(miscFees.endPosition).toEqual(644)\r\n expect(miscFees.endTag).toEqual(891)\r\n\r\n const noMiscfees: SegmentDescription = structure.layout.NoMiscFees\r\n expect(noMiscfees).toBeTruthy()\r\n expect(noMiscfees.depth).toEqual(2)\r\n expect(noMiscfees.type).toEqual(SegmentType.Group)\r\n expect(noMiscfees.startPosition).toEqual(636)\r\n expect(noMiscfees.startTag).toEqual(136)\r\n expect(noMiscfees.endPosition).toEqual(644)\r\n expect(noMiscfees.endTag).toEqual(891)\r\n expect(noMiscfees.delimiterTag).toEqual(137)\r\n expect(noMiscfees.delimiterPositions).toEqual([637, 641])\r\n})\r\n\r\n/*\r\n[142] 898 (MarginRatio) = 13625, [143] 711 (NoUnderlyings) = 2\r\n[144] 311 (UnderlyingSymbol) = massa., [145] 312 (UnderlyingSymbolSfx) = metus\r\n[146] 309 (UnderlyingSecurityID) = maximus, [147] 305 (UnderlyingSecurityIDSource) = facilisis\r\n[148] 457 (NoUnderlyingSecurityAltID) = 3, [149] 458 (UnderlyingSecurityAltID) = ornare\r\n[150] 459 (UnderlyingSecurityAltIDSource) = magna., [151] 458 (UnderlyingSecurityAltID) = non\r\n[152] 459 (UnderlyingSecurityAltIDSource) = at, [153] 458 (UnderlyingSecurityAltID) = hendrerit\r\n[154] 459 (UnderlyingSecurityAltIDSource) = Pellentesque, [155] 462 (UnderlyingProduct) = 89682\r\n[156] 463 (UnderlyingCFICode) = arcu,, [157] 310 (UnderlyingSecurityType) = eu\r\n[158] 763 (UnderlyingSecuritySubType) = vitae,, [159] 313 (UnderlyingMaturityMonthYear) = ut\r\n[160] 542 (UnderlyingMaturityDate) = 20180528-16:38:03.973, [161] 315 (UnderlyingPutOrCall) = 81619\r\n[162] 241 (UnderlyingCouponPaymentDate) = 20180528-16:38:03.973, [163] 242 (UnderlyingIssueDate) = 20180528-16:38:03.973\r\n[164] 243 (UnderlyingRepoCollateralSecurityType) = Aliquam, [165] 244 (UnderlyingRepurchaseTerm) = 1819\r\n[166] 245 (UnderlyingRepurchaseRate) = 12004, [167] 246 (UnderlyingFactor) = 81916\r\n[168] 256 (UnderlyingCreditRating) = erat, [169] 595 (UnderlyingInstrRegistry) = tellus\r\n[170] 592 (UnderlyingCountryOfIssue) = in, [171] 593 (UnderlyingStateOrProvinceOfIssue) = nisi\r\n[172] 594 (UnderlyingLocaleOfIssue) = Interdum, [173] 247 (UnderlyingRedemptionDate) = 20180528-16:38:03.973\r\n[174] 316 (UnderlyingStrikePrice) = 46328, [175] 941 (UnderlyingStrikeCurrency) = 21536\r\n[176] 317 (UnderlyingOptAttribute) = malesuada, [177] 436 (UnderlyingContractMultiplier) = 83404\r\n[178] 435 (UnderlyingCouponRate) = 1709, [179] 308 (UnderlyingSecurityExchange) = ac\r\n[180] 306 (UnderlyingIssuer) = ipsum, [181] 362 (EncodedUnderlyingIssuerLen) = 20\r\n[182] 363 (EncodedUnderlyingIssuer) = gJ40LPqdkNUGQxMisPLk, [183] 307 (UnderlyingSecurityDesc) = in\r\n[184] 364 (EncodedUnderlyingSecurityDescLen) = 20, [185] 365 (EncodedUnderlyingSecurityDesc) = RUQjbmg6gsPoWBsuwDCh\r\n[186] 877 (UnderlyingCPProgram) = Ut, [187] 878 (UnderlyingCPRegType) = massa\r\n[188] 318 (UnderlyingCurrency) = 47704, [189] 879 (UnderlyingQty) = 31703\r\n[190] 810 (UnderlyingPx) = 60977, [191] 882 (UnderlyingDirtyPrice) = 67361\r\n[192] 883 (UnderlyingEndPrice) = 51785, [193] 884 (UnderlyingStartValue) = 80625\r\n[194] 885 (UnderlyingCurrentValue) = 29888, [195] 886 (UnderlyingEndValue) = 49266\r\n[196] 887 (NoUnderlyingStips) = 3, [197] 888 (UnderlyingStipType) = cursus\r\n[198] 889 (UnderlyingStipValue) = Vivamus, [199] 888 (UnderlyingStipType) = convallis\r\n[200] 889 (UnderlyingStipValue) = nec, [201] 888 (UnderlyingStipType) = urna\r\n[202] 889 (UnderlyingStipValue) = vitae., [203] 311 (UnderlyingSymbol) = erat\r\n[204] 312 (UnderlyingSymbolSfx) = In, [205] 309 (UnderlyingSecurityID) = feugiat\r\n[206] 305 (UnderlyingSecurityIDSource) = ut, [207] 457 (NoUnderlyingSecurityAltID) = 1\r\n[208] 458 (UnderlyingSecurityAltID) = Quisque, [209] 459 (UnderlyingSecurityAltIDSource) = tortor\r\n[210] 462 (UnderlyingProduct) = 36068, [211] 463 (UnderlyingCFICode) = est\r\n[212] 310 (UnderlyingSecurityType) = Lorem, [213] 763 (UnderlyingSecuritySubType) = dolor\r\n[214] 313 (UnderlyingMaturityMonthYear) = amet,, [215] 542 (UnderlyingMaturityDate) = 20180528-16:38:03.973\r\n[216] 315 (UnderlyingPutOrCall) = 94032, [217] 241 (UnderlyingCouponPaymentDate) = 20180528-16:38:03.973\r\n[218] 242 (UnderlyingIssueDate) = 20180528-16:38:03.973, [219] 243 (UnderlyingRepoCollateralSecurityType) = adipiscing\r\n[220] 244 (UnderlyingRepurchaseTerm) = 17712, [221] 245 (UnderlyingRepurchaseRate) = 95092\r\n[222] 246 (UnderlyingFactor) = 82914, [223] 256 (UnderlyingCreditRating) = Nunc\r\n[224] 595 (UnderlyingInstrRegistry) = orci,, [225] 592 (UnderlyingCountryOfIssue) = vel\r\n[226] 593 (UnderlyingStateOrProvinceOfIssue) = sed,, [227] 594 (UnderlyingLocaleOfIssue) = cursus\r\n[228] 247 (UnderlyingRedemptionDate) = 20180528-16:38:03.973, [229] 316 (UnderlyingStrikePrice) = 84513\r\n[230] 941 (UnderlyingStrikeCurrency) = 31556, [231] 317 (UnderlyingOptAttribute) = Aenean\r\n[232] 436 (UnderlyingContractMultiplier) = 8879, [233] 435 (UnderlyingCouponRate) = 68005\r\n[234] 308 (UnderlyingSecurityExchange) = diam, [235] 306 (UnderlyingIssuer) = Aenean\r\n[236] 362 (EncodedUnderlyingIssuerLen) = 20, [237] 363 (EncodedUnderlyingIssuer) = VxRjId4eWuuNiBYgjNpp\r\n[238] 307 (UnderlyingSecurityDesc) = viverra, [239] 364 (EncodedUnderlyingSecurityDescLen) = 20\r\n[240] 365 (EncodedUnderlyingSecurityDesc) = fwlY5CmVswvapjFalVLb, [241] 877 (UnderlyingCPProgram) = non\r\n[242] 878 (UnderlyingCPRegType) = neque., [243] 318 (UnderlyingCurrency) = 53806\r\n[244] 879 (UnderlyingQty) = 26390, [245] 810 (UnderlyingPx) = 32442\r\n[246] 882 (UnderlyingDirtyPrice) = 82617, [247] 883 (UnderlyingEndPrice) = 86326\r\n[248] 884 (UnderlyingStartValue) = 34911, [249] 885 (UnderlyingCurrentValue) = 46867\r\n[250] 886 (UnderlyingEndValue) = 94014, [251] 887 (NoUnderlyingStips) = 3\r\n[252] 888 (UnderlyingStipType) = arcu, [253] 889 (UnderlyingStipValue) = dignissim\r\n[254] 888 (UnderlyingStipType) = auctor, [255] 889 (UnderlyingStipValue) = maximus\r\n[256] 888 (UnderlyingStipType) = quam., [257] 889 (UnderlyingStipValue) = varius\r\n */\r\n\r\ntest('UndInstrmtGrp structure', () => {\r\n const undInstrmtGrp: SegmentDescription = structure.layout.UndInstrmtGrp\r\n expect(undInstrmtGrp).toBeTruthy()\r\n expect(undInstrmtGrp.type).toEqual(SegmentType.Component)\r\n expect(undInstrmtGrp.startPosition).toEqual(143)\r\n expect(undInstrmtGrp.startTag).toEqual(711)\r\n expect(undInstrmtGrp.endPosition).toEqual(257)\r\n expect(undInstrmtGrp.endTag).toEqual(889)\r\n expect(undInstrmtGrp.depth).toEqual(1)\r\n\r\n const noUnderlyings: SegmentDescription = structure.layout.NoUnderlyings\r\n expect(noUnderlyings).toBeTruthy()\r\n expect(noUnderlyings.delimiterTag).toEqual(311)\r\n expect(noUnderlyings.delimiterPositions).toEqual([144, 203])\r\n expect(noUnderlyings.depth).toEqual(2)\r\n expect(noUnderlyings.type).toEqual(SegmentType.Group)\r\n\r\n const underlyingInstrument: SegmentDescription[] = structure.layout.UnderlyingInstrument\r\n expect(underlyingInstrument).toBeTruthy()\r\n expect(underlyingInstrument.length).toEqual(2)\r\n expect(underlyingInstrument).toBeTruthy()\r\n\r\n expect(underlyingInstrument[0].startPosition).toEqual(144)\r\n expect(underlyingInstrument[0].startTag).toEqual(311)\r\n expect(underlyingInstrument[0].endPosition).toEqual(202)\r\n expect(underlyingInstrument[0].endTag).toEqual(889)\r\n expect(underlyingInstrument[0].depth).toEqual(3)\r\n expect(underlyingInstrument[0].type).toEqual(SegmentType.Component)\r\n\r\n expect(underlyingInstrument[1].startPosition).toEqual(203)\r\n expect(underlyingInstrument[1].startTag).toEqual(311)\r\n expect(underlyingInstrument[1].endPosition).toEqual(257)\r\n expect(underlyingInstrument[1].endTag).toEqual(889)\r\n expect(underlyingInstrument[1].depth).toEqual(3)\r\n expect(underlyingInstrument[1].type).toEqual(SegmentType.Component)\r\n\r\n const undSecAltIDGrp: SegmentDescription[] = structure.layout.UndSecAltIDGrp\r\n expect(undSecAltIDGrp.length).toEqual(2)\r\n expect(undSecAltIDGrp[0].startPosition).toEqual(148)\r\n expect(undSecAltIDGrp[0].startTag).toEqual(457)\r\n expect(undSecAltIDGrp[0].endPosition).toEqual(154)\r\n expect(undSecAltIDGrp[0].endTag).toEqual(459)\r\n expect(undSecAltIDGrp[0].depth).toEqual(4)\r\n expect(undSecAltIDGrp[0].type).toEqual(SegmentType.Component)\r\n\r\n expect(undSecAltIDGrp[1].startPosition).toEqual(207)\r\n expect(undSecAltIDGrp[1].startTag).toEqual(457)\r\n expect(undSecAltIDGrp[1].endPosition).toEqual(209)\r\n expect(undSecAltIDGrp[1].endTag).toEqual(459)\r\n expect(undSecAltIDGrp[1].depth).toEqual(4)\r\n expect(undSecAltIDGrp[1].type).toEqual(SegmentType.Component)\r\n\r\n const noUnderlyingSecurityAltID: SegmentDescription[] = structure.layout.NoUnderlyingSecurityAltID\r\n expect(noUnderlyingSecurityAltID.length).toEqual(2)\r\n expect(noUnderlyingSecurityAltID).toBeTruthy()\r\n\r\n expect(noUnderlyingSecurityAltID[0].depth).toEqual(5)\r\n expect(noUnderlyingSecurityAltID[0].delimiterTag).toEqual(458)\r\n expect(noUnderlyingSecurityAltID[0].type).toEqual(SegmentType.Group)\r\n expect(noUnderlyingSecurityAltID[0].startPosition).toEqual(148)\r\n expect(noUnderlyingSecurityAltID[0].endPosition).toEqual(154)\r\n expect(noUnderlyingSecurityAltID[0].delimiterPositions).toEqual([149, 151, 153])\r\n\r\n expect(noUnderlyingSecurityAltID[1].depth).toEqual(5)\r\n expect(noUnderlyingSecurityAltID[1].delimiterTag).toEqual(458)\r\n expect(noUnderlyingSecurityAltID[1].type).toEqual(SegmentType.Group)\r\n expect(noUnderlyingSecurityAltID[1].startPosition).toEqual(207)\r\n expect(noUnderlyingSecurityAltID[1].endPosition).toEqual(209)\r\n expect(noUnderlyingSecurityAltID[1].delimiterPositions).toEqual([208])\r\n\r\n const boundNoUnderlyingSecurityAltID: SegmentDescription = structure.firstContainedWithin(\r\n 'NoUnderlyingSecurityAltID',\r\n underlyingInstrument[1])\r\n expect(boundNoUnderlyingSecurityAltID).toBeTruthy()\r\n})\r\n\r\n/*\r\n[394] 521 (ContAmtCurr) = 6779, [395] 555 (NoLegs) = 3\r\n[396] 600 (LegSymbol) = posuere, [397] 601 (LegSymbolSfx) = nibh.\r\n[398] 602 (LegSecurityID) = ornare,, [399] 603 (LegSecurityIDSource) = semper\r\n[400] 604 (NoLegSecurityAltID) = 3, [401] 605 (LegSecurityAltID) = laoreet,\r\n[402] 606 (LegSecurityAltIDSource) = odio, [403] 605 (LegSecurityAltID) = velit,\r\n[404] 606 (LegSecurityAltIDSource) = sollicitudin, [405] 605 (LegSecurityAltID) = augue\r\n[406] 606 (LegSecurityAltIDSource) = odio., [407] 607 (LegProduct) = 12438\r\n[408] 608 (LegCFICode) = tempor, [409] 609 (LegSecurityType) = nisi,\r\n[410] 764 (LegSecuritySubType) = euismod, [411] 610 (LegMaturityMonthYear) = convallis\r\n[412] 611 (LegMaturityDate) = 20180528-16:38:03.973, [413] 248 (LegCouponPaymentDate) = 20180528-16:38:03.973\r\n[414] 249 (LegIssueDate) = 20180528-16:38:03.973, [415] 250 (LegRepoCollateralSecurityType) = Donec\r\n[416] 251 (LegRepurchaseTerm) = 50636, [417] 252 (LegRepurchaseRate) = 29567\r\n[418] 253 (LegFactor) = 12603, [419] 257 (LegCreditRating) = erat\r\n[420] 599 (LegInstrRegistry) = vel, [421] 596 (LegCountryOfIssue) = nulla\r\n[422] 597 (LegStateOrProvinceOfIssue) = ac., [423] 598 (LegLocaleOfIssue) = vel\r\n[424] 254 (LegRedemptionDate) = 20180528-16:38:03.973, [425] 612 (LegStrikePrice) = 45964\r\n[426] 942 (LegStrikeCurrency) = 52294, [427] 613 (LegOptAttribute) = eros.\r\n[428] 614 (LegContractMultiplier) = 15566, [429] 615 (LegCouponRate) = 29897\r\n[430] 616 (LegSecurityExchange) = urna,, [431] 617 (LegIssuer) = sit\r\n[432] 618 (EncodedLegIssuerLen) = 20, [433] 619 (EncodedLegIssuer) = bsCdR5NlOBXt99NrTSbA\r\n[434] 620 (LegSecurityDesc) = bibendum, [435] 621 (EncodedLegSecurityDescLen) = 20\r\n[436] 622 (EncodedLegSecurityDesc) = 3Mzh9ClDlcxCLLtgAZ0x, [437] 623 (LegRatioQty) = 47570\r\n[438] 624 (LegSide) = amet,, [439] 556 (LegCurrency) = 18817\r\n[440] 740 (LegPool) = non, [441] 739 (LegDatedDate) = 20180528-16:38:03.973\r\n[442] 955 (LegContractSettlMonth) = Nam, [443] 956 (LegInterestAccrualDate) = 20180528-16:38:03.973\r\n[444] 687 (LegQty) = 38413, [445] 690 (LegSwapType) = 4[RISK]\r\n[446] 683 (NoLegStipulations) = 2, [447] 688 (LegStipulationType) = mi,\r\n[448] 689 (LegStipulationValue) = et, [449] 688 (LegStipulationType) = in,\r\n[450] 689 (LegStipulationValue) = sed, [451] 564 (LegPositionEffect) = Nulla\r\n[452] 565 (LegCoveredOrUncovered) = 45098, [453] 539 (NoNestedPartyIDs) = 1\r\n[454] 524 (NestedPartyID) = leo, [455] 525 (NestedPartyIDSource) = odio\r\n[456] 538 (NestedPartyRole) = 59224, [457] 804 (NoNestedPartySubIDs) = 1\r\n[458] 545 (NestedPartySubID) = placerat., [459] 805 (NestedPartySubIDType) = 83297\r\n[460] 654 (LegRefID) = felis, [461] 566 (LegPrice) = 39429\r\n[462] 587 (LegSettlType) = elementum, [463] 588 (LegSettlDate) = 20180528-16:38:03.973\r\n[464] 637 (LegLastPx) = 75387, [465] 600 (LegSymbol) = mollis\r\n[466] 601 (LegSymbolSfx) = euismod, [467] 602 (LegSecurityID) = diam.\r\n[468] 603 (LegSecurityIDSource) = porttitor, [469] 604 (NoLegSecurityAltID) = 3\r\n[470] 605 (LegSecurityAltID) = eget, [471] 606 (LegSecurityAltIDSource) = cursus,\r\n[472] 605 (LegSecurityAltID) = hendrerit, [473] 606 (LegSecurityAltIDSource) = tempus.\r\n[474] 605 (LegSecurityAltID) = et, [475] 606 (LegSecurityAltIDSource) = fames\r\n[476] 607 (LegProduct) = 6990, [477] 608 (LegCFICode) = ante\r\n[478] 609 (LegSecurityType) = primis, [479] 764 (LegSecuritySubType) = faucibus.\r\n[480] 610 (LegMaturityMonthYear) = egestas, [481] 611 (LegMaturityDate) = 20180528-16:38:03.973\r\n[482] 248 (LegCouponPaymentDate) = 20180528-16:38:03.973, [483] 249 (LegIssueDate) = 20180528-16:38:03.973\r\n[484] 250 (LegRepoCollateralSecurityType) = ac, [485] 251 (LegRepurchaseTerm) = 58397\r\n[486] 252 (LegRepurchaseRate) = 22917, [487] 253 (LegFactor) = 96132\r\n[488] 257 (LegCreditRating) = semper., [489] 599 (LegInstrRegistry) = rhoncus\r\n[490] 596 (LegCountryOfIssue) = nulla,, [491] 597 (LegStateOrProvinceOfIssue) = ornare\r\n[492] 598 (LegLocaleOfIssue) = iaculis, [493] 254 (LegRedemptionDate) = 20180528-16:38:03.973\r\n[494] 612 (LegStrikePrice) = 86522, [495] 942 (LegStrikeCurrency) = 3727\r\n[496] 613 (LegOptAttribute) = Aliquam, [497] 614 (LegContractMultiplier) = 18485\r\n[498] 615 (LegCouponRate) = 36169, [499] 616 (LegSecurityExchange) = volutpat.\r\n[500] 617 (LegIssuer) = condimentum, [501] 618 (EncodedLegIssuerLen) = 20\r\n[502] 619 (EncodedLegIssuer) = P813lip75NKBgG1C8re8, [503] 620 (LegSecurityDesc) = sem\r\n[504] 621 (EncodedLegSecurityDescLen) = 20, [505] 622 (EncodedLegSecurityDesc) = 8qbetIHVFcKFS7EY3XOK\r\n[506] 623 (LegRatioQty) = 42919, [507] 624 (LegSide) = porttitor.\r\n[508] 556 (LegCurrency) = 34832, [509] 740 (LegPool) = pellentesque\r\n[510] 739 (LegDatedDate) = 20180528-16:38:03.973, [511] 955 (LegContractSettlMonth) = eget\r\n[512] 956 (LegInterestAccrualDate) = 20180528-16:38:03.973, [513] 687 (LegQty) = 16560\r\n[514] 690 (LegSwapType) = 1[PAR_FOR_PAR], [515] 683 (NoLegStipulations) = 3\r\n[516] 688 (LegStipulationType) = tincidunt, [517] 689 (LegStipulationValue) = ipsum\r\n[518] 688 (LegStipulationType) = sit, [519] 689 (LegStipulationValue) = consectetur\r\n[520] 688 (LegStipulationType) = elit., [521] 689 (LegStipulationValue) = odio\r\n[522] 564 (LegPositionEffect) = blandit, [523] 565 (LegCoveredOrUncovered) = 61021\r\n[524] 539 (NoNestedPartyIDs) = 3, [525] 524 (NestedPartyID) = semper\r\n[526] 525 (NestedPartyIDSource) = bibendum, [527] 538 (NestedPartyRole) = 33332\r\n[528] 804 (NoNestedPartySubIDs) = 1, [529] 545 (NestedPartySubID) = lectus.\r\n[530] 805 (NestedPartySubIDType) = 78292, [531] 524 (NestedPartyID) = vel\r\n[532] 525 (NestedPartyIDSource) = magna., [533] 538 (NestedPartyRole) = 8563\r\n[534] 804 (NoNestedPartySubIDs) = 3, [535] 545 (NestedPartySubID) = et\r\n[536] 805 (NestedPartySubIDType) = 91784, [537] 545 (NestedPartySubID) = leo,\r\n[538] 805 (NestedPartySubIDType) = 69741, [539] 545 (NestedPartySubID) = iaculis\r\n[540] 805 (NestedPartySubIDType) = 88660, [541] 524 (NestedPartyID) = Nullam\r\n[542] 525 (NestedPartyIDSource) = lectus,, [543] 538 (NestedPartyRole) = 92219\r\n[544] 804 (NoNestedPartySubIDs) = 2, [545] 545 (NestedPartySubID) = eget\r\n[546] 805 (NestedPartySubIDType) = 61048, [547] 545 (NestedPartySubID) = vitae,\r\n[548] 805 (NestedPartySubIDType) = 82229, [549] 654 (LegRefID) = ac\r\n[550] 566 (LegPrice) = 87104, [551] 587 (LegSettlType) = Quisque\r\n[552] 588 (LegSettlDate) = 20180528-16:38:03.974, [553] 637 (LegLastPx) = 56182\r\n[554] 600 (LegSymbol) = tincidunt, [555] 601 (LegSymbolSfx) = Class\r\n[556] 602 (LegSecurityID) = taciti, [557] 603 (LegSecurityIDSource) = ad\r\n[558] 604 (NoLegSecurityAltID) = 3, [559] 605 (LegSecurityAltID) = torquent\r\n[560] 606 (LegSecurityAltIDSource) = conubia, [561] 605 (LegSecurityAltID) = per\r\n[562] 606 (LegSecurityAltIDSource) = himenaeos., [563] 605 (LegSecurityAltID) = eu\r\n[564] 606 (LegSecurityAltIDSource) = risus,, [565] 607 (LegProduct) = 36203\r\n[566] 608 (LegCFICode) = tincidunt, [567] 609 (LegSecurityType) = Morbi\r\n[568] 764 (LegSecuritySubType) = mi,, [569] 610 (LegMaturityMonthYear) = vel\r\n[570] 611 (LegMaturityDate) = 20180528-16:38:03.974, [571] 248 (LegCouponPaymentDate) = 20180528-16:38:03.974\r\n[572] 249 (LegIssueDate) = 20180528-16:38:03.974, [573] 250 (LegRepoCollateralSecurityType) = ac,\r\n[574] 251 (LegRepurchaseTerm) = 89976, [575] 252 (LegRepurchaseRate) = 16951\r\n[576] 253 (LegFactor) = 28912, [577] 257 (LegCreditRating) = non\r\n[578] 599 (LegInstrRegistry) = Pellentesque, [579] 596 (LegCountryOfIssue) = lorem\r\n[580] 597 (LegStateOrProvinceOfIssue) = consequat, [581] 598 (LegLocaleOfIssue) = sapien\r\n[582] 254 (LegRedemptionDate) = 20180528-16:38:03.974, [583] 612 (LegStrikePrice) = 97965\r\n[584] 942 (LegStrikeCurrency) = 62977, [585] 613 (LegOptAttribute) = tempor\r\n[586] 614 (LegContractMultiplier) = 4694, [587] 615 (LegCouponRate) = 20263\r\n[588] 616 (LegSecurityExchange) = a, [589] 617 (LegIssuer) = purus\r\n[590] 618 (EncodedLegIssuerLen) = 20, [591] 619 (EncodedLegIssuer) = Z2GKqFkA713xSVG2nqOx\r\n[592] 620 (LegSecurityDesc) = ut, [593] 621 (EncodedLegSecurityDescLen) = 20\r\n[594] 622 (EncodedLegSecurityDesc) = lyQLPxezPpjDNJnvSnCo, [595] 623 (LegRatioQty) = 24444\r\n[596] 624 (LegSide) = Proin, [597] 556 (LegCurrency) = 86893\r\n[598] 740 (LegPool) = justo, [599] 739 (LegDatedDate) = 20180528-16:38:03.974\r\n[600] 955 (LegContractSettlMonth) = ut, [601] 956 (LegInterestAccrualDate) = 20180528-16:38:03.974\r\n[602] 687 (LegQty) = 33589, [603] 690 (LegSwapType) = 4[RISK]\r\n[604] 683 (NoLegStipulations) = 2, [605] 688 (LegStipulationType) = nibh\r\n[606] 689 (LegStipulationValue) = at., [607] 688 (LegStipulationType) = fermentum\r\n[608] 689 (LegStipulationValue) = risus,, [609] 564 (LegPositionEffect) = placerat\r\n[610] 565 (LegCoveredOrUncovered) = 74238, [611] 539 (NoNestedPartyIDs) = 2\r\n[612] 524 (NestedPartyID) = luctus, [613] 525 (NestedPartyIDSource) = Vivamus\r\n[614] 538 (NestedPartyRole) = 41104, [615] 804 (NoNestedPartySubIDs) = 3\r\n[616] 545 (NestedPartySubID) = mi, [617] 805 (NestedPartySubIDType) = 26305\r\n[618] 545 (NestedPartySubID) = arcu, [619] 805 (NestedPartySubIDType) = 97537\r\n[620] 545 (NestedPartySubID) = rhoncus, [621] 805 (NestedPartySubIDType) = 71231\r\n[622] 524 (NestedPartyID) = amet, [623] 525 (NestedPartyIDSource) = sit\r\n[624] 538 (NestedPartyRole) = 66844, [625] 804 (NoNestedPartySubIDs) = 2\r\n[626] 545 (NestedPartySubID) = eleifend, [627] 805 (NestedPartySubIDType) = 8186\r\n[628] 545 (NestedPartySubID) = massa., [629] 805 (NestedPartySubIDType) = 82689\r\n[630] 654 (LegRefID) = metus, [631] 566 (LegPrice) = 6725\r\n[632] 587 (LegSettlType) = maximus, [633] 588 (LegSettlDate) = 20180528-16:38:03.974\r\n[634] 637 (LegLastPx) = 88665, [635] 797 (CopyMsgIndicator) = Y\r\n */\r\n\r\ntest('InstrmtLegExecGrp structure', () => {\r\n const instrmtLegExecGrp: SegmentDescription = structure.layout.InstrmtLegExecGrp\r\n expect(instrmtLegExecGrp).toBeTruthy()\r\n expect(instrmtLegExecGrp.type).toEqual(SegmentType.Component)\r\n expect(instrmtLegExecGrp.startPosition).toEqual(395)\r\n expect(instrmtLegExecGrp.startTag).toEqual(555)\r\n expect(instrmtLegExecGrp.endTag).toEqual(637)\r\n expect(instrmtLegExecGrp.endPosition).toEqual(634)\r\n expect(instrmtLegExecGrp.depth).toEqual(1)\r\n\r\n const noLegs: SegmentDescription = structure.layout.NoLegs\r\n expect(noLegs).toBeTruthy()\r\n expect(noLegs.type).toEqual(SegmentType.Group)\r\n expect(noLegs.startPosition).toEqual(395)\r\n expect(noLegs.startTag).toEqual(555)\r\n expect(noLegs.endTag).toEqual(637)\r\n expect(noLegs.endPosition).toEqual(634)\r\n expect(noLegs.depth).toEqual(2)\r\n expect(noLegs.delimiterTag).toEqual(600)\r\n expect(noLegs.delimiterPositions).toEqual([396, 465, 554])\r\n})\r\n\r\ntest('instrumentLeg structure', () => {\r\n const instrumentLeg: SegmentDescription[] = structure.layout.InstrumentLeg\r\n expect(instrumentLeg).toBeTruthy()\r\n expect(Array.isArray(instrumentLeg)).toEqual(true)\r\n expect(instrumentLeg.length).toEqual(3)\r\n\r\n expect(instrumentLeg[0].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[0].depth).toEqual(3)\r\n expect(instrumentLeg[0].startTag).toEqual(600)\r\n expect(instrumentLeg[0].startPosition).toEqual(396)\r\n expect(instrumentLeg[0].endPosition).toEqual(443)\r\n expect(instrumentLeg[0].endTag).toEqual(956)\r\n\r\n expect(instrumentLeg[1].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[1].depth).toEqual(3)\r\n expect(instrumentLeg[1].startTag).toEqual(600)\r\n expect(instrumentLeg[1].startPosition).toEqual(465)\r\n expect(instrumentLeg[1].endPosition).toEqual(512)\r\n expect(instrumentLeg[1].endTag).toEqual(956)\r\n\r\n expect(instrumentLeg[2].type).toEqual(SegmentType.Component)\r\n expect(instrumentLeg[2].depth).toEqual(3)\r\n expect(instrumentLeg[2].startTag).toEqual(600)\r\n expect(instrumentLeg[2].startPosition).toEqual(554)\r\n expect(instrumentLeg[2].endPosition).toEqual(601)\r\n expect(instrumentLeg[2].endTag).toEqual(956)\r\n})\r\n\r\ntest('LegSecAltIDGrp [0] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 0\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(400)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(406)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(400)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(406)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([401, 403, 405])\r\n})\r\n\r\ntest('LegSecAltIDGrp [1] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 1\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(469)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(475)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(469)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(475)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([470, 472, 474])\r\n})\r\n\r\ntest('LegSecAltIDGrp [2] structure', () => {\r\n const legSecAltIDGrp: SegmentDescription[] = structure.layout.LegSecAltIDGrp\r\n expect(legSecAltIDGrp).toBeTruthy()\r\n expect(Array.isArray(legSecAltIDGrp)).toEqual(true)\r\n expect(legSecAltIDGrp.length).toEqual(3)\r\n const index: number = 2\r\n expect(legSecAltIDGrp[index].type).toEqual(SegmentType.Component)\r\n expect(legSecAltIDGrp[index].depth).toEqual(4)\r\n expect(legSecAltIDGrp[index].startTag).toEqual(604)\r\n expect(legSecAltIDGrp[index].startPosition).toEqual(558)\r\n expect(legSecAltIDGrp[index].endPosition).toEqual(564)\r\n expect(legSecAltIDGrp[index].endTag).toEqual(606)\r\n\r\n const noLegSecurityAltID: SegmentDescription[] = structure.layout.NoLegSecurityAltID\r\n expect(noLegSecurityAltID).toBeTruthy()\r\n expect(Array.isArray(noLegSecurityAltID)).toEqual(true)\r\n expect(noLegSecurityAltID.length).toEqual(3)\r\n\r\n expect(noLegSecurityAltID[index].type).toEqual(SegmentType.Group)\r\n expect(noLegSecurityAltID[index].depth).toEqual(5)\r\n expect(noLegSecurityAltID[index].startTag).toEqual(604)\r\n expect(noLegSecurityAltID[index].startPosition).toEqual(558)\r\n expect(noLegSecurityAltID[index].endPosition).toEqual(564)\r\n expect(noLegSecurityAltID[index].endTag).toEqual(606)\r\n expect(noLegSecurityAltID[index].delimiterTag).toEqual(605)\r\n expect(noLegSecurityAltID[index].delimiterPositions).toEqual([559, 561, 563])\r\n})\r\n\r\ntest('expect one message view from one line fix file', () => {\r\n expect(views).toHaveLength(1)\r\n}, 1000)\r\n\r\ntest('can create object from view', () => {\r\n const erView: MsgView = views[0]\r\n const erAsObject: ILooseObject = erView.toObject()\r\n expect(erAsObject).toBeTruthy()\r\n}, 1000)\r\n\r\ntest('simple tag decoding', () => {\r\n const erView: MsgView = views[0]\r\n expect(erView.getString(35)).toEqual('8')\r\n expect(erView.getString('MsgType')).toEqual('8')\r\n expect(erView.getString(8)).toEqual('FIX4.4')\r\n expect(erView.getTyped(9)).toEqual(6545)\r\n expect(erView.getTyped('TotNumReports')).toEqual(19404)\r\n expect(erView.getTyped('StrikePrice')).toEqual(52639)\r\n}, 1000)\r\n\r\ntest('simple repeated tag decoding', () => {\r\n const erView: MsgView = views[0]\r\n expect(erView.getStrings('PartyID')).toEqual(['magna.', 'iaculis', 'vitae,'])\r\n}, 1000)\r\n\r\ntest('repeated group decoding of Parties', () => {\r\n const erView: MsgView = views[0]\r\n const partyView: MsgView = erView.getView('Parties')\r\n expect(partyView).toBeTruthy()\r\n const partyViewAsObject: ILooseObject = partyView.toObject()\r\n expect(partyViewAsObject).toBeTruthy()\r\n expect(partyViewAsObject.NoPartyIDs.length).toEqual(3)\r\n expect(partyViewAsObject.NoPartyIDs[0]).toEqual({\r\n PartyID: 'magna.',\r\n PartyIDSource: '9',\r\n PartyRole: 28,\r\n PtysSubGrp: {\r\n NoPartySubIDs: [\r\n {\r\n PartySubID: 'et',\r\n PartySubIDType: 22\r\n },\r\n {\r\n PartySubID: 'leo,',\r\n PartySubIDType: 10\r\n }\r\n ]\r\n }\r\n })\r\n const noParties: MsgView = partyView.getView('NoPartyIDs')\r\n expect(noParties).toBeTruthy()\r\n expect(noParties.groupCount()).toEqual(3)\r\n const np0View: MsgView = noParties.getGroupInstance(0)\r\n expect(np0View).toBeTruthy()\r\n expect(np0View.getString('PartyID')).toEqual('magna.')\r\n expect(np0View.getString('PartyIDSource')).toEqual('9')\r\n const np0ViewPtysSubGrp: MsgView = np0View.getView('PtysSubGrp')\r\n const np0ViewPtysSubGrpAsObject: ILooseObject = np0ViewPtysSubGrp.toObject()\r\n expect(np0ViewPtysSubGrpAsObject).toBeTruthy()\r\n expect(np0ViewPtysSubGrpAsObject).toEqual(partyViewAsObject.NoPartyIDs[0].PtysSubGrp)\r\n}, 1000)\r\n\r\ntest('instrument component decode', () => {\r\n const erView: MsgView = views[0]\r\n // check the instrument component\r\n const instrumentView: MsgView = erView.getView('Instrument')\r\n expect(instrumentView).toBeTruthy()\r\n expect(instrumentView.getString('Symbol')).toEqual('ac,')\r\n const secAltIDGrpAsObject: ILooseObject = instrumentView.getView('SecAltIDGrp').toObject()\r\n expect(secAltIDGrpAsObject).toBeTruthy()\r\n expect(secAltIDGrpAsObject.NoSecurityAltID.length).toEqual(2)\r\n}, 1000)\r\n\r\ntest('UndInstrmtGrp component decode', () => {\r\n const erView: MsgView = views[0]\r\n // check the instrument component\r\n const undInstrmtGrpView: MsgView = erView.getView('UndInstrmtGrp')\r\n expect(undInstrmtGrpView).toBeTruthy()\r\n const undInstrmtGrpViewAsObject: IUndInstrmtGrp = undInstrmtGrpView.toObject()\r\n expect(undInstrmtGrpViewAsObject).toBeTruthy()\r\n expect(undInstrmtGrpViewAsObject.NoUnderlyings.length).toEqual(2)\r\n const underlying0: IUnderlyingInstrument = undInstrmtGrpViewAsObject.NoUnderlyings[0].UnderlyingInstrument\r\n expect(underlying0).toBeTruthy()\r\n expect(underlying0.UnderlyingSymbol).toEqual('massa.')\r\n expect(underlying0.UndSecAltIDGrp).toEqual(\r\n {\r\n NoUnderlyingSecurityAltID: [\r\n {\r\n UnderlyingSecurityAltID: 'ornare',\r\n UnderlyingSecurityAltIDSource: 'magna.'\r\n },\r\n {\r\n UnderlyingSecurityAltID: 'non',\r\n UnderlyingSecurityAltIDSource: 'at'\r\n },\r\n {\r\n UnderlyingSecurityAltID: 'hendrerit',\r\n UnderlyingSecurityAltIDSource: 'Pellentesque'\r\n }]\r\n })\r\n const underlying1: ILooseObject = undInstrmtGrpViewAsObject.NoUnderlyings[1].UnderlyingInstrument\r\n expect(underlying1).toBeTruthy()\r\n expect(underlying1.UnderlyingSymbol).toEqual('erat')\r\n expect(underlying1.UndSecAltIDGrp).toEqual(\r\n {\r\n NoUnderlyingSecurityAltID: [\r\n {\r\n UnderlyingSecurityAltID: 'Quisque',\r\n UnderlyingSecurityAltIDSource: 'tortor'\r\n }\r\n ]\r\n })\r\n}, 1000)\r\n"]}
|
|
@@ -19,8 +19,8 @@ let expected;
|
|
|
19
19
|
beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
20
|
const sessionDescription = require(path.join(root, 'session/test-initiator.json'));
|
|
21
21
|
expected = require(path.join(root, 'examples/FIX.4.4/fix.json'));
|
|
22
|
-
definitions = yield
|
|
23
|
-
views = yield
|
|
22
|
+
definitions = yield util_1.getDefinitions(sessionDescription.application.dictionary);
|
|
23
|
+
views = yield util_1.replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/fix.txt'), buffer_1.AsciiChars.Pipe);
|
|
24
24
|
}), 45000);
|
|
25
25
|
test('expect 50 messages in log', () => {
|
|
26
26
|
expect(views.length).toEqual(50);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix-log-replay.test.js","sourceRoot":"","sources":["../../src/test/fix-log-replay.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAE5B,sCAA+C;AAG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A;AAET,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACrC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;AAClC,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,6CAA6C,EAAE,GAAG,EAAE;IACvD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAe,EAAE,MAAe,EAAE,EAAE;QAC/D,MAAM,GAAG,GAAsB,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAC3E,IAAI,GAAG,EAAE;YACP,IAAI,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YAC3B,IAAI,CAAC,MAAM,EAAE;gBACX,MAAM,GAAG,CAAC,CAAA;aACX;iBAAM;gBACL,MAAM,EAAE,CAAA;aACT;YACD,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;SACxB;QACD,OAAO,CAAC,CAAA;IACV,CAAC,EAAE,EAAkB,CAAC,CAAA;IACtB,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;AAClC,CAAC,CAAC,CAAA","sourcesContent":["import * as path from 'path'\r\nimport { FixDefinitions, MessageDefinition } from '../dictionary'\r\nimport { MsgView, AsciiChars } from '../buffer'\r\nimport { ISessionDescription } from '../transport'\r\nimport { ILooseObject } from '../collections/collection'\r\nimport { replayFixFile, getDefinitions } from '../util'\r\n\r\nconst root: string = path.join(__dirname, '../../data')\r\n\r\nlet definitions: FixDefinitions\r\nlet views: MsgView[]\r\nlet expected: ILooseObject\r\n\r\nbeforeAll(async () => {\r\n const sessionDescription: ISessionDescription = require(path.join(root, 'session/test-initiator.json'))\r\n expected = require(path.join(root, 'examples/FIX.4.4/fix.json'))\r\n definitions = await getDefinitions(sessionDescription.application.dictionary)\r\n views = await replayFixFile(definitions, sessionDescription, path.join(root, 'examples/FIX.4.4/fix.txt'), AsciiChars.Pipe)\r\n}, 45000)\r\n\r\ntest('expect 50 messages in log', () => {\r\n expect(views.length).toEqual(50)\r\n})\r\n\r\ntest('expect 50 messages of specific types in log', () => {\r\n const layout = views.reduce((a: ILooseObject, latest: MsgView) => {\r\n const def: MessageDefinition = definitions.message.get(latest.segment.name)\r\n if (def) {\r\n let lookup = a[def.msgType]\r\n if (!lookup) {\r\n lookup = 1\r\n } else {\r\n lookup++\r\n }\r\n a[def.msgType] = lookup\r\n }\r\n return a\r\n }, {} as ILooseObject)\r\n expect(layout).toEqual(expected)\r\n})\r\n"]}
|
|
@@ -16,7 +16,7 @@ const root = path.join(__dirname, '../../data');
|
|
|
16
16
|
let definitions;
|
|
17
17
|
beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
const sessionDescription = require(path.join(root, 'session/test-initiator.json'));
|
|
19
|
-
definitions = yield
|
|
19
|
+
definitions = yield util_1.getDefinitions(sessionDescription.application.dictionary);
|
|
20
20
|
}), 45000);
|
|
21
21
|
test('field check tag 1', () => {
|
|
22
22
|
const simple = definitions.simple.get('1');
|