예제 #1
0
int main()
{
  saru::TestLogger logger;

  SARU_TEST( TestFixture::test_create_from_string, logger);
  SARU_TEST( TestFixture::test_create_from_string_bad, logger);
  SARU_TEST( TestFixture::test_create_from_string_big_and_complex, logger);
  SARU_TEST( TestFixture::test_create_from_string_mega, logger);

  logger.printSummary();

  return logger.allOK()?0:1;
}
int main()
{
  saru::TestLogger logger;

  SARU_TEST( TestFixture::round_trip_easy, logger);
  SARU_TEST( TestFixture::round_trip_hard, logger);
  SARU_TEST( TestFixture::round_trip_tab, logger);
  SARU_TEST( TestFixture::read_tab, logger);
  SARU_TEST( TestFixture::write_tab, logger);

  logger.printSummary();

  return logger.allOK()?0:1;
}
int main()
{
  saru::TestLogger logger;
  SARU_TEST( TestFixture::test_get, logger);
  logger.printSummary();

  return logger.allOK()?0:1;
}
예제 #4
0
int main()
{
  saru::TestLogger logger;
  SARU_TEST( TestFixture::test_string_buffer, logger);
  SARU_TEST( TestFixture::test_number_buffer, logger);
  SARU_TEST( TestFixture::test_empty_array_root, logger);
  SARU_TEST( TestFixture::test_empty_dict_root, logger);
  SARU_TEST( TestFixture::test_string_root, logger);
  SARU_TEST( TestFixture::test_number_root, logger);
  SARU_TEST( TestFixture::test_array_of_strings, logger);
  SARU_TEST( TestFixture::test_complex_dict, logger );
  SARU_TEST( TestFixture::complex2, logger );
  SARU_TEST( TestFixture::naked_literal_true, logger );
  SARU_TEST( TestFixture::naked_literal_false, logger );
  SARU_TEST( TestFixture::naked_literal_null, logger );
  SARU_TEST( TestFixture::test_unicode_1byte, logger );
  SARU_TEST( TestFixture::test_unicode_2byte, logger );
  SARU_TEST( TestFixture::test_unicode_3byte, logger );

  logger.printSummary();

  return logger.allOK()?0:1;
}