diff options
author | Thomas Winget <tewinget@gmail.com> | 2014-10-31 17:36:26 -0400 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-01-04 19:31:20 -0800 |
commit | 767aac274b13b9d3b7e73375c44f1a5fec563a00 (patch) | |
tree | 58174ce2e21ca6deac5a3ddffcf7744829d00adc /external/glim/test_sqlite.cc | |
parent | Store output pubkeys separately, bug fixes (diff) | |
download | monero-767aac274b13b9d3b7e73375c44f1a5fec563a00.tar.xz |
Remove unused dependency
Diffstat (limited to '')
-rw-r--r-- | external/glim/test_sqlite.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/external/glim/test_sqlite.cc b/external/glim/test_sqlite.cc deleted file mode 100644 index 726244875..000000000 --- a/external/glim/test_sqlite.cc +++ /dev/null @@ -1,18 +0,0 @@ - -#include "sqlite.hpp" -#define S(cstr) (std::pair<char const*, int> (cstr, sizeof (cstr) - 1)) -#include <assert.h> -#include <iostream> -using namespace glim; - -int main () { - std::cout << "Testing sqlite.hpp ... " << std::flush; - Sqlite sqlite (":memory:"); - SqliteSession sqs (&sqlite); - assert (sqs.query ("CREATE TABLE test (t TEXT, i INTEGER)") .ustep() == 0); - assert (sqs.query ("INSERT INTO test VALUES (?, ?)") .bind (1, S("foo")) .bind (2, 27) .ustep() == 1); - assert (sqs.query ("SELECT t FROM test") .qstep() .stringAt (1) == "foo"); - assert (sqs.query ("SELECT i FROM test") .qstep() .intAt (1) == 27); - std::cout << "pass." << std::endl; - return 0; -} |