(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestLess(t *testing.T) { |
| 34 | data := []float64{1, 2, 3, 4, 5} |
| 35 | |
| 36 | r := ReverseFloat64Slice(data) |
| 37 | res := r.Less(0, 1) |
| 38 | |
| 39 | if res != false { |
| 40 | t.Errorf("expected: %v, got: %v", false, res) |
| 41 | } |
| 42 | |
| 43 | res = r.Less(1, 0) |
| 44 | |
| 45 | if res != true { |
| 46 | t.Errorf("expected: %v, got: %v", true, res) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func TestSwap(t *testing.T) { |
| 51 | data := []float64{1, 2, 3, 4, 5} |
nothing calls this directly
no test coverage detected