Skip to content
Snippets Groups Projects
Commit 53d10724 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix char -> string in some calls to getState()

parent 9d5e5d8f
No related branches found
No related tags found
1 merge request!385Resolve "State key char instead of string"
Pipeline #5732 passed
This commit is part of merge request !385. Comments created here will be created in the context of that merge request.
......@@ -120,13 +120,13 @@ TEST_F(ProcessorMotion_test, getState_structure)
WOLF_DEBUG("t: ", t, " x: ", problem->getState().vector("PO").transpose());
}
ASSERT_TRUE (processor->getState('P').count('P'));
ASSERT_FALSE(processor->getState('P').count('O'));
ASSERT_FALSE(processor->getState('O').count('P'));
ASSERT_TRUE (processor->getState('O').count('O'));
ASSERT_TRUE (processor->getState("P").count('P'));
ASSERT_FALSE(processor->getState("P").count('O'));
ASSERT_FALSE(processor->getState("O").count('P'));
ASSERT_TRUE (processor->getState("O").count('O'));
WOLF_DEBUG("processor->getState(\"V\") = ", processor->getState('V'));
ASSERT_EQ (processor->getState('V').size(), 0);
ASSERT_EQ (processor->getState("V").size(), 0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment