diff --git a/applications/test/HashSet/Test-hashSet.C b/applications/test/HashSet/Test-hashSet.C index bc219e9b96..dcfa0aec7a 100644 --- a/applications/test/HashSet/Test-hashSet.C +++ b/applications/test/HashSet/Test-hashSet.C @@ -42,7 +42,7 @@ int main(int argc, char *argv[]) "def", "ghi" }; - words = { "def", "ghi", "xy", "all", "begin", "all" }; + words = { "def", "ghi", "xy", "all", "end", "all" }; wordHashSet setA { @@ -84,6 +84,26 @@ int main(int argc, char *argv[]) Info<< "hashedWordList: " << words << nl << "with lookup: " << words.lookup() << endl; + { + List input = { "def", "ghi", "xy", "all", "end", "all", "def" }; + hashedWordList words1(input, true); + + Info<< "input word list: " << input << nl + << "without dup: " << words1 << endl; + + Info<< "from wordHashSet: " << hashedWordList(setA) << endl; + Info<< "from HashTable: " << hashedWordList(tableA) << endl; + Info<< "from HashTable: " << hashedWordList(tableB) << endl; + + // even this works + Info<< "from hashSet: " + << hashedWordList + ( + wordHashSet(setA) + | wordHashSet(tableA) | wordHashSet(tableB) + ) << endl; + } + Info<< "wordHashSet: " << setA << endl; Info<< "Table-HashSet: " << tableA << endl; Info<< "Map