AssertSorted asserts that the DTuple is sorted.
()
| 3141 | |
| 3142 | // AssertSorted asserts that the DTuple is sorted. |
| 3143 | func (d *DTuple) AssertSorted() { |
| 3144 | if !d.sorted { |
| 3145 | panic(errors.AssertionFailedf("expected sorted tuple, found %#v", d)) |
| 3146 | } |
| 3147 | } |
| 3148 | |
| 3149 | // SearchSorted searches the tuple for the target Datum, returning an int with |
| 3150 | // the same contract as sort.Search and a boolean flag signifying whether the datum |