basix_doc 0.1
symbol_test.cpp
/******************************************************************************
* MODULE     : symbol_test.cc
* DESCRIPTION: Test symbols
* COPYRIGHT  : (C) 2003  Joris van der Hoeven
*******************************************************************************
* This software falls under the GNU general public license and comes WITHOUT
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
* If you don't have this file, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
******************************************************************************/

#include <basix/string.hpp>
#include <basix/symbol.hpp>
using namespace mmx;

void
test () {
  show_symbol_entries<string,exact_eq_table> ();
  symbol<string> s ("Hallo");
  mmout << "s\t= " << s << "\n";
  show_symbol_entries<string,exact_eq_table> ();
  symbol<string> t ("Hallo");
  mmout << "s\t= " << s << "\n";
  mmout << "t\t= " << t << "\n";
  show_symbol_entries<string,exact_eq_table> ();
  t= symbol<string> ("Hopsakee");
  mmout << "s\t= " << s << "\n";
  mmout << "t\t= " << t << "\n";
  show_symbol_entries<string,exact_eq_table> ();
  t= s;
  mmout << "s\t= " << s << "\n";
  mmout << "t\t= " << t << "\n";
  show_symbol_entries<string,exact_eq_table> ();
}

int
main () {
  show_symbol_entries<string,exact_eq_table> ();
  test ();
  show_symbol_entries<string,exact_eq_table> ();
  return 0;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines