add test for new errorurl() utility function

This commit is contained in:
Axel Kohlmeyer
2022-04-26 09:29:57 -04:00
parent 950b175fcd
commit ba02d90bf1

View File

@ -746,6 +746,12 @@ TEST(Utils, boundsbig_case3)
ASSERT_EQ(nhi, -1);
}
TEST(Utils, errorurl)
{
auto errmesg = utils::errorurl(10);
ASSERT_THAT(errmesg, Eq("\nFor more information see https://docs.lammps.org/err0010"));
}
TEST(Utils, getsyserror)
{
#if defined(__linux__)