Rewrite tests for 18163 (#18185)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-11-01 16:31:33 +08:00
1 parent 1c2ef1f0dd
commit 7d9933d71f
2 files changed
+20 -20

No files matched your search

@@ -7,18 +7,18 @@ printWidth: 80
| printWidth
=====================================input======================================
// https://github.com/prettier/prettier/issues/18145
1 << (bit % 8);
1 >> (bit - 8);
1 | (bit % 8);
1 & (bit % 8);
1 ^ (bit % 8);
1 >>> (bit % 8);
1 << bit % 8;
1 >> bit - 8;
1 | bit % 8;
1 & bit % 8;
1 ^ bit % 8;
1 >>> bit % 8;
(a + b) % c;
a % (b + c);
1 << (bit * 8);
1 >> (bit / 8);
1 << (bit + 8);
1 >> (bit - 8);
1 << bit * 8;
1 >> bit / 8;
1 << bit + 8;
1 >> bit - 8;
=====================================output=====================================
// https://github.com/prettier/prettier/issues/18145
@@ -1,13 +1,13 @@
// https://github.com/prettier/prettier/issues/18145
1 << (bit % 8);
1 >> (bit - 8);
1 | (bit % 8);
1 & (bit % 8);
1 ^ (bit % 8);
1 >>> (bit % 8);
1 << bit % 8;
1 >> bit - 8;
1 | bit % 8;
1 & bit % 8;
1 ^ bit % 8;
1 >>> bit % 8;
(a + b) % c;
a % (b + c);
1 << (bit * 8);
1 >> (bit / 8);
1 << (bit + 8);
1 >> (bit - 8);
1 << bit * 8;
1 >> bit / 8;
1 << bit + 8;
1 >> bit - 8;