diff options
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java b/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java index bf9afdf2a3..bde212cc42 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java @@ -14,7 +14,6 @@ package com.google.devtools.build.lib.syntax; import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertEquals; import com.google.common.eventbus.EventBus; import com.google.devtools.build.lib.events.Event; @@ -421,11 +420,11 @@ public class LexerTest { @Test public void testTokenPositions() throws Exception { - // foo ( bar , { 1 : - assertEquals("[0,3) [3,4) [4,7) [7,8) [9,10) [10,11) [11,12)" - // 'quux' } ) NEWLINE EOF - + " [13,19) [19,20) [20,21) [20,21) [21,21)", - positions(tokens("foo(bar, {1: 'quux'})"))); + assertThat(positions(tokens("foo(bar, {1: 'quux'})"))).isEqualTo( + // foo ( bar , { 1 : + "[0,3) [3,4) [4,7) [7,8) [9,10) [10,11) [11,12)" + // 'quux' } ) NEWLINE EOF + + " [13,19) [19,20) [20,21) [20,21) [21,21)"); } @Test |