(t *testing.T, x, y T)
| 2171 | } |
| 2172 | |
| 2173 | func testNewComparer[T constraints.Ordered](t *testing.T, x, y T) { |
| 2174 | t.Helper() |
| 2175 | c := NewComparer(x) |
| 2176 | if c.Compare(x, y) != -1 { |
| 2177 | t.Fatal("expected comparer LT") |
| 2178 | } else if c.Compare(x, x) != 0 { |
| 2179 | t.Fatal("expected comparer EQ") |
| 2180 | } else if c.Compare(y, x) != 1 { |
| 2181 | t.Fatal("expected comparer GT") |
| 2182 | } |
| 2183 | } |
| 2184 | |
| 2185 | // TSortedMap represents a combined immutable and stdlib sorted map. |
| 2186 | type TSortedMap struct { |
no test coverage detected
searching dependent graphs…