Index: tests/SkSLErrorTest.cpp |
diff --git a/tests/SkSLErrorTest.cpp b/tests/SkSLErrorTest.cpp |
index 47e31e6ee421229826758971b7f4fdc91f5a4ec0..3afb64fe6167a5f9378234b14e34f05c18e762fe 100644 |
--- a/tests/SkSLErrorTest.cpp |
+++ b/tests/SkSLErrorTest.cpp |
@@ -43,7 +43,12 @@ DEF_TEST(SkSLUndefinedFunction, r) { |
DEF_TEST(SkSLGenericArgumentMismatch, r) { |
test_failure(r, |
"void main() { float x = sin(1, 2); }", |
- "error: 1: no match for sin(int, int)\n1 error\n"); |
+ "error: 1: call to 'sin' expected 1 argument, but found 2\n1 error\n"); |
+ test_failure(r, |
+ "void main() { float x = sin(true); }", |
+ "error: 1: no match for sin(bool)\n1 error\n"); |
+ test_success(r, |
+ "void main() { float x = sin(1); }"); |
} |
DEF_TEST(SkSLArgumentCountMismatch, r) { |