Functions
normalize_statement_t.cc File Reference
#include "cetlib/sqlite/Exception.h"
#include "cetlib/sqlite/detail/normalize_statement.h"
#include <iostream>
#include <string>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 27 of file normalize_statement_t.cc.

27  {
28  // Test spaces around parentheses and commas
29  {
30  std::string const test{"CREATE TABLE TimeEvent ( Run integer, SubRun "
31  "integer,Event integer , Time numeric) "};
32  std::string const ref{"CREATE TABLE TimeEvent(Run integer,SubRun "
33  "integer,Event integer,Time numeric)"};
34  normalize_then_compare(test, ref);
35  }
36 }
37 catch (std::exception const& e) {
38  std::cerr << e.what() << '\n';
39  return 1;
40 }
41 catch (...) {
42  std::cerr << "Caught unknown exception.\n";
43  return 2;
44 }
std::string string
Definition: nybbler.cc:12
const double e
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33