File: ChangeListID_gtest.cpp

package info (click to toggle)
pbseqlib 5.3.5%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,020 kB
  • sloc: cpp: 77,250; python: 331; sh: 103; makefile: 41
file content (35 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (4)
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
33
34
35
/*
 * =====================================================================================
 *
 *       Filename:  ChangeListID_gtest.cpp
 *
 *    Description:  Test pbdata/ChangeListID.hpp
 *
 *        Version:  1.0
 *        Created:  02/26/2015 06:01:01 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Yuan Li (yli), yli@pacificbiosciences.com
 *        Company:  Pacific Biosciences
 *
 * =====================================================================================
 */

#include <string>

#include <gtest/gtest.h>

#include <pbdata/ChangeListID.hpp>

// Test ChangeListID.GetVersion().
TEST(ChangeListID, GetVersion)
{
    std::string str = "2.3.0.143354";
    ChangeListID change = ChangeListID(str);
    EXPECT_EQ(change.GetVersion(), "2.3");

    str = "";
    change = ChangeListID(str);
    EXPECT_EQ(change.GetVersion(), "");
}