(t *testing.T)
| 1949 | } |
| 1950 | |
| 1951 | func TestInEpsilonSlice(t *testing.T) { |
| 1952 | mockT := new(testing.T) |
| 1953 | |
| 1954 | True(t, InEpsilonSlice(mockT, |
| 1955 | []float64{2.2, math.NaN(), 2.0}, |
| 1956 | []float64{2.1, math.NaN(), 2.1}, |
| 1957 | 0.06), "{2.2, NaN, 2.0} is element-wise close to {2.1, NaN, 2.1} in epsilon=0.06") |
| 1958 | |
| 1959 | False(t, InEpsilonSlice(mockT, |
| 1960 | []float64{2.2, 2.0}, |
| 1961 | []float64{2.1, 2.1}, |
| 1962 | 0.04), "{2.2, 2.0} is not element-wise close to {2.1, 2.1} in epsilon=0.04") |
| 1963 | |
| 1964 | False(t, InEpsilonSlice(mockT, "", nil, 1), "Expected non numeral slices to fail") |
| 1965 | } |
| 1966 | |
| 1967 | func TestRegexp(t *testing.T) { |
| 1968 | mockT := new(testing.T) |
nothing calls this directly
no test coverage detected
searching dependent graphs…