Rewrite the code comments for consistent tone and accuracy
Comments only: the tokens of every Go file are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -23,6 +23,7 @@ var roundTripTexts = map[string]string{
|
||||
"variable": "#define $A 1\n$A $B=2 label_cc$A=x\n",
|
||||
}
|
||||
|
||||
// TestRoundTrip checks that awkward text is written back as it was read.
|
||||
func TestRoundTrip(t *testing.T) {
|
||||
for name, text := range roundTripTexts {
|
||||
doc, err := Parse(strings.NewReader(text))
|
||||
@@ -86,6 +87,8 @@ func TestIncludedTwice(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestValidate checks the problems that Validate reports for the text, as
|
||||
// opposed to the values, of a document.
|
||||
func TestValidate(t *testing.T) {
|
||||
doc, err := Parse(strings.NewReader("lokey=1\n<region> sample=$GONE.wav\n#define $A 1\n<region> %%% sample=$A.wav\n"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user