Skip to content

Commit

Permalink
added catch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karinashin committed Apr 11, 2022
1 parent fa8b81f commit 01a1995
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Word.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Word::Word(string word)
str = word;
}

bool Word::operator<(const Word& w)
{
//TODO organize by str?
}

void Word::sort()
{
//TODO
Expand Down
2 changes: 1 addition & 1 deletion Word.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Document> getDocs();
vector<int> getFrequency();
Expand Down
22 changes: 19 additions & 3 deletions catchTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{

}
Expand All @@ -28,5 +36,13 @@ TEST_CASE("DSAVLTree", "[template T]"){
SECTION("leftRotate")
{

}
SECTION("doubleLeft")
{

}
SECTION("doubleRight")
{

}
}

0 comments on commit 01a1995

Please sign in to comment.