diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 04:21:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-24 04:21:56 -0500 |
| commit | 0ea8adbf99d0524af96c31c6fa283d9adf483736 (patch) | |
| tree | 24944801b5106cf8469ca9b74af132f4d15c1d99 /tests | |
| parent | 85f89ee4bb137100cbeffcbc10168eb8ea52e6cc (diff) | |
| parent | 33f01fc324cbdbed29bd891a994a31221b349417 (diff) | |
Merge pull request #19 from amlel-el-mahrouss/develop
hotpatch: fix messaging parser uses invalid soh.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/fix_basic/fix_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fix_basic/fix_test.cc b/tests/fix_basic/fix_test.cc index f58973b..f7064b5 100644 --- a/tests/fix_basic/fix_test.cc +++ b/tests/fix_basic/fix_test.cc @@ -11,8 +11,10 @@ TEST(FIXTest, BasicFIXUsage) { + constexpr auto default_fix = "8=FIX.4.2\x01 9=65\x01 35=A\x01 49=SERVER\x01 56=CLIENT\x01 34=177\x01 52=20090107-18:15:16\x01 98=0\x01 108=30\x01 10=062\x01"; + ocl::fix::basic_visitor<char> basic_visitor; - ocl::fix::basic_range_data<char> fix = basic_visitor.visit("8=FIX.4.2|9=65|35=A|49=SERVER|56=CLIENT|34=177|52=20090107-18:15:16|98=0|108=30|10=062|"); + ocl::fix::basic_range_data<char> fix = basic_visitor.visit(default_fix); EXPECT_EQ(fix.magic_, ocl::fix::detail::begin_fix()); EXPECT_TRUE(fix.is_valid()); |
