From ccb2e6e02f39f6cf5f7beb4aa64bec948a8c7edf Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 21 Aug 2022 08:07:52 +0100 Subject: Qualified undefined variable error, added test --- test/Language.hs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test/Language.hs') diff --git a/test/Language.hs b/test/Language.hs index 7d814a7..e52bb3b 100644 --- a/test/Language.hs +++ b/test/Language.hs @@ -226,6 +226,14 @@ testCase17 = \def fn(a: u8): u8 { return a(); }\n" E.NonCallable +testCase18 = + TestLabel "undefined variable" $ + TestCase $ + expectError + "module main\n\ + \def fn(a: u8): u8 { return undef; }\n" + E.Undefined + language = [ testCase1, testCase2, @@ -243,5 +251,6 @@ language = testCase14, testCase15, testCase16, - testCase17 + testCase17, + testCase18 ] -- cgit v1.2.3