# SPDX-FileCopyrightText: 2026 Blackcat Informatics® Inc. <paudley@blackcatinformatics.ca>
# SPDX-License-Identifier: MIT OR Apache-2.0 OR MulanPSL-2.0
# Answers frozen from Python 3 decimal.Decimal converted to fractions.Fraction.
# op|left JSON number|right JSON number|expected
cmp|1.0000000000000001|1.0|>
cmp|-1.0000000000000001|-1|<
cmp|0.00000000000000000000000000001|1e-28|<
cmp|18446744073709551616|18446744073709551615|>
cmp|-18446744073709551616|-18446744073709551615|<
cmp|123456789012345678901234567890.123456789|123456789012345678901234567890.123456788|>
cmp|1e308|9.99999999999999999999999999999999999999999999e307|>
cmp|-0|0.0|=
cmp|1e-308|0|>
cmp|0.000001|1e-7|>
mul|1.0000000000000001|0.1|false
mul|99999999999999999999999999999999999999999999999999|3|true
mul|10000000000000000000000000000000000000000000000000|2.5|true
mul|-19.99|0.01|true
mul|-19.99|0.03|false
mul|1e308|0.125|true
mul|1e-308|1e-309|true
mul|1e-308|3e-309|false
mul|123456789012345678901234567890.123456789|0.000000001|true
mul|0|3.141592653589793238462643383279|true
mul|-0.00000000000000000001|1e-21|true
mul|7|-2|false
# Unbounded exponent cases follow from powers of ten and integer divisibility.
cmp|1e999999999999999999999|1e999999999999999999998|>
cmp|1e-999999999999999999999|1e-999999999999999999998|<
cmp|1e0000000000000000000000001|10|=
mul|1e999999999999999999999|2|true
mul|1e-999999999999999999999|2|false
