<div>Heres the code. <br>if ((2.0/3.0) != MyAnn::getCondProb(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps));<br>&nbsp;&nbsp;&nbsp;&nbsp; BOOST_ERROR(&quot;getCondProb&quot;);<br>&nbsp; if((1.0/2.0) != MyAnn::getProb(std::string(&quot;+cancer&quot;), vps, 1));
<br>&nbsp;&nbsp;&nbsp;&nbsp; BOOST_ERROR(&quot;getProb&quot;);<br>&nbsp; if((3.0/4.0) != MyAnn::getProb(std::string(&quot;+test&quot;), vps, 2));<br>&nbsp;&nbsp;&nbsp;&nbsp; BOOST_ERROR(&quot;getProb&quot;);<br>&nbsp; if((1.0/2.0) != MyAnn::getProbAND(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps));
<br>&nbsp;&nbsp;&nbsp;&nbsp; BOOST_ERROR(&quot;getCondProbAND&quot;);<br>&nbsp; if((3.0/4.0) != MyAnn::getProbOR(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps));<br>&nbsp;&nbsp;&nbsp;&nbsp; BOOST_ERROR(&quot;getCondProbOR&quot;);<br>&nbsp; BOOST_CHECK((
2.0/3.0) == MyAnn::getCondProb(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps));<br>&nbsp; BOOST_CHECK((1.0/2.0) == MyAnn::getProb(std::string(&quot;+cancer&quot;), vps, 1));<br>&nbsp; BOOST_CHECK((3.0/4.0) == MyAnn::getProb(std::string(&quot;+test&quot;), vps, 2));
<br>&nbsp; BOOST_CHECK((1.0/2.0) == MyAnn::getProbAND(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps));<br>&nbsp; BOOST_CHECK((3.0/4.0) == MyAnn::getProbOR(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps));
<br><br><br>Heres the result: <br>C:\CPW\cs_classes\cs461\c++\BayesianTest.cpp(144): getCondProb in function: &#39;int<br>&nbsp;test_main(int, char**)&#39;<br>C:\CPW\cs_classes\cs461\c++\BayesianTest.cpp(146): getProb in function: &#39;int tes
<br>t_main(int, char**)&#39;<br>C:\CPW\cs_classes\cs461\c++\BayesianTest.cpp(148): getProb in function: &#39;int tes<br>t_main(int, char**)&#39;<br>C:\CPW\cs_classes\cs461\c++\BayesianTest.cpp(150): getCondProbAND in function: &#39;
<br>int test_main(int, char**)&#39;<br>C:\CPW\cs_classes\cs461\c++\BayesianTest.cpp(152): getCondProbOR in function: &#39;i<br>nt test_main(int, char**)&#39;<br>C:\CPW\cs_classes\cs461\c++\BayesianTest.cpp(156): test (1.0
/2.0) == MyAnn::getP<br>robAND(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps) failed in function: &#39;i<br>nt test_main(int, char**)&#39;<br>C:\CPW\cs_classes\cs461\c++\BayesianTest.cpp(157): test (
3.0/4.0) == MyAnn::getP<br>robOR(std::string(&quot;+cancer&quot;), std::string(&quot;+test&quot;), vps) failed in function: &#39;in<br>t test_main(int, char**)&#39;<br>C:/Boost/include/boost_1_34/boost/test/minimal.hpp(122): exception &quot;std::excepti
<br>on: boost::bad_format_string: format-string is ill-formed&quot; caught in function: &#39;<br>int main(int, char**)&#39;<br><br>I like to know what went wrong .. and how come its failing? its using boost 1.34</div>