[PATCH] D115147: clang-format: [JS] test case for numeric separators.

Martin Probst via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 6 10:01:47 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG327d966365d7: clang-format: [JS] test case for numeric separators. (authored by mprobst).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115147/new/

https://reviews.llvm.org/D115147

Files:
  clang/unittests/Format/FormatTestJS.cpp


Index: clang/unittests/Format/FormatTestJS.cpp
===================================================================
--- clang/unittests/Format/FormatTestJS.cpp
+++ clang/unittests/Format/FormatTestJS.cpp
@@ -2692,5 +2692,9 @@
       "}\n");
 }
 
+TEST_F(FormatTestJS, NumericSeparators) {
+  verifyFormat("x = 1_000_000 + 12;", "x = 1_000_000   + 12;");
+}
+
 } // namespace format
 } // end namespace clang


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115147.392118.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211206/85899dad/attachment.bin>


More information about the cfe-commits mailing list