From c4cfcf98b6f9e7c97dcf8a7bc2a5a989b7dc4727 Mon Sep 17 00:00:00 2001 From: yarik Date: Fri, 16 Jun 2017 11:01:30 +0300 Subject: [PATCH] [formatter] added test on multiple spacing objects at same offset --- .../intellij/formatting/engine/GeneralCodeFormatterTest.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/platform-tests/testSrc/com/intellij/formatting/engine/GeneralCodeFormatterTest.kt b/platform/platform-tests/testSrc/com/intellij/formatting/engine/GeneralCodeFormatterTest.kt index 25e59b87eb04..493269ed022c 100644 --- a/platform/platform-tests/testSrc/com/intellij/formatting/engine/GeneralCodeFormatterTest.kt +++ b/platform/platform-tests/testSrc/com/intellij/formatting/engine/GeneralCodeFormatterTest.kt @@ -196,6 +196,12 @@ aaa bbb ccc "0123456789 ") } + + @Test + fun `test first spacing object is used`() { + doReformatTest("[]0 [s_min5_max5]([s_min10_max10]1)", "0 1") + } + @Test fun `test no wrap object no text wrap`() { doReformatTest("[]aaa []bbb []ccc []ddd []eee []f|ff", "aaa bbb ccc ddd eee fff")