diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-25 14:56:15 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-25 14:56:15 -0700 |
| commit | af56dc0cb5b3a0bbc017beef2b5dfe74e58b9a25 (patch) | |
| tree | b4ee355b458f13b2c276a7dadcedca3fc3d27c48 /asspb_test.go | |
| parent | 1e9f1ddec62c6807aa44bb75b33e1c36b60def13 (diff) | |
| download | ccl-af56dc0cb5b3a0bbc017beef2b5dfe74e58b9a25.tar.zst | |
Add support for C-style comments
Diffstat (limited to 'asspb_test.go')
| -rw-r--r-- | asspb_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/asspb_test.go b/asspb_test.go index 36e8e5f..6803733 100644 --- a/asspb_test.go +++ b/asspb_test.go @@ -162,6 +162,14 @@ field: 2`, desc: "ListOfMessage", msg: `field: [{}]`, want: map[string]any{"field": []any{map[string]any{}}}, + }, { + desc: "CStyleComment", + msg: `field: /** inline comment **/ {}`, + want: map[string]any{"field": map[string]any{}}, + }, { + desc: "CStyleLineComment", + msg: `field: {} // line comment`, + want: map[string]any{"field": map[string]any{}}, }} { t.Run(tc.desc, func(t *testing.T) { t.Parallel() |
