mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 15:16:59 +08:00
unit: complete coverage of generate code
This commit is contained in:
@@ -21,6 +21,13 @@ func TestCurrent(t *testing.T) {
|
||||
if got != Current(value) {
|
||||
t.Errorf("unexpected result from round trip of %T(%v): got: %v want: %v", got, float64(value), got, value)
|
||||
}
|
||||
if got != got.Current() {
|
||||
t.Errorf("unexpected result from self interface method call: got: %#v want: %#v", got, value)
|
||||
}
|
||||
err = got.From(ether(1))
|
||||
if err == nil {
|
||||
t.Errorf("expected error for ether to %T conversion", got)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user