Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java')
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java
index 03c402206c9..8cb7927df0a 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java
@@ -1080,6 +1080,27 @@ public class CodeFormatterTest extends BaseUITestCase {
assertFormatterResult();
}
+ //void function(int);
+ //int function_with_a_looooooooooooooooooooooooooooooooong_name(int);
+ //
+ //void test() {
+ //function(function_with_a_looooooooooooooooooooooooooooooooong_name(1000000));
+ //}
+
+ //void function(int);
+ //int function_with_a_looooooooooooooooooooooooooooooooong_name(int);
+ //
+ //void test() {
+ // function(function_with_a_looooooooooooooooooooooooooooooooong_name(
+ // 1000000));
+ //}
+ public void testFunctionCall_3() throws Exception {
+ fOptions.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, CCorePlugin.SPACE);
+ fOptions.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION,
+ Integer.toString(Alignment.M_COMPACT_SPLIT | Alignment.M_INDENT_ON_COLUMN));
+ assertFormatterResult();
+ }
+
//void function(const char* s);
//
//void test() {

Back to the top