X-Git-Url: https://ginac.de/ginac.git/static/gitweb.css/ginac.git?a=blobdiff_plain;f=check%2Fexam_numeric.cpp;h=049921b80d3634388d45ad676307c51c0f5be6f4;hb=38129d5d3880156f6f217f94855553bf4549a960;hp=e44b995a774ed112a97622ecb12370ccb012ed39;hpb=67edef78ce992a8f6ad704bfac228b8dec6eacd2;p=ginac.git diff --git a/check/exam_numeric.cpp b/check/exam_numeric.cpp index e44b995a..049921b8 100644 --- a/check/exam_numeric.cpp +++ b/check/exam_numeric.cpp @@ -1,10 +1,10 @@ /** @file exam_numeric.cpp * - * These exams creates some numbers and check the result of several boolean + * These exams creates some numbers and check the result of several Boolean * tests on these numbers like is_integer() etc... */ /* - * GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2021 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,6 +68,11 @@ static unsigned exam_numeric1() << " erroneously not recognized as complex rational" << endl; ++result; } + if (test_crat.info(info_flags::nonnegative)) { + clog << test_crat + << " erroneously recognized as non-negative number" << endl; + ++result; + } int i = numeric(1984).to_int(); if (i-1984) { @@ -361,7 +366,7 @@ static unsigned exam_numeric6() // Read back expression from string string x_as_string = s.str(); - ex x_again(x_as_string, lst(sym)); + ex x_again(x_as_string, lst{sym}); // They should be equal if (!x_again.is_equal(x)) {