Skip to content

Commit 5d9943a

Browse files
committed
Add debugging
1 parent 368c456 commit 5d9943a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

test/Jamfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ run-fail benchmarks.cpp ;
4545
compile-fail concepts_test.cpp ;
4646
run github_issue_426.cpp ;
4747
run github_issue_448.cpp ;
48-
run github_issue_519.cpp ;
48+
run-fail github_issue_519.cpp ;
4949
run ibm_abs.cpp ;
5050
run ibm_add.cpp ;
5151
run link_1.cpp link_2.cpp link_3.cpp ;

test/github_issue_519.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,17 @@ auto main() -> int
3030

3131
strm << std::setprecision(std::numeric_limits<local_decimal_type>::digits10) << x;
3232

33-
std::cout << strm.str() << std::endl;
33+
std::cout << "Expected: 4.56" << std::endl;
34+
std::cout << " Got: " << strm.str() << std::endl;
3435
}
3536

3637
{
3738
std::stringstream strm;
3839

3940
strm << std::setprecision(std::numeric_limits<local_decimal_type>::digits10) << tg;
4041

41-
std::cout << strm.str() << std::endl;
42+
std::cout << "Expected: 12.64819265438397922113369900828314" << std::endl;
43+
std::cout << " Got: " << strm.str() << std::endl;
4244
}
4345

4446
return 1;

test/test_tgamma.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ namespace local
6363
const auto delta = fabs(1 - (a / b));
6464

6565
result_is_ok = (delta < tol);
66+
67+
if (!result_is_ok)
68+
{
69+
std::cerr << std::setprecision(std::numeric_limits<NumericType>::digits10) << "a: " << a
70+
<< "\nb: " << b
71+
<< "\ndelta: " << delta
72+
<< "\ntol: " << tol << std::endl;
73+
}
6674
}
6775

6876
return result_is_ok;

0 commit comments

Comments
 (0)