diff options
author | 2015-05-18 18:35:36 +0000 | |
---|---|---|
committer | 2015-05-18 20:02:33 +0000 | |
commit | 9e3cc2e608184e9f3ff9eea5a97116e61c6cee23 (patch) | |
tree | d3aadca80dda9142a25531162de6bba03237496d /src/test/java/com/google/devtools/build/lib/syntax | |
parent | 88311f87c5b7c1b70499b03093b6088429144cbe (diff) |
Improve the way a FuncallExpression is printed while debugging.
--
MOS_MIGRATED_REVID=93908545
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java | 4 | ||||
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/ValidationTests.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java b/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java index e5d481533b..ef1b9f9fda 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java @@ -392,8 +392,8 @@ public class ParserTest extends EvaluationTestCase { public void testPrettyPrintFunctions() throws Exception { assertEquals("[x[1:3]\n]", parseFile("x[1:3]").toString()); assertEquals("[str[42]\n]", parseFile("str[42]").toString()); - assertEquals("[ctx.new_file(['hello'])\n]", parseFile("ctx.new_file('hello')").toString()); - assertEquals("[new_file(['hello'])\n]", parseFile("new_file('hello')").toString()); + assertEquals("[ctx.new_file('hello')\n]", parseFile("ctx.new_file('hello')").toString()); + assertEquals("[new_file('hello')\n]", parseFile("new_file('hello')").toString()); } @Test diff --git a/src/test/java/com/google/devtools/build/lib/syntax/ValidationTests.java b/src/test/java/com/google/devtools/build/lib/syntax/ValidationTests.java index fbbdbcc82a..3326fec778 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/ValidationTests.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/ValidationTests.java @@ -180,7 +180,7 @@ public class ValidationTests extends EvaluationTestCase { @Test public void testFuncReturningDictAssignmentAsLValue() throws Exception { - checkError("can only assign to variables and tuples, not to 'dict([])['b']'", + checkError("can only assign to variables and tuples, not to 'dict()['b']'", "def dict():", " return {'a': 1}", "def func():", |