Make tests pass in Ruby 2.4

This commit is contained in:
kojix2
2021-06-03 10:48:47 +09:00
parent d9777435a4
commit f823377c50
4 changed files with 14 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ module YouPlot
# compare values
r = b[1] <=> a[1]
# If the values are the same, compare by name
r = a[0] <=> b[0] if r == 0
r = a[0] <=> b[0] if r.zero?
r
end
.transpose