mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Have dumbindent catch "namespace foo {".
This commit is contained in:
1 parent
3b1d3d0a39
commit
63c12cad17
2 files changed
+19
-5
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user