cgen: omit "x ~mod+= y ~mod* 0"

This commit is contained in:
Nigel Tao committed 2026-06-19 20:28:56 +10:00
1 parent 1f3df26c7f
commit 40f39a3ba3
5 files changed
+22 -235

No files matched your search

+2 -2
View File
@@ -283,8 +283,8 @@ func TestContainsEtc(tt *testing.T) {
tt.Errorf("%v eq %v: got %t, want %t", x, sharedEmptyRange, got, want)
}
if got, want := x.justZero(), tc.s == "[ 0, 0]"; got != want {
tt.Errorf("%s.justZero(): got %t, want %t", tc.s, got, want)
if got, want := x.IsJustZero(), tc.s == "[ 0, 0]"; got != want {
tt.Errorf("%s.IsJustZero(): got %t, want %t", tc.s, got, want)
}
}