Selftester.expect

Yields and waits for a response from the other bot, then throws if the message doesn't match the passed string.

struct Selftester
void
expect
(
const string tokenedExpected
,
const string file = __FILE__
,
const size_t line = __LINE__
)

Parameters

tokenedExpected string

The expected string, which may include some replace-tokens.

file string

The file the test is in.

line size_t

The line the test is on.