diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 10:20:38 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 10:20:51 +0100 |
| commit | 33f01fc324cbdbed29bd891a994a31221b349417 (patch) | |
| tree | 24944801b5106cf8469ca9b74af132f4d15c1d99 /tests | |
| parent | 65a8349aa5526d071b18cd4d42586c46faaa3823 (diff) | |
hotpatch: fix messaging parser uses invalid soh.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
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()); |
