Skip to content

Commit

Permalink
Fixing a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Terae committed Jun 19, 2019
1 parent 220998f commit cd74027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit-interfacers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ TEST_CASE("Interfacers", "[integration]") {

SECTION("Adversary in back") {
avoidance2.add_fake_adversary_position({0.8_m, 0.8_m});
CHECK(avoidance2.adversary_detected(50_cm, PhysicalRobot::SensAdvance::Backward));
// Lidars cannot see behind them so all backward positive output are dropped
CHECK_FALSE(avoidance2.adversary_detected(50_cm, PhysicalRobot::SensAdvance::Backward));
CHECK_FALSE(avoidance2.adversary_detected(50_cm, PhysicalRobot::SensAdvance::Forward));
}

Expand Down

0 comments on commit cd74027

Please sign in to comment.