test: fix error in custom input test

This commit is contained in:
Christian Muehlhaeuser 2022-06-04 15:17:30 +02:00
parent 4c9117df96
commit b237b7fbec
1 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ func TestOptions(t *testing.T) {
var b bytes.Buffer
p := NewProgram(nil, WithInput(&b))
if p.input != &b {
t.Errorf("expected input to custom, got %v", p.output)
t.Errorf("expected input to custom, got %v", p.input)
}
if p.startupOptions&withCustomInput == 0 {
t.Errorf("expected startup options to have custom input set, got %v", p.output)
t.Errorf("expected startup options to have custom input set, got %v", p.input)
}
})