diff --git a/test/src/GraphTest.cpp b/test/src/GraphTest.cpp index 2e1d6cb..0a00a66 100644 --- a/test/src/GraphTest.cpp +++ b/test/src/GraphTest.cpp @@ -27,19 +27,19 @@ TEST(InduceGraphTest, InduceGraphTest) { Graph gPrime(g); std::vector mpt; gPrime.InitGPrime(g, mpt); - std::vector newRowOff = gPrime.GetNewRowOffRef(); - std::vector newCols = gPrime.GetNewColRef(); - std::vector newVals = gPrime.GetNewValRef(); + std::vector newRowOff = gPrime.GetCSR().GetNewRowOffRef(); + std::vector newCols = gPrime.GetCSR().GetNewColRef(); + std::vector newVals = gPrime.GetCSR().GetNewValRef(); static const int rowOff[] = {0,1,4,5,7,7,10,14,14,15,16}; static const int colInd[] = {1,0,5,6,6,5,6,1,3,8,1,2,3,9,5,6}; static const int vals[] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; - vector testRowOff (rowOff, rowOff + sizeof(rowOff) / sizeof(rowOff[0]) ); - vector testCols (colInd, colInd + sizeof(colInd) / sizeof(colInd[0]) ); - vector testVals (colInd, colInd + sizeof(colInd) / sizeof(colInd[0]) ); + std::vector testRowOff(rowOff, rowOff + sizeof(rowOff) / sizeof(rowOff[0]) ); + std::vector testCols(colInd, colInd + sizeof(colInd) / sizeof(colInd[0]) ); + std::vector testVals(vals, vals + sizeof(vals) / sizeof(vals[0]) ); EXPECT_EQ(newRowOff, testRowOff); - EXPECT_EQ(colInd, testCols); - EXPECT_EQ(vals, testVals); + EXPECT_EQ(newCols, testCols); + EXPECT_EQ(newVals, testVals); }