diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-02 23:36:35 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-02 23:36:35 +0100 |
commit | f853859983b7b3ddf771bbc48c6c312a73516a37 (patch) | |
tree | 3ee2264b385f11f5ab928dc7777c31db7f1bf7f5 | |
parent | 536e00e422d89176b973daf325ee10da86c0170a (diff) |
reformated comments
-rw-r--r-- | test/core/model/DomainTest.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/test/core/model/DomainTest.cpp b/test/core/model/DomainTest.cpp index a69d805..2e7f983 100644 --- a/test/core/model/DomainTest.cpp +++ b/test/core/model/DomainTest.cpp @@ -64,34 +64,26 @@ TEST(Domain, testDomainResolving) assert_path(res, 1, typeOf<StructuredClass>(), {"book", "book"}); ASSERT_EQ(2, res.size()); - /* - * If we explicitly ask for the "book, book" path, then only the - * StructuredClass should be returned. - */ + // If we explicitly ask for the "book, book" path, then only the + // StructuredClass should be returned. res = domain->resolve(std::vector<std::string>{"book", "book"}); assert_path(res, 0, typeOf<StructuredClass>(), {"book", "book"}); ASSERT_EQ(1, res.size()); - /* - * If we ask for "section" the result should be unique as well. - */ + // If we ask for "section" the result should be unique as well. res = domain->resolve(std::vector<std::string>{"section"}); // TODO: Is that the path result we want? assert_path(res, 0, typeOf<StructuredClass>(), {"book", "section"}); ASSERT_EQ(1, res.size()); - /* - * If we ask for the path "book", "book", "" we reference the - * FieldDescriptor of the StructuredClass "book". - */ + // If we ask for the path "book", "book", "" we reference the + // FieldDescriptor of the StructuredClass "book". res = domain->resolve(std::vector<std::string>{"book", "book", ""}); assert_path(res, 0, typeOf<FieldDescriptor>(), {"book", "book", ""}); ASSERT_EQ(1, res.size()); - /* - * If we ask for "paragraph" it is references two times in the Domain graph, - * but should be returned only once. - */ + // If we ask for "paragraph" it is references two times in the Domain graph, + // but should be returned only once. res = domain->resolve("paragraph"); assert_path(res, 0, typeOf<StructuredClass>(), {"book", "paragraph"}); ASSERT_EQ(1, res.size()); |