Refine Json unit test

This commit is contained in:
Vinnie Falco
2013-10-02 12:06:30 -07:00
parent 6962bdb325
commit 1a95dfb300

View File

@@ -23,17 +23,6 @@ using namespace beast;
class JsonCppTests : public UnitTest
{
public:
void testSprintf ()
{
beginTestCase ("sprintf");
char buffer [256];
double const value (1.0000000000000001e+300);
sprintf (buffer, "%#f", value);
}
void testBadJson ()
{
beginTestCase ("bad input");
@@ -45,19 +34,12 @@ public:
Json::Value j;
Json::Reader r;
if (! r.parse (s, j))
{
pass ();
}
else
{
fail ();
}
r.parse (s, j);
pass ();
}
void runTest ()
{
testSprintf();
testBadJson ();
}