Use ± symbol for range

This commit is contained in:
Michael Miller 2020-05-09 16:10:16 -06:00
parent 414f132f49
commit c99401f7d5

View file

@ -55,7 +55,7 @@ module Spectator::Matchers
lower = center - diff
upper = center + diff
range = Range.new(lower, upper)
test_value = TestValue.new(range, "#{center} +/- #{expected.label}")
test_value = TestValue.new(range, "#{center} ± #{expected.label}")
RangeMatcher.new(test_value)
end
end