Fix for KT-13818

Javadoc @code conversion
This commit is contained in:
Simon Ogorodnik
2016-10-10 20:32:37 +03:00
parent 452b77692d
commit 1a7c507cc5
6 changed files with 51 additions and 4 deletions
@@ -1,4 +1,4 @@
/**
* `A<B`
* `A<B`
*/
class C
+11
View File
@@ -0,0 +1,11 @@
/**
* Start.
* Plain quote: 'quoted'
* KT-13818: {@code 'quoted'}
* Code: {@code someCode()}
* Operators: {@code a > b}
* String: {@code str = "String"}
* Generic: {@code List<T>}
* End.
*/
public class Quote {}
+11
View File
@@ -0,0 +1,11 @@
/**
* Start.
* Plain quote: 'quoted'
* KT-13818: `'quoted'`
* Code: `someCode()`
* Operators: `a > b`
* String: `str = "String"`
* Generic: `List<T>`
* End.
*/
class Quote
@@ -1711,6 +1711,12 @@ public class JavaToKotlinConverterForWebDemoTestGenerated extends AbstractJavaTo
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("j2k/testData/fileOrElement/docComments"), Pattern.compile("^(.+)\\.java$"), true);
}
@TestMetadata("quoted.java")
public void testCodeQuote() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("j2k/testData/fileOrElement/docComments/quoted.java");
doTest(fileName);
}
@TestMetadata("deprecatedDocTag.java")
public void testDeprecatedDocTag() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("j2k/testData/fileOrElement/docComments/deprecatedDocTag.java");
@@ -1711,6 +1711,12 @@ public class JavaToKotlinConverterSingleFileTestGenerated extends AbstractJavaTo
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("j2k/testData/fileOrElement/docComments"), Pattern.compile("^(.+)\\.java$"), true);
}
@TestMetadata("quoted.java")
public void testCodeQuote() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("j2k/testData/fileOrElement/docComments/quoted.java");
doTest(fileName);
}
@TestMetadata("deprecatedDocTag.java")
public void testDeprecatedDocTag() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("j2k/testData/fileOrElement/docComments/deprecatedDocTag.java");