Lines Matching +full:version +full:- +full:major
26 MinimumShipLevel::Version min; in TEST_F()
27 MinimumShipLevel::Version actual; in TEST_F()
33 EXPECT_EQ(0, minimumShipLevel->compare(actual, min)); in TEST_F()
37 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F()
39 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F()
41 EXPECT_EQ(-1, minimumShipLevel->compare(actual, min)); in TEST_F()
45 EXPECT_EQ(1, minimumShipLevel->compare(actual, min)); in TEST_F()
47 EXPECT_EQ(1, minimumShipLevel->compare(actual, min)); in TEST_F()
49 EXPECT_EQ(1, minimumShipLevel->compare(actual, min)); in TEST_F()
54 MinimumShipLevel::Version version; in TEST_F() local
57 versionStr = "nomatch-1.2.3-abc"; in TEST_F()
58 minimumShipLevel->parse(versionStr, version); in TEST_F()
59 EXPECT_EQ(0, version.major); in TEST_F()
60 EXPECT_EQ(0, version.minor); in TEST_F()
61 EXPECT_EQ(0, version.rev); in TEST_F()
63 versionStr = "xyzformat-v1.2.3-4.5abc"; in TEST_F()
64 minimumShipLevel->parse(versionStr, version); in TEST_F()
65 EXPECT_EQ(1, version.major); in TEST_F()
66 EXPECT_EQ(2, version.minor); in TEST_F()
67 EXPECT_EQ(3, version.rev); in TEST_F()
69 versionStr = "xyformat-system-v6.7-abc"; in TEST_F()
70 minimumShipLevel->parse(versionStr, version); in TEST_F()
71 EXPECT_EQ(6, version.major); in TEST_F()
72 EXPECT_EQ(7, version.minor); in TEST_F()
73 EXPECT_EQ(0, version.rev); in TEST_F()
75 versionStr = "Vendor-Model-v-4.1.01"; in TEST_F()
76 minimumShipLevel->parse(versionStr, version); in TEST_F()
77 EXPECT_EQ(4, version.major); in TEST_F()
78 EXPECT_EQ(1, version.minor); in TEST_F()
79 EXPECT_EQ(1, version.rev); in TEST_F()
81 versionStr = "Vendor-Model-v-4.1-abc"; in TEST_F()
82 minimumShipLevel->parse(versionStr, version); in TEST_F()
83 EXPECT_EQ(4, version.major); in TEST_F()
84 EXPECT_EQ(1, version.minor); in TEST_F()
85 EXPECT_EQ(0, version.rev); in TEST_F()