Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceTextTest.java @ 22045:ffbc7f472438
SourceTextTest: fix formating.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Thu, 30 Jul 2015 17:16:59 +0200 |
parents | fb6c6070b64d |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22044:88eaf4852595 | 22045:ffbc7f472438 |
---|---|
43 assertEquals(emptySource.getLineCount(), 0); | 43 assertEquals(emptySource.getLineCount(), 0); |
44 } | 44 } |
45 | 45 |
46 // Temp disable of empty text tests | 46 // Temp disable of empty text tests |
47 | 47 |
48 // @Test(expected = IllegalArgumentException.class) | 48 // @Test(expected = IllegalArgumentException.class) |
49 @Test() | 49 @Test() |
50 public void emptyTextTest1() { | 50 public void emptyTextTest1() { |
51 emptySource.getLineNumber(0); | 51 emptySource.getLineNumber(0); |
52 } | 52 } |
53 | 53 |
54 // @Test(expected = IllegalArgumentException.class) | 54 // @Test(expected = IllegalArgumentException.class) |
55 @Test() | 55 @Test() |
56 public void emptyTextTest2() { | 56 public void emptyTextTest2() { |
57 emptySource.getColumnNumber(0); | 57 emptySource.getColumnNumber(0); |
58 } | 58 } |
59 | 59 |
60 @Test(expected = IllegalArgumentException.class) | 60 @Test(expected = IllegalArgumentException.class) |
61 public void emptyTextTest3() { | 61 public void emptyTextTest3() { |
62 emptySource.getLineNumber(-1); | 62 emptySource.getLineNumber(-1); |
63 } | 63 } |
64 | 64 |
65 // @Test(expected = IllegalArgumentException.class) | 65 // @Test(expected = IllegalArgumentException.class) |
66 @Test() | 66 @Test() |
67 public void emptyTextTest4() { | 67 public void emptyTextTest4() { |
68 emptySource.getLineStartOffset(0); | 68 emptySource.getLineStartOffset(0); |
69 } | 69 } |
70 | 70 |
71 // @Test(expected = IllegalArgumentException.class) | 71 // @Test(expected = IllegalArgumentException.class) |
72 public void emptyTextTest5() { | 72 public void emptyTextTest5() { |
73 emptySource.getLineStartOffset(1); | 73 emptySource.getLineStartOffset(1); |
74 } | 74 } |
75 | 75 |
76 // @Test(expected = IllegalArgumentException.class) | 76 // @Test(expected = IllegalArgumentException.class) |
77 public void emptyTextTest6() { | 77 public void emptyTextTest6() { |
78 emptySource.getLineLength(1); | 78 emptySource.getLineLength(1); |
79 } | 79 } |
80 | 80 |
81 @Test | 81 @Test |