Diff of /trunk/core/vnl/io/tests/test_sparse_matrix_io.cxx [r36635] .. [r36636]  Maximize  Restore

  Switch to side-by-side view

--- a/trunk/core/vnl/io/tests/test_sparse_matrix_io.cxx
+++ b/trunk/core/vnl/io/tests/test_sparse_matrix_io.cxx
@@ -30,6 +30,7 @@
   //// test constructors, accessors
 
   vnl_sparse_matrix<double>  m_out(3,3), m_in0(3,3), m_in1(3,3);
+  vnl_sparse_matrix<double>  m10000_out(10000,10000), m10000_in(10000,10000);
   vcl_vector<int> col_1(3);
   vcl_vector<int> col_2(2);
   vcl_vector<int> col_3(1);
@@ -60,12 +61,15 @@
   TEST ("vnl_sparse_matrix_io.bvl.tmp for writing", (!bfs_out), false);
   vsl_b_write(bfs_out, m_out);
   vsl_b_write(bfs_out, m_out);
+  vsl_b_write(bfs_out, m10000_out);
   bfs_out.close();
 
   vsl_b_ifstream bfs_in("vnl_sparse_matrix_io.bvl.tmp");
   TEST ("vnl_sparse_matrix_io.bvl.tmp for reading", (!bfs_in), false);
   vsl_b_read(bfs_in, m_in0);
   vsl_b_read(bfs_in, m_in1);
+  vsl_b_read(bfs_in, m10000_in);
+
   bfs_in.close();
 
   vpl_unlink ("vnl_sparse_matrix_io.bvl.tmp");
@@ -89,6 +93,7 @@
 
   TEST ("m_out == m_in0",Compare(m_out,m_in0) , true);
   TEST ("m_out == m_in1",Compare(m_out,m_in1) , true);
+  TEST ("m10000_out == m10000_in",Compare(m10000_out,m10000_in) , true);
 
   vsl_print_summary(vcl_cout, m_out);
   vcl_cout << vcl_endl;