https://svn.lrde.epita.fr/svn/oln/trunk/metalic
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
* tests/ret.cc (main): Don't write test results on the standard
output.
ret.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: tests/ret.cc
--- tests/ret.cc (revision 435)
+++ tests/ret.cc (working copy)
@@ -1,3 +1,4 @@
+# include <cassert>
# include <iostream>
# include <mlc/ret.hh>
@@ -12,6 +13,6 @@
int main()
{
- std::cout << mlc_bool( mlc::ret_found_in_<yes> ) << std::endl;
- std::cout << mlc_bool( mlc::ret_found_in_<no> ) << std::endl;
+ assert(mlc_bool( mlc::ret_found_in_<yes> ) == true);
+ assert(mlc_bool( mlc::ret_found_in_<no> ) == false);
}