|
From: <den...@us...> - 2010-11-10 18:18:42
|
Revision: 153
http://dsim.svn.sourceforge.net/dsim/?rev=153&view=rev
Author: denis_arnaud
Date: 2010-11-10 18:18:36 +0000 (Wed, 10 Nov 2010)
Log Message:
-----------
[Boost Test] Re-activated the Spirit v2 parser tests, as they now work (but they are still limited).
Modified Paths:
--------------
trunk/dsim/test/boost/Makefile.am
trunk/dsim/test/boost/random/SimulateTestSuite.log
trunk/dsim/test/boost/spiritQi/Makefile.am
trunk/dsim/test/boost/spiritQi/schedule_parser.cpp
Modified: trunk/dsim/test/boost/Makefile.am
===================================================================
--- trunk/dsim/test/boost/Makefile.am 2010-11-10 17:57:20 UTC (rev 152)
+++ trunk/dsim/test/boost/Makefile.am 2010-11-10 18:18:36 UTC (rev 153)
@@ -6,6 +6,6 @@
##
SUBDIRS = accumulators asio filesystem intrusive mpi mpl \
- serialization signals spirit smart_pointers
+ serialization signals spirit spiritQi smart_pointers
EXTRA_DIST =
Modified: trunk/dsim/test/boost/random/SimulateTestSuite.log
===================================================================
--- trunk/dsim/test/boost/random/SimulateTestSuite.log 2010-11-10 17:57:20 UTC (rev 152)
+++ trunk/dsim/test/boost/random/SimulateTestSuite.log 2010-11-10 18:18:36 UTC (rev 153)
@@ -19,7 +19,7 @@
Simulation#; Sum of Lambdas; Total nb of events; Random draw (following normal law);
9; 299.178; 303; 276.597;
Statistics for sum of Lambdas (min, max, mean, variance);
-299.178, 299.178, 299.178, 8.5123e-12;
+299.178, 299.178, 299.178, 0;
Statistics for total nb of events (min, max, mean, variance);
286, 336, 301.3, 193.41;
Statistics for random draws (min, max, mean, variance);
Modified: trunk/dsim/test/boost/spiritQi/Makefile.am
===================================================================
--- trunk/dsim/test/boost/spiritQi/Makefile.am 2010-11-10 17:57:20 UTC (rev 152)
+++ trunk/dsim/test/boost/spiritQi/Makefile.am 2010-11-10 18:18:36 UTC (rev 153)
@@ -5,7 +5,7 @@
check_PROGRAMS = employee_parser action_parser complex_parser \
num_list1_parser roman_parser sum_parser \
- schedule_parser stream_iterator_parser levenshtein
+ schedule_parser stream_iterator_parser
employee_parser_SOURCES = employee_parser.cpp
employee_parser_CXXFLAGS = $(BOOST_CFLAGS)
Modified: trunk/dsim/test/boost/spiritQi/schedule_parser.cpp
===================================================================
--- trunk/dsim/test/boost/spiritQi/schedule_parser.cpp 2010-11-10 17:57:20 UTC (rev 152)
+++ trunk/dsim/test/boost/spiritQi/schedule_parser.cpp 2010-11-10 18:18:36 UTC (rev 153)
@@ -52,7 +52,8 @@
store_cabin_code (FLIGHT_PERIOD& ioFlightPeriod)
: _flightPeriod (ioFlightPeriod) {}
- void operator() (char iChar) const {
+ void operator() (char iChar, boost::spirit::qi::unused_type,
+ boost::spirit::qi::unused_type) const {
_flightPeriod._cabinCode = iChar;
// std::cout << "Cabin code: " << lCabinCode << std::endl;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|