Files
openide/plugins/coverage/testData/conditions/testSrc/CommentsAndParenthesesTest.java
Maksim Zuev 612095c522 [coverage] IDEA-340739 Show hints for Kotlin conditions
GitOrigin-RevId: d04760ec0fa62cce62508c9d5d63efce8bb67f45
2024-01-10 14:42:32 +00:00

29 lines
835 B
Java

import junit.framework.TestCase;
public class CommentsAndParenthesesTest extends TestCase {
public void test() {
CommentsAndParentheses o = new CommentsAndParentheses();
o.extraBrackets(false);
o.extraBracketsExpression(true, false);
o.extraComment(false);
o.extraCommentInsideExpression(true, false);
o.extraBracketsInIf(true);
o.commentInSwitch(1);
o.commentInSwitchExpression(1, 0);
o.extraBracketsInSwitch(1);
}
public void testKotlin() {
KtCommentsAndParentheses o = new KtCommentsAndParentheses();
o.extraBrackets(false);
o.extraBracketsExpression(true, false);
o.extraComment(false);
o.extraCommentInsideExpression(true, false);
o.extraBracketsInIf(true);
o.commentInSwitch(1);
o.commentInSwitchExpression(1, 0);
o.extraBracketsInSwitch(1);
}
}