From 0dc421dbf47b78e201afce5a2a25affce6777943 Mon Sep 17 00:00:00 2001 From: jsclose <jsclose@umich.edu> Date: Mon, 5 Mar 2018 11:23:04 -0500 Subject: [PATCH] working test --- parser/tests/parserTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/tests/parserTest.cpp b/parser/tests/parserTest.cpp index 50c7469..07d973e 100644 --- a/parser/tests/parserTest.cpp +++ b/parser/tests/parserTest.cpp @@ -26,10 +26,10 @@ int main ( ) void testSimple ( ) { - ProducerConsumerQueue < string > * urlFrontierTest; + ProducerConsumerQueue < string > urlFrontierTest; Document document ( "<title>This Cat Title Cat</title>" ); - Parser parser ( urlFrontierTest ); + Parser parser ( &urlFrontierTest ); auto dictionary = parser.execute ( &document ); assert ( dictionary != nullptr ); @@ -46,7 +46,7 @@ void testSimple ( ) void testComplex ( ) { - ProducerConsumerQueue < string > * urlFrontierTest; + ProducerConsumerQueue < string > urlFrontierTest; ifstream file("../tests/cats.html"); string temp; string docString = "<title>Joe the Cat</title>\n"; @@ -57,7 +57,7 @@ void testComplex ( ) Document document ( docString ); - Parser parser ( urlFrontierTest ); + Parser parser ( &urlFrontierTest ); auto dictionary = parser.execute ( &document ); // cout << dictionary->size () << endl; -- GitLab