summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-08-05 08:52:54 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-08-22 14:25:53 (GMT)
commit02c067dee5b53ca318f3acd245795172a0280f1f (patch)
treeec5d2af388fe5fa026ae2576c7f96fe843b26674 /Tests
parent7037cfc0f48739bd1eb3498827ebf501671302c7 (diff)
downloadCMake-02c067dee5b53ca318f3acd245795172a0280f1f.zip
CMake-02c067dee5b53ca318f3acd245795172a0280f1f.tar.gz
CMake-02c067dee5b53ca318f3acd245795172a0280f1f.tar.bz2
cm::enum_set: fix various bugs
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/testCMExtEnumSet.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testCMExtEnumSet.cxx b/Tests/CMakeLib/testCMExtEnumSet.cxx
index 64c437b..dbb0a54 100644
--- a/Tests/CMakeLib/testCMExtEnumSet.cxx
+++ b/Tests/CMakeLib/testCMExtEnumSet.cxx
@@ -191,6 +191,15 @@ void testEdition()
++failed;
}
}
+ {
+ cm::enum_set<Test> testSet1;
+ cm::enum_set<Test> testSet2{ Test::A, Test::C, Test::B };
+
+ testSet1 = { Test::A, Test::C, Test::B };
+ if (testSet1.size() != 3 || testSet1 != testSet2) {
+ ++failed;
+ }
+ }
}
}