Asserts on unknown TurnInstruction

This commit is contained in:
Daniel J. Hofmann 2016-03-01 14:05:37 +01:00 committed by Patrick Niklaus
parent 6bc3f5d6da
commit ae8dde6afe

View File

@ -90,6 +90,10 @@ std::string instructionToString(extractor::TurnInstruction instruction)
case extractor::TurnInstruction::AccessRestrictionPenalty:
BOOST_ASSERT_MSG(false, "Invalid turn type used");
break;
default:
BOOST_ASSERT_MSG(false, "unknown TurnInstruction");
break;
}
return token;