[Olena-patches] milena r3039: Make level::compare use test::predicate