Example #1
0
def test_round_normalizer_no_match():
    path = Path("a")
    selector = ListLastComponentSelector(["b"])
    normalizer = FloatRoundNormalizer(2, selectors=selector)
    result = normalizer.normalize(1.0001, path, normalizers=[normalizer])
    assert result == 1.0001
Example #2
0
def test_round_normalizer_no_selector():
    path = Path("a")
    normalizer = FloatRoundNormalizer(2)
    result = normalizer.normalize(1.0001, path, normalizers=[normalizer])
    assert result == 1.00