diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-08-08 13:06:33 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-08 13:07:49 +0200 |
| commit | c00da3df66e3212ca3b6ab2a623e9fe5fe6d9e7f (patch) | |
| tree | 9359ffde3b9ab75a19ef3159e1bd1de7cf31ad17 /prog/encoding_test.go | |
| parent | 9a791c399266a650acac45ac55a066a84aad7c64 (diff) | |
prog: collect all prog comments
Parse and collect and prog comments.
Will be needed for runtest annotations
(e.g. "requires threaded mode", etc).
Diffstat (limited to 'prog/encoding_test.go')
| -rw-r--r-- | prog/encoding_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/prog/encoding_test.go b/prog/encoding_test.go index 7ecd811bc..0b3364e63 100644 --- a/prog/encoding_test.go +++ b/prog/encoding_test.go @@ -334,4 +334,13 @@ serialize0() t.Errorf("bad call %v comment: %q, want %q", i, got, want) } } + wantComments := []string{ + "comment1", + "comment4", + "comment6", + "comment7", + } + if !reflect.DeepEqual(p.Comments, wantComments) { + t.Errorf("bad program comments %q\nwant: %q", p.Comments, wantComments) + } } |
