From e0e6fb0e09bef3061c755a8d9e348b85975a4b27 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 28 Apr 2024 14:52:15 -0400 Subject: [PATCH] xo-ratio: + hapless test for ratio.to_str<> --- utest/ratio.test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utest/ratio.test.cpp b/utest/ratio.test.cpp index 27d55f65..80488344 100644 --- a/utest/ratio.test.cpp +++ b/utest/ratio.test.cpp @@ -208,6 +208,12 @@ namespace xo { auto ratio1_str = ratio1.template to_str<20>(); log && log(XTAG(ratio1_str)); + + REQUIRE(!ratio1_str.empty()); + + /* TODO: more tests here -- + * if we write parser, verify can recover original ratio + */ } }