trf++/test/trfutil
diff -N nvector_t.cpp
--- nvector_t.cpp 7 Jul 2010 16:11:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,54 +0,0 @@
-// nvector_t.cpp
-
-#include "trfutil/nvector.h"
-
-#include <iostream>
-#include <string>
-#include <cassert>
-
-using std::cout;
-using std::cerr;
-using std::endl;
-using std::string;
-
-//**********************************************************************
-
-int main( ) {
-
- string component = "nvector";
- 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;
- }
-
- //********************************************************************
-
- nvector<int> vec(5);
- vec(0) = 1;
- vec(1) = 2;
- vec(2) = 3;
- vec(3) = 4;
- vec(4) = 5;
- cout << trf::trf_format;
- cout << vec << endl;
-
- //********************************************************************
-
- cout << ok_prefix
- << "------------- All tests passed. -------------" << endl;
- return 0;
-
- //********************************************************************
-
-}
-