diff --git a/Word.cpp b/Word.cpp index fcd0c6e..a716dd4 100644 --- a/Word.cpp +++ b/Word.cpp @@ -9,6 +9,11 @@ Word::Word(string word) str = word; } +bool Word::operator<(const Word& w) +{ + //TODO organize by str? +} + void Word::sort() { //TODO diff --git a/Word.h b/Word.h index 82a0ebb..bed49e1 100644 --- a/Word.h +++ b/Word.h @@ -20,7 +20,7 @@ class Word { public: Word(string word); void sort();//sorts documents by index (doc with largest freq. goes first) - + bool operator<(const Word& w); string getStr(); vector getDocs(); vector getFrequency(); diff --git a/catchTests.cpp b/catchTests.cpp index de6f441..3ea1054 100644 --- a/catchTests.cpp +++ b/catchTests.cpp @@ -5,15 +5,23 @@ #include "DSAVLTree.h" TEST_CASE("DSAVLTree", "[template T]"){ - SECTION("getHeight") + SECTION("operator = ") { } - SECTION("contains") + SECTION("deleteTree") + { + + } + SECTION("copy")//probably wrong + { + + } + SECTION("insert") { } - SECTION("clear") + SECTION("contains") { } @@ -28,5 +36,13 @@ TEST_CASE("DSAVLTree", "[template T]"){ SECTION("leftRotate") { + } + SECTION("doubleLeft") + { + + } + SECTION("doubleRight") + { + } }