Skip to content
Snippets Groups Projects
Commit 0dc421db authored by jsclose's avatar jsclose
Browse files

working test

parent b9acd359
No related branches found
No related tags found
No related merge requests found
...@@ -26,10 +26,10 @@ int main ( ) ...@@ -26,10 +26,10 @@ int main ( )
void testSimple ( ) void testSimple ( )
{ {
ProducerConsumerQueue < string > * urlFrontierTest; ProducerConsumerQueue < string > urlFrontierTest;
Document document ( "<title>This Cat Title Cat</title>" ); Document document ( "<title>This Cat Title Cat</title>" );
Parser parser ( urlFrontierTest ); Parser parser ( &urlFrontierTest );
auto dictionary = parser.execute ( &document ); auto dictionary = parser.execute ( &document );
assert ( dictionary != nullptr ); assert ( dictionary != nullptr );
...@@ -46,7 +46,7 @@ void testSimple ( ) ...@@ -46,7 +46,7 @@ void testSimple ( )
void testComplex ( ) void testComplex ( )
{ {
ProducerConsumerQueue < string > * urlFrontierTest; ProducerConsumerQueue < string > urlFrontierTest;
ifstream file("../tests/cats.html"); ifstream file("../tests/cats.html");
string temp; string temp;
string docString = "<title>Joe the Cat</title>\n"; string docString = "<title>Joe the Cat</title>\n";
...@@ -57,7 +57,7 @@ void testComplex ( ) ...@@ -57,7 +57,7 @@ void testComplex ( )
Document document ( docString ); Document document ( docString );
Parser parser ( urlFrontierTest ); Parser parser ( &urlFrontierTest );
auto dictionary = parser.execute ( &document ); auto dictionary = parser.execute ( &document );
// cout << dictionary->size () << endl; // cout << dictionary->size () << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment