1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*!
 * \file TomatoParser_test.cpp
 * \author Konrad Werys
 * \date 2018/08/19
 */

#include "gtest/gtest.h"

#include "TomatoParser.h"

TEST(TomatoParser, parse_yaml_file) {

    typedef double TYPE;
    char filePath [] = "testData/blood.yaml";

    Ox::TomatoParser<TYPE> parser;
    parser._filePath = filePath;
    parser._sequences["signalMag"]; // needed to 'add' sigMag
    parser.parse();
    //parser.disp();

    std::vector<std::string> truth;
    truth.push_back("55");
    truth.push_back("49");
    truth.push_back("29");
    truth.push_back("22");
    truth.push_back("51");
    truth.push_back("61");
    truth.push_back("64");

    EXPECT_EQ(parser._sequences["signalMag"], truth);
}