Index: tests/language/string_interpolate_npe_test.dart |
diff --git a/tests/language/string_interpolate_null_test.dart b/tests/language/string_interpolate_npe_test.dart |
similarity index 85% |
rename from tests/language/string_interpolate_null_test.dart |
rename to tests/language/string_interpolate_npe_test.dart |
index c8aff4a746389b968e327c4094b2089403479859..0baa32a9a43b4cb430fd75420e010297765c02e3 100644 |
--- a/tests/language/string_interpolate_null_test.dart |
+++ b/tests/language/string_interpolate_npe_test.dart |
@@ -15,8 +15,8 @@ main() { |
a = null; |
try { |
s = "Hello Mr. ${a.name}"; |
- } on NoSuchMethodError catch (e) { |
+ } on NullPointerException catch (e) { |
return; |
} |
- Expect.fail("NoSuchMethodError not thrown"); |
+ Expect.fail("NullPointerException not thrown"); |
} |