~c-e-pidcott/maus/devel

« back to all changes in this revision

Viewing changes to tests/cpp_unit/Maths/MatrixTest.cc

  • Committer: c.e.pidcott at ac
  • Date: 2012-12-03 13:48:31 UTC
  • mfrom: (674.1.22 itaylor-devel)
  • Revision ID: c.e.pidcott@warwick.ac.uk-20121203134831-zeimkngw2w2led4w
Ian'sĀ developmentĀ branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1266
1266
}
1267
1267
 
1268
1268
TEST_F(MatrixTest, Streaming) {
1269
 
  std::stringstream test;
 
1269
  std::stringstream double_stream;
1270
1270
  Matrix<double> matrix_da(kRows, kColumns, kDoubleData);
1271
1271
  Matrix<double> matrix_db;
1272
 
  test << matrix_da;
1273
 
  test >> matrix_db;
 
1272
  double_stream << matrix_da;
 
1273
  double_stream >> matrix_db;
1274
1274
  EXPECT_TRUE(equal(matrix_da, matrix_db));
1275
1275
 
 
1276
  std::stringstream complex_stream;
1276
1277
  Matrix<complex> matrix_ca(kRows, kColumns, kComplexData);
1277
1278
  Matrix<complex> matrix_cb;
1278
 
  test << matrix_ca;
1279
 
  test >> matrix_cb;
 
1279
  complex_stream << matrix_ca;
 
1280
  complex_stream >> matrix_cb;
1280
1281
  EXPECT_TRUE(equal(matrix_ca, matrix_cb));
1281
1282
}