                 aa = a+ " " @error("error a2") a+
                 """, desiredRule: 0)
             
-            XCTAssertEqual(result,"{(@error(\"expected a\") {(@error(\"inner a\") \"a\")+}►a \" \" @error(\"error a2\") {(@error(\"inner a\") \"a\")+}►a)}►aa")
+            XCTAssertEqual(result,"~({({(@error(\"expected a\") {(@error(\"inner a\") \"a\")}►a)+}►a \" \" @error(\"error a2\") {(@error(\"expected a\") {(@error(\"inner a\") \"a\")}►a)+}►a)}►aa)")
         } catch (let error){
             XCTFail("\(error)")
         }

        do {
            let result = try generatedStringSerialization(for: "letter = @error(\"error\") \"a\"...\"z\"")
            
            XCTAssert(result == "{(@error(\"error\") .customCharacterSet)}►letter", "Bad generated output '\(result)'")
        } catch (let error){
            XCTFail("\(error)")
        }

        do {
            let result = try generatedStringSerialization(for: "letter = @error(\"error\") \"h\"")
            
            XCTAssert(result == "~({(@error(\"error\") \"h\")}►letter)", "Bad generated output '\(result)'")
        } catch (let error){
            XCTFail("\(error)")
        }
