aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/google/devtools')
-rw-r--r--src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java
index 3013450710..bc70984a42 100644
--- a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java
+++ b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java
@@ -1168,6 +1168,18 @@ public class SkylarkIntegrationTest extends BuildViewTestCase {
getConfiguredTarget("//test/skylark:cr");
}
+ @Test
+ public void testLoadSymbolTypo() throws Exception {
+ scratch.file("test/skylark/ext1.bzl", "myvariable = 2");
+
+ scratch.file("test/skylark/BUILD", "load('//test/skylark:ext1.bzl', 'myvariables')");
+
+ reporter.removeHandler(failFastHandler);
+ getConfiguredTarget("//test/skylark:test_target");
+ assertContainsEvent(
+ "file '//test/skylark:ext1.bzl' does not contain symbol 'myvariables' "
+ + "(did you mean 'myvariable'?)");
+ }
/**
* Skylark integration test that forces inlining.