Replace with string templates: add curly braces if needed

#KT-37173 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-03-03 18:01:00 +09:00
committed by Yan Zhulanow
parent 8d3e41ae60
commit bf3e739edf
4 changed files with 28 additions and 3 deletions
@@ -11162,6 +11162,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/inspectionsLocal/replaceStringFormatWithLiteral"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
}
@TestMetadata("curlyBraces.kt")
public void testCurlyBraces() throws Exception {
runTest("idea/testData/inspectionsLocal/replaceStringFormatWithLiteral/curlyBraces.kt");
}
@TestMetadata("formattableArgs.kt")
public void testFormattableArgs() throws Exception {
runTest("idea/testData/inspectionsLocal/replaceStringFormatWithLiteral/formattableArgs.kt");