def test_calculate_hit_probabilities_for_one_shot_of_vanilla_BS13_unit_targeting_vanilla_unit_with_combi_with_ARM1(
            self):  # noqa
        encounter = Encounter({
            "shooter":
            UnitBuilder().vanilla().ballistics(13).combi_rifle_b1().build(),
            "target":
            UnitBuilder().vanilla().build(),
            "distance":
            1
        })

        result = encounter.compute_with_saves()

        assert result["shooter_hits"] == 0.6615384615384615
        assert result["shooter_misses"] == 0.3384615384615385
    def test_calculate_hit_probabilities_BS13_unit_targeting_with_combi(
            self):  # noqa
        encounter = Encounter({
            "shooter":
            UnitBuilder().vanilla().ballistics(13).combi_rifle().build(),
            "target":
            UnitBuilder().vanilla().build(),
            "distance":
            1
        })

        result = encounter.compute_with_saves()

        assert result["shooter_hits"] == 0.48
        assert result["shooter_misses"] == 0.52