diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-23 20:16:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-23 20:16:02 -0500 |
| commit | 85f89ee4bb137100cbeffcbc10168eb8ea52e6cc (patch) | |
| tree | f6e2063319ceaaa02f523fb5c289e4f37411a2df /tests/fix_basic/fix_test.cc | |
| parent | 9a70f32ddaec0eef99efbf7ff5597c2adf08f45a (diff) | |
| parent | 65a8349aa5526d071b18cd4d42586c46faaa3823 (diff) | |
Merge pull request #18 from amlel-el-mahrouss/developv1.0.48
OCL v1.0.48
Diffstat (limited to 'tests/fix_basic/fix_test.cc')
| -rw-r--r-- | tests/fix_basic/fix_test.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/fix_basic/fix_test.cc b/tests/fix_basic/fix_test.cc new file mode 100644 index 0000000..f58973b --- /dev/null +++ b/tests/fix_basic/fix_test.cc @@ -0,0 +1,19 @@ +/* + * File: tests/fix_test.cc + * Purpose: Custom FIX protocol tests. + * Author: Amlal El Mahrouss (amlal@nekernel.org) + * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. + */ + +#include <fix/fix.hpp> +#include <tests/hpptest.hpp> +#include <tests/gtest.hpp> + +TEST(FIXTest, BasicFIXUsage) +{ + 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|"); + + EXPECT_EQ(fix.magic_, ocl::fix::detail::begin_fix()); + EXPECT_TRUE(fix.is_valid()); +} |
