diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-23 20:24:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-23 20:24:38 +0300 |
| commit | 6094b92ea44db5ac74183fc339574852254c9f23 (patch) | |
| tree | 203f06c90c675aaa2562e6a05f30b8a93d6d4b3e /integrationtests/cli_test.go | |
| parent | 8303e85c630df1dc988455b938981c8adaf8cae3 (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
