AK: Fix typo in -= operator of DistinctNumeric

This commit is contained in:
Aliaksandr Kalenik 2023-01-05 21:14:23 +03:00 committed by Andreas Kling
commit c6d494513e
Notes: sideshowbarker 2024-07-17 02:56:25 +09:00
2 changed files with 6 additions and 2 deletions

View file

@ -197,6 +197,10 @@ TEST_CASE(operator_arith)
EXPECT_EQ(a, ArithNumeric(1));
EXPECT_EQ(a %= a, ArithNumeric(0));
EXPECT_EQ(a, ArithNumeric(0));
a = ArithNumeric(12);
EXPECT_EQ(a -= a, ArithNumeric(0));
EXPECT_EQ(a, ArithNumeric(0));
}
TEST_CASE(composability)