From f336b1261b0ca7ed7312622f804f592b722c83b0 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 6 Apr 2019 12:08:27 -0600 Subject: [PATCH] Segfault still occurring Traced it to the message method in equality matcher. Looks like converting the string to JSON causes the issue, don't know why. Static string with no variables gets optimized out and still has the problem. --- src/spectator/matchers/equality_matcher.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spectator/matchers/equality_matcher.cr b/src/spectator/matchers/equality_matcher.cr index 0e97e60..bcf65e8 100644 --- a/src/spectator/matchers/equality_matcher.cr +++ b/src/spectator/matchers/equality_matcher.cr @@ -34,7 +34,8 @@ module Spectator::Matchers # Describes the condition that satisfies the matcher. # This is informational and displayed to the end-user. def message - "#{@values.actual_label} is #{@values.expected_label} (using ==)" + #"#{@values.actual_label} is #{@values.expected_label} (using ==)" + "what about this?" end # Describes the condition that won't satsify the matcher.