(from int, to int)
| 295 | } |
| 296 | |
| 297 | func formatLineRange(from int, to int) string { |
| 298 | if from == to { |
| 299 | return "line " + fmt.Sprintf("%d", from) |
| 300 | } |
| 301 | |
| 302 | return "lines " + fmt.Sprintf("%d-%d", from, to) |
| 303 | } |
| 304 | |
| 305 | // asserts on the content of the view i.e. the stuff within the view's frame. |
| 306 | func (self *ViewDriver) Content(matcher *TextMatcher) *ViewDriver { |