diff options
Diffstat (limited to 'javatests/com/google/turbine/parse/ExpressionParserTest.java')
-rw-r--r-- | javatests/com/google/turbine/parse/ExpressionParserTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/javatests/com/google/turbine/parse/ExpressionParserTest.java b/javatests/com/google/turbine/parse/ExpressionParserTest.java index f9a2388..9e1f4ba 100644 --- a/javatests/com/google/turbine/parse/ExpressionParserTest.java +++ b/javatests/com/google/turbine/parse/ExpressionParserTest.java @@ -18,6 +18,7 @@ package com.google.turbine.parse; import static com.google.common.truth.Truth.assertThat; +import com.google.turbine.diag.SourceFile; import com.google.turbine.tree.Tree; import java.util.Arrays; import org.junit.Test; @@ -142,7 +143,8 @@ public class ExpressionParserTest { @Test public void test() { Tree.Expression expression = - new ConstExpressionParser(new StreamLexer(new UnicodeEscapePreprocessor(input))) + new ConstExpressionParser( + new StreamLexer(new UnicodeEscapePreprocessor(new SourceFile(null, input)))) .expression(); if (expected == null) { assertThat(expression).isNull(); |