swh:1:snp:e6d42e6731ce66e3c09de07ac49964c03139e990
Raw File
Tip revision: 99932db9e71d31a76425d68eef7d5859523ca0e4 authored by Konrad Werys on 04 November 2019, 09:33:32 UTC
doc: changes in the documentation
Tip revision: 99932db
TomatoParser_test.cpp
/*!
 * \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");

    for (int i = 0; i < truth.size(); i++) {
        EXPECT_EQ(parser._sequences["signalMag"][i], truth[i]);
    }
}

back to top