From b28952372af3ee98f0e756de80e635abfec9da21 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Wed, 17 Jul 2024 12:47:21 +0100 Subject: [PATCH] Update tests --- tests/empty_file/expected_results.json | 2 +- tests/syntax_error/expected_results.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/empty_file/expected_results.json b/tests/empty_file/expected_results.json index 466832c..9238a1d 100644 --- a/tests/empty_file/expected_results.json +++ b/tests/empty_file/expected_results.json @@ -1,5 +1,5 @@ { "version": 2, "status": "error", - "message": "error: Unknown module field\n ┌─ test/empty_file_test.gleam:10:13\n │\n10 │ empty_file.hello_world()\n │ ^^^^^^^^^^^^\nThe module `empty_file` does not have a `hello_world` value." + "message": "warning: Unused imported module\n ┌─ test/empty_file_test.gleam:2:1\n │\n2 │ import exercism/should\n │ ^^^^^^^^^^^^^^^^^^^^^^ This imported module is never used\nHint: You can safely remove it.\nwarning: Unused imported module\n ┌─ test/empty_file_test.gleam:3:1\n │\n3 │ import empty_file\n │ ^^^^^^^^^^^^^^^^^ This imported module is never used\nHint: You can safely remove it.\nerror: Unknown module field\n ┌─ test/empty_file_test.gleam:10:13\n │\n10 │ empty_file.hello_world()\n │ ^^^^^^^^^^^^\nThe module `empty_file` does not have a `hello_world` value." } diff --git a/tests/syntax_error/expected_results.json b/tests/syntax_error/expected_results.json index 0d64f3a..7f59725 100644 --- a/tests/syntax_error/expected_results.json +++ b/tests/syntax_error/expected_results.json @@ -1,5 +1,5 @@ { "version": 2, "status": "error", - "message": "error: Syntax error\n ┌─ src/syntax_error.gleam:5:1\n │\n5 │ }\n │ ^ I was not expecting this\nExpected one of: \n\"]\"" + "message": "error: Syntax error\n ┌─ src/syntax_error.gleam:5:1\n │\n5 │ }\n │ ^ I was not expecting this\nFound `}`, expected one of: \n- `]`" }