void () { final String in = """ class A { void m(int i) { assert 10 > i; } }"""; final String what = "assert '_a > '_b : '_c?;"; final String by = "assert $b$ < $a$ : $c$;"; assertEquals(""" class A { void m(int i) { assert i < 10; } }""", replace(in, what, by)); }