Have dumbindent catch "namespace foo {".

This commit is contained in:
Nigel Tao committed 2020-06-09 22:08:39 +10:00
1 parent 3b1d3d0a39
commit 63c12cad17
2 files changed
+19 -5

No files matched your search

+4
View File
@@ -75,6 +75,10 @@ func TestFormatBytes(tt *testing.T) {
// Leading blank lines.
src: "\n\n\n x = y;",
want: "x = y;\n",
}, {
// Namespaces.
src: "namespace A {\nint f() {\nreturn 0;\n}\n}\n",
want: "namespace A {\nint f() {\n return 0;\n}\n}\n",
}}
for i, tc := range testCases {