]> Cypherpunks repositories - gostls13.git/commit
Added mechanism for very precise self-testing:
authorRobert Griesemer <gri@golang.org>
Sat, 18 Oct 2008 23:42:25 +0000 (16:42 -0700)
committerRobert Griesemer <gri@golang.org>
Sat, 18 Oct 2008 23:42:25 +0000 (16:42 -0700)
commite45eb6065706c65828bdc97e7522b468cb73312c
treea0d2e6ddc8aa6fee5692ccc2ce77f112a2a3eb29
parent265e73ee14ebfedc027871cd153f0b90c6665070
Added mechanism for very precise self-testing:
- in selftest mode (-t) interpret comments of the form /* ERROR */ and /* SYNC */
  and validate reported errors with the error markings in a file
- added initial selftest.go file

Also:
- fixed an issue with empty blocks
- generally report better error messages
- added many more tests to the test script (essentially all .go programs which
  have no syntax errors)

R=r
OCL=17426
CL=17426
usr/gri/pretty/parser.go
usr/gri/pretty/pretty.go
usr/gri/pretty/scanner.go
usr/gri/pretty/selftest.go [new file with mode: 0644]
usr/gri/pretty/test.sh