(t *testing.T)
| 319 | } |
| 320 | |
| 321 | func TestDecimal(t *testing.T) { |
| 322 | d := Decimal(2, 4, 3) |
| 323 | if !(d >= 2 && d <= 4) { |
| 324 | t.Error("Invalid generate range") |
| 325 | } |
| 326 | |
| 327 | ds := strings.Split(strconv.FormatFloat(d, 'f', 3, 64), ".") |
| 328 | if len(ds[1]) != 3 { |
| 329 | t.Error("Invalid floating point") |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | func TestDay(t *testing.T) { |
| 334 | t.Log("TestDay") |
nothing calls this directly
no test coverage detected
searching dependent graphs…