MattChubb/chatbrains

Test error handling

Opened this issue · 0 comments

Line: 103

t.Logf("Testing: %s", table.testcase)
brain := newBrain(table.order, length)
//TODO Test error handling
t.Logf("Generating from: %s", table.input)
got, _ := brain.Generate(table.input)
t.Logf("Got: %s", got)
if len(got) < 1 {
t.Errorf("FAIL, prompt: %#v, got: %#v", table.input, got)
} else {