Skip to content

Commit 8ba696a

Browse files
committed
fixing tests
1 parent a5322d8 commit 8ba696a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/maxplus/base/fsm/fsm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ class FiniteStateMachine : public Abstract::FiniteStateMachine {
626626
findEdge(StateLabelType src, EdgeLabelType lbl, StateLabelType dst) {
627627

628628
// get all labels
629-
SetOfStates<StateLabelType, EdgeLabelType> &allStates = this->getStates();
629+
const SetOfStates<StateLabelType, EdgeLabelType> &allStates = this->getStates();
630630

631631
for (auto iter : allStates) {
632632
auto s = dynamic_cast<State<StateLabelType, EdgeLabelType> &>(*(iter.second));

include/maxplus/game/policyiteration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ template <typename SL, typename EL> class PolicyIteration {
547547
* @return map where each vertex is mapped to the default value
548548
*/
549549
template <typename T>
550-
std::map<const State<SL, EL> *, T> initializeVector(SetOfStates<SL, EL> &states, T value) {
550+
std::map<const State<SL, EL> *, T> initializeVector(const SetOfStates<SL, EL> &states, T value) {
551551
std::map<const State<SL, EL> *, T> vector;
552552

553553
for (auto &it : states) {

src/testbench/base/mcmtest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <base/analysis/mcm/mcmhoward.h>
1010
#include <base/analysis/mcm/mcmyto.h>
1111
#include <random>
12+
#include <array>
1213
#include <type_traits>
1314

1415
using namespace MaxPlus;
@@ -210,7 +211,6 @@ void MCMTest::test_yto() {
210211
eid = cycle.at(0)->id;
211212
ASSERT_THROW(eid == 6);
212213

213-
// TODO: check of the cycle ratio are identical to old SDF3
214214
std::array<CDouble, 250> expectedMinCycleRatios = {
215215
0.526141, 0.124523, 0.0389826, 0.289127, 0.11451, 0.723313, 1.07027,
216216
0.956067, 0.570066, 0.746341, 0.33622, 0.475978, 0.902663, 1.02951,

0 commit comments

Comments
 (0)