// ---------------------------------------------------------------------------
// - t_reactor.cpp                                                           -
// - standard object library - name table class tester                       -
// ---------------------------------------------------------------------------
// - This program is free software;  you can redistribute it  and/or  modify -
// - it provided that this copyright notice is kept intact.                  -
// -                                                                         -
// - This program  is  distributed in  the hope  that it will be useful, but -
// - without  any  warranty;  without  even   the   implied    warranty   of -
// - merchantability or fitness for a particular purpose.  In no event shall -
// - the copyright holder be liable for any  direct, indirect, incidental or -
// - special damages arising in any way out of the use of this software.     -
// ---------------------------------------------------------------------------
// - copyright (c) 1999-2008 amaury darsch                                   -
// ---------------------------------------------------------------------------

#include "Reactor.hpp"

int main (int, char**) {
  using namespace afnix;
  Reactor react;
  
  // check for the nil quark
  if (react.qmap (0).isnil () == false) return -1;

  long hq = react.intern ("hello");
  long wq = react.intern ("world");

  if (hq <= 0) return -1;
  if (wq <= 0) return -1;

  if (react.qmap (hq) != "hello") return -1;
  if (react.qmap (wq) != "world") return -1;

  // that's all folks
  return 0;
}
