testlib icon indicating copy to clipboard operation
testlib copied to clipboard

Wrong macro ensure

Open MikeMirzayanov opened this issue 2 years ago • 0 comments

map<pair<int, int>, int> weight;

ensure((weight[{u, v}] == 0));

->

check.cpp:41:39: error: macro "ensure" passed 2 arguments, but takes just 1 ensure(weight[{u, v}] == 0); ^ check.cpp: In function 'int main(int, char**)': check.cpp:41:13: error: 'ensure' was not declared in this scope ensure(weight[{u, v}] == 0); ^~~~~~ check.cpp:41:13: note: suggested alternative: 'ensuref' ensure(weight[{u, v}] == 0); ^~~~~~ ensuref

MikeMirzayanov avatar Jan 08 '24 10:01 MikeMirzayanov