Browse Source

Jikes is right, the fallthrough is a problem

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277902 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
4a834a6214
4 changed files with 17 additions and 0 deletions
  1. +9
    -0
      src/etc/testcases/taskdefs/fixcrlf/build.xml
  2. +2
    -0
      src/etc/testcases/taskdefs/fixcrlf/expected/tab_in_literal_in_comment
  3. +2
    -0
      src/etc/testcases/taskdefs/fixcrlf/input/tab_in_literal_in_comment
  4. +4
    -0
      src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java

+ 9
- 0
src/etc/testcases/taskdefs/fixcrlf/build.xml View File

@@ -292,4 +292,13 @@
<assertequal junk="8" />
</target>

<target name="testTabInLiteralInComment">
<copy file="input/tab_in_literal_in_comment" todir="result"
overwrite="true">
<filterchain>
<fixcrlf javafiles="true" tab="remove"/>
</filterchain>
</copy>
<assertequal name="tab_in_literal_in_comment"/>
</target>
</project>

+ 2
- 0
src/etc/testcases/taskdefs/fixcrlf/expected/tab_in_literal_in_comment View File

@@ -0,0 +1,2 @@
// " "


+ 2
- 0
src/etc/testcases/taskdefs/fixcrlf/input/tab_in_literal_in_comment View File

@@ -0,0 +1,2 @@
// " "


+ 4
- 0
src/testcases/org/apache/tools/ant/taskdefs/FixCrLfTest.java View File

@@ -175,6 +175,10 @@ public class FixCrLfTest extends BuildFileTest {
executeTarget("testCannotDoubleEof");
}

public void testTabInLiteralInComment() {
executeTarget("testTabInLiteralInComment");
}

// not used, but public so theoretically must remain for BC?
public void assertEqualContent(File expect, File result)
throws AssertionFailedError, IOException {


Loading…
Cancel
Save