versadac  1
versadac - Scalable Recorder Firmware
Public Member Functions | List of all members
testJSONValidator__isValidNumber Class Reference

Public Member Functions

 testJSONValidator__isValidNumber (const std::string &name)
 
void testPositive (void)
 
void testNegative (void)
 
void testPositive_ScientificNotation (void)
 
void testNegative_ScientificNotation (void)
 
void testPositive_SignedScientificNotation (void)
 
void testNegative_SignedScientificNotation (void)
 
void testStrict (void)
 
void testNotStrict (void)
 
void testNotNumbers (void)
 
void testSuddenEnd (void)
 
- Public Member Functions inherited from BaseTest
 BaseTest (const std::string &name)
 
virtual void setUp (const std::string &methodName)
 
virtual void tearDown (void)
 

Additional Inherited Members

- Protected Attributes inherited from BaseTest
const std::string _name
 
libjson_CodeCoverage * coverage
 

Member Function Documentation

void testJSONValidator__isValidNumber::testNegative ( void  )

Tests regular negative numbers in various forms

void testJSONValidator__isValidNumber::testNegative_ScientificNotation ( void  )

Tests negative numbers with regular scientifc notation

void testJSONValidator__isValidNumber::testNegative_SignedScientificNotation ( void  )

Tests negative numbers with scientific notiation that has a sign in it

void testJSONValidator__isValidNumber::testNotNumbers ( void  )

This tests values that aren't numbers at all, to make sure they are flagged as not valid

void testJSONValidator__isValidNumber::testNotStrict ( void  )

Tests that the extra common notations that libjson supports all test out as valid

void testJSONValidator__isValidNumber::testPositive ( void  )

Tests regular positive numbers in various forms

void testJSONValidator__isValidNumber::testPositive_ScientificNotation ( void  )

Tests positive numbers with regular scientific notation

void testJSONValidator__isValidNumber::testPositive_SignedScientificNotation ( void  )

Tests positive numbers with scientific notiation that has a sign in it

void testJSONValidator__isValidNumber::testStrict ( void  )

Tests that in strict mode, libjson isn't relaxed about what is and isn't a valid number. libjson by default accepts a few extra common notations.

void testJSONValidator__isValidNumber::testSuddenEnd ( void  )

This test checks that for all above mentioned valids, if the string cuts off suddenly, it recovers


The documentation for this class was generated from the following files: