// test int main(){ int i; write(-1000); errorCount = 0; write(paraTest(10)); eight_queen(0); write(gCount); structTest(); breakContinueTest(); for(i = 0; i < 25; ++i){ write(callTest(i)); } for(i = 0; i < 25; ++i){ write(feb2(i)); } logicArithmaticTest(); arrayTest(); scopeVariableTest(); arithmaticTest(); loopTest(); relopTest(); dfs(0,0); write(errorCount); write(-2000); return 0; }
/** *************************************************************************************************** * @run The MojSchema provides a mechanism to validate the JSON data objects. Schema Test include the following: 1.typeTest 2.disallowTest 3.propertiesTest 4.ItemsTest 5.requiresTest 6.minmaxTest 7.arrayTest 8.stringTest 9.enumTest 10.divisibleTest * @param : None * @retval : MojErr *************************************************************************************************** **/ MojErr MojSchemaTest::run() { MojErr err = typeTest(); MojTestErrCheck(err); err = disallowTest(); MojTestErrCheck(err); err = propertiesTest(); MojTestErrCheck(err); err = itemsTest(); MojTestErrCheck(err); err = requiresTest(); MojTestErrCheck(err); err = minmaxTest(); MojTestErrCheck(err); err = arrayTest(); MojTestErrCheck(err); err = stringTest(); MojTestErrCheck(err); err = enumTest(); MojTestErrCheck(err); err = divisibleTest(); MojTestErrCheck(err); return MojErrNone; }