mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Tweak dumbindent.breakAfterBrace
This commit is contained in:
1 parent
63c12cad17
commit
8bd30e912c
2 files changed
+49
-18
No files matched your search
@@ -79,6 +79,14 @@ func TestFormatBytes(tt *testing.T) {
|
||||
// Namespaces.
|
||||
src: "namespace A {\nint f() {\nreturn 0;\n}\n}\n",
|
||||
want: "namespace A {\nint f() {\n return 0;\n}\n}\n",
|
||||
}, {
|
||||
// No break between "{" and "//".
|
||||
src: "if (b) { // Blah.\nreturn;\n",
|
||||
want: "if (b) { // Blah.\n return;\n",
|
||||
}, {
|
||||
// Simple compound literal.
|
||||
src: "T x = {0};",
|
||||
want: "T x = {0};\n",
|
||||
}}
|
||||
|
||||
for i, tc := range testCases {
|
||||
|
||||
Reference in new issue
Block a user