Commit 5f5dd8f7 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] add cppcheck suppression rule for an intentional self-equivalence test

okayed on jabber.
parent 8fd8ed2a
...@@ -180,6 +180,7 @@ TEST_F(LabelSequenceTest, equals_insensitive) { ...@@ -180,6 +180,7 @@ TEST_F(LabelSequenceTest, equals_insensitive) {
// operator==(). This is mostly trivial wrapper, so it should suffice to // operator==(). This is mostly trivial wrapper, so it should suffice to
// check some basic cases. // check some basic cases.
TEST_F(LabelSequenceTest, operatorEqual) { TEST_F(LabelSequenceTest, operatorEqual) {
// cppcheck-suppress duplicateExpression
EXPECT_TRUE(ls1 == ls1); // self equivalence EXPECT_TRUE(ls1 == ls1); // self equivalence
EXPECT_TRUE(ls1 == LabelSequence(n1)); // equivalent two different objects EXPECT_TRUE(ls1 == LabelSequence(n1)); // equivalent two different objects
EXPECT_FALSE(ls1 == ls2); // non equivalent objects EXPECT_FALSE(ls1 == ls2); // non equivalent objects
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment