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:
2026-12-01 19:08:00 +00:00
co-authored by Claude Sonnet 5.5
parent 41f752e1c1
commit 158661eefe
27 changed files with 716 additions and 437 deletions
+7
View File
@@ -39,6 +39,9 @@ func instruments(t *testing.T) map[string]*Instrument {
}
}
// TestBuildRoundTrip checks that an instrument built into a document, written
// to files and read again, is the same instrument, for each way of laying the
// document out.
func TestBuildRoundTrip(t *testing.T) {
for name, inst := range instruments(t) {
for label, opts := range map[string]BuildOptions{
@@ -91,6 +94,8 @@ func rebuilt(t *testing.T, doc *Document) *Instrument {
return back.Flatten().Instrument()
}
// TestBuildLayout checks the text that Build writes for the plain, variable
// and split layouts.
func TestBuildLayout(t *testing.T) {
inst := parseText(t, "<region> sample=Dir/a.wav lokey=40\n<region> sample=Dir/b.wav lokey=40\n<region> sample=Dir/c.wav lokey=41\n")
doc, err := Build(inst)
@@ -120,6 +125,8 @@ func TestBuildLayout(t *testing.T) {
}
}
// TestWriteFilesPaths checks that WriteFiles writes the included files in the
// folder of the main file.
func TestWriteFilesPaths(t *testing.T) {
doc, err := Build(parseText(t, "<region> sample=a.wav\n"), BuildOptions{SplitFiles: true})
if err != nil {