Selftester.expectHead

Yields and waits for a response from the other bot, then throws if the message head does not match that of the passed string.

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

Parameters

tokenedExpected string

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

file string

The file the test is in.

line size_t

The line the test is on.