From 9e28e0c201462dfc7c234de1777453137033d601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Wa=C5=9Bko?= Date: Mon, 27 Mar 2023 18:49:32 +0200 Subject: [PATCH] Workaround for an issue with to_text dispatch. See #1538 --- distribution/lib/Standard/Test/0.0.0-dev/src/Extensions.enso | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distribution/lib/Standard/Test/0.0.0-dev/src/Extensions.enso b/distribution/lib/Standard/Test/0.0.0-dev/src/Extensions.enso index 4409b7e019c2..c123005f00c0 100644 --- a/distribution/lib/Standard/Test/0.0.0-dev/src/Extensions.enso +++ b/distribution/lib/Standard/Test/0.0.0-dev/src/Extensions.enso @@ -45,6 +45,9 @@ Error.should_fail_with self matcher frames_to_skip=0 = caught = self.catch if caught == matcher || caught.is_a matcher then Nothing else loc = Meta.get_source_location 3+frames_to_skip + matcher_text = case matcher.to_text of + text : Text -> text + _ -> Meta.meta matcher . to_text Test.fail ("Expected error "+matcher.to_text+", but error " + caught.to_text + " has been returned (at " + loc + ").") ## Asserts that `self` value is equal to the expected value.