$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r66083 - trunk/libs/numeric/ublas/test
From: david.bellot_at_[hidden]
Date: 2010-10-18 16:13:27
Author: david.bellot
Date: 2010-10-18 16:13:26 EDT (Mon, 18 Oct 2010)
New Revision: 66083
URL: http://svn.boost.org/trac/boost/changeset/66083
Log:
updated test in ublas for 1.45 release
Text files modified: 
   trunk/libs/numeric/ublas/test/comp_mat_erase.cpp |     2 +-                                      
   trunk/libs/numeric/ublas/test/test11.cpp         |     7 +++++++                                 
   2 files changed, 8 insertions(+), 1 deletions(-)
Modified: trunk/libs/numeric/ublas/test/comp_mat_erase.cpp
==============================================================================
--- trunk/libs/numeric/ublas/test/comp_mat_erase.cpp	(original)
+++ trunk/libs/numeric/ublas/test/comp_mat_erase.cpp	2010-10-18 16:13:26 EDT (Mon, 18 Oct 2010)
@@ -8,7 +8,7 @@
 {
     boost::numeric::ublas::compressed_matrix<int, boost::numeric::ublas::row_major > A(2, 2);
 
-    BOOST_CHECK_EQUAL( A.filled1(), 1 );
+    BOOST_CHECK_EQUAL( A.filled1(), (int) 1 );
     BOOST_CHECK_EQUAL( A.index1_data()[0], 0 );
 
     A(0,0) = 1;
Modified: trunk/libs/numeric/ublas/test/test11.cpp
==============================================================================
--- trunk/libs/numeric/ublas/test/test11.cpp	(original)
+++ trunk/libs/numeric/ublas/test/test11.cpp	2010-10-18 16:13:26 EDT (Mon, 18 Oct 2010)
@@ -92,6 +92,10 @@
         v2 = v1 * value_type (1.);
         std::cout << "v1 * 1. = " << v2 << std::endl;
         v2 = v1 * t;
+	  std::cout << "v1 * value_type(N) = " << v2 << std::endl;
+	  // test interop with integer
+	  v2 = v1 * N;
+
         std::cout << "v1 * N = " << v2 << std::endl;
 
         // Some assignments
@@ -108,6 +112,9 @@
         v1 *= value_type (1.);
         std::cout << "v1 *= 1. = " << v1 << std::endl;
         v1 *= t;
+	  std::cout << "v1 *= value_type(N) = " << v1 << std::endl;
+	  // test interop with integer
+	  v1 *= N;
         std::cout << "v1 *= N = " << v1 << std::endl;
 
         // Unary vector operations resulting in a scalar