Something went wrong. Try again.
A polyglot incremental mutation tester
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227[[mutation]]kind = "StatementBlock"snippet = """if x > 0 { }"""
[[mutation]]kind = "Condition"snippet = """if x > 0 { }"""
[[mutation]]kind = "BinaryOp(Add)"snippet = """let x = a + b;"""
[[mutation]]kind = "BinaryOp(And)"snippet = """let x = a && b;"""
[[mutation]]kind = "BinaryOp(BitAnd)"snippet = """let x = a & b;"""
[[mutation]]kind = "BinaryOp(BitOr)"snippet = """let x = a | b;"""
[[mutation]]kind = "BinaryOp(BitXor)"snippet = """let x = a ^ b;"""
[[mutation]]kind = "BinaryOp(Div)"snippet = """let x = a / b;"""
[[mutation]]kind = "BinaryOp(Eq)"snippet = """let x = a == b;"""
[[mutation]]kind = "BinaryOp(Gt)"snippet = """if x > 0 { }"""
[[mutation]]kind = "BinaryOp(Gte)"snippet = """let x = a >= b;"""
[[mutation]]kind = "BinaryOp(Lt)"snippet = """let x = a < b;"""
[[mutation]]kind = "BinaryOp(Lte)"snippet = """let x = a <= b;"""
[[mutation]]kind = "BinaryOp(Mul)"snippet = """let x = a * b;"""
[[mutation]]kind = "BinaryOp(Or)"snippet = """let x = a || b;"""
[[mutation]]kind = "BinaryOp(Rem)"snippet = """let x = a % b;"""
[[mutation]]kind = "BinaryOp(Shl)"snippet = """let x = a << b;"""
[[mutation]]kind = "BinaryOp(Shr)"snippet = """let x = a >> b;"""
[[mutation]]kind = "BinaryOp(Ne)"snippet = """let x = a != b;"""
[[mutation]]kind = "BinaryOp(Sub)"snippet = """let x = a - b;"""
[[mutation]]kind = "Assign(AddAssign)"snippet = """x += 1;"""
[[mutation]]kind = "Assign(BitAndAssign)"snippet = """x &= 1;"""
[[mutation]]kind = "Assign(BitOrAssign)"snippet = """x |= 1;"""
[[mutation]]kind = "Assign(BitXorAssign)"snippet = """x ^= 1;"""
[[mutation]]kind = "Assign(DivAssign)"snippet = """x /= 1;"""
[[mutation]]kind = "Assign(MulAssign)"snippet = """x *= 1;"""
[[mutation]]kind = "Assign(NormalAssign)"snippet = """x = 1;"""
[[mutation]]kind = "Assign(RemAssign)"snippet = """x %= 1;"""
[[mutation]]kind = "Assign(ShlAssign)"snippet = """x <<= 1;"""
[[mutation]]kind = "Assign(ShrAssign)"snippet = """x >>= 1;"""
[[mutation]]kind = "Assign(SubAssign)"snippet = """x -= 1;"""
[[mutation]]kind = "ArrayDecl(Inline)"snippet = """let x = [1, 2, 3];"""
[[mutation]]kind = "Literal(BoolTrue)"snippet = """let x = true;"""
[[mutation]]kind = "Literal(BoolFalse)"snippet = """let x = false;"""
[[mutation]]kind = "Literal(String)"snippet = """let x = "hello";"""
[[mutation]]kind = "Literal(EmptyString)"snippet = """let x = "";"""
[[mutation]]kind = "Literal(Number)"snippet = """x = 1;"""
[[mutation]]kind = "TupleDecl"snippet = """let x = (1, 2, 3);"""
[[mutation]]kind = "UnaryNot"snippet = """let x = !y;"""
[[mutation]]kind = "SwitchCase"snippet = """match x { n if n > 5 => n, _ => 2,}"""
[[mutation]]kind = "Range(Exclusive)"snippet = """let x = ..5;"""
[[mutation]]kind = "Range(Inclusive)"snippet = """let x = ..=5;"""
[[mutation]]kind = "Range(From)"snippet = """let x = 1..;"""
[[mutation]]kind = "MatchPattern"snippet = """match x { 1 => println!("one"), _ => println!("other"),}"""