nwangtw commented on issue #2847: Replace CHECK() with CHECK_*() so that when a 
check is failing, more …
URL: https://github.com/apache/incubator-heron/pull/2847#issuecomment-378702937
 
 
   Just did a test. Seems the checks work with << as expected.
   
   Run 1:
   int a = 1, b = 2;
   CHECK(a > b) << "Failing check 'a > b'";
   
   The output is:
   Check failed: a > b Failing check 'a > b'
   
   Run 2:
   int a = 1, b = 2;
   CHECK_GT(a, b) << "Failing check 'gt(a,b)'";
   
   The output is:
   Check failed: a > b (1 vs. 2) Failing check 'gt(a, b)'
   
   Let me update the checks with << operator then.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to