summaryrefslogtreecommitdiff
path: root/integrationtests/cli_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-23 20:24:38 +0300
committerPaul Buetow <paul@buetow.org>2026-05-23 20:24:38 +0300
commit6094b92ea44db5ac74183fc339574852254c9f23 (patch)
tree203f06c90c675aaa2562e6a05f30b8a93d6d4b3e /integrationtests/cli_test.go
parent8303e85c630df1dc988455b938981c8adaf8cae3 (diff)
fix: Rat.Compare() LSP violation — accept any NumericValue
Rat.Compare() previously rejected non-Rat operands with an error, violating Liskov Substitution Principle since the NumericValue interface contract promises to compare against any NumericValue. Now converts the other operand via Float64() to *big.Rat, matching the pattern used by Float.Compare(). This allows Rat and Float values to be compared against each other transparently.
Diffstat (limited to 'integrationtests/cli_test.go')
0 files changed, 0 insertions, 0 deletions