trf++/test/trfutil
diff -N matrix_t.cpp
--- matrix_t.cpp 7 Jul 2010 16:11:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,55 +0,0 @@
-// matrix_t.cpp
-
-#include "trfutil/matrix.h"
-
-#include <iostream>
-#include <string>
-#include <cassert>
-
-using std::cout;
-using std::cerr;
-using std::endl;
-using std::string;
-
-//**********************************************************************
-
-int main( ) {
-
- string component = "matrix";
- string ok_prefix = component + " (I): ";
- string error_prefix = component + " test (E): ";
-
- cout << ok_prefix
- << "---------- Testing component " + component
- + ". ----------" << endl;
-
- // Make sure assert is enabled.
- bool assert_flag = false;
- assert ( ( assert_flag = true, assert_flag ) );
- if ( ! assert_flag ) {
- cerr << "Assert is disabled" << endl;
- return 1;
- }
-
- //********************************************************************
-
- matrix<int> mtx(2,3);
- mtx(0,0) = 0;
- mtx(0,1) = 1;
- mtx(0,2) = 2;
- mtx(1,0) = 10;
- mtx(1,1) = 11;
- mtx(1,2) = 12;
- cout << trf::trf_format;
- cout << mtx << endl;
-
- //********************************************************************
-
- cout << ok_prefix
- << "------------- All tests passed. -------------" << endl;
- return 0;
-
- //********************************************************************
-
-}
-