NewMapWin has become Dialog instead of Window. Therefore it is created dynamically, when there is need for it, instead of keeping one instance in memory. This solution is slower, but more correct than before.
2 * test/error_test.cc - Part of LEMON, a generic C++ optimization library
4 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
5 * (Egervary Research Group on Combinatorial Optimization, EGRES).
7 * Permission to use, modify and distribute this software is granted
8 * provided that this copyright notice appears in all copies. For
9 * precise terms see the accompanying LICENSE file.
11 * This software is provided "AS IS" with no warranty of any kind,
12 * express or implied, and with no claim as to its suitability for any
19 #include <lemon/error.h>
20 #include "test_tools.h"
21 using namespace lemon;
26 fault("This is a fault message");
30 throw Exception("This is a fn throwing excpt with some args: ")
34 void unfinished_fn() {
35 FIXME("unfinished_fn() is unfinished!");
42 check(false, "A faulty function did not fail.");
44 catch(const Exception &e) {
45 cout << "Exeption = \"" << e.what() << "\" (Right behaviour)" << endl;
50 check(false, "The function did not throw Exception.");
52 catch(const Exception &e) {
53 cout << "Exeption = \"" << e.what() << "\" (Right behaviour)" << endl;
58 check(false, "FIXME macro does not work.");
60 catch(const Exception &e) {
61 cout << "Exeption = \"" << e.what() << "\" (Right behaviour)" << endl;