package fixture // Not compiled: testdata is ignored by the go tool. import ( "fmt" "strings" ) // MV-N1: the head, with the joined list as its last fill-in. The element is // one placeholder, built here. func differs(names, kinds []string) string { var out []string for i := range names { out = append(out, names[i]+" ("+kinds[i]+")") } return "the environment differs from the source's: " + strings.Join(out, ", ") } // MV-N2: %q prints the quotes the row shows. The element is built in // elem.go, where the record's element file map points. func ambiguous(seg, alts string) string { return fmt.Sprintf("account %q is ambiguous. pick one of: %s", seg, alts) } // MV-N3: the head is spoken, but elem.go builds " ()", not the // row's " []". func several(region, alts string) string { return fmt.Sprintf("the region %q has several boxes: %s", region, alts) } // MV-N4: the list is a fixed word, not the code's fill-in. const noBox = "no box answered the probe: none" // MV-N5: the row has no colon before its list, so the gate cannot tell // where the element starts. The code says it anyway. func boxes(list string) string { return "the boxes " + list } // MV-N6's head is not spoken: the code says "configuration", the row "store". func storeDiffers(list string) string { return "the configuration differs from the source's: " + list }