blob: f58973b1a9874ff10ef335bc8ed3ecaf14b26c7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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());
}
|