src/tests/merger_tests/getRange.cpp
TEST (getRange, twoIDsRange) {
    string testString = "[ 3928 3929 ]";
    vector<uint32_t> expected = {3928, 3929};

    istringstream iss(testString);
    auto result = getRange(iss, IN);
    EXPECT_EQ(result, expected);
}
/*
 * Tests a simple range containing two successive IDs
 */
Tests a simple range containing two successive IDs
Tests a simple range containing two successive IDs
TEST (getRange, twoIDsRange) {
    string testString = "[ 3928 3929 ]";
    vector<uint32_t> expected = {3928, 3929};
    istringstream iss(testString);
    auto result = getRange(iss, IN);
    EXPECT_EQ(result, expected);
}
TEST ( getRange , twoIDsRange ) { string testString = " " ; vector < uint32_t > expected = { 3928 , 3929 } ; istringstream iss ( testString ) ; auto result = getRange ( iss , IN ) ; EXPECT_EQ ( result , expected ) ; }
Tests a simple range containing two successive IDs
Tests a simple range containing two successive IDs