Mercurial > hg > orthanc
comparison UnitTestsSources/VersionsTests.cpp @ 1477:8b654bb91930
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 01 Aug 2015 21:43:24 +0200 |
parents | 0631b56c35eb |
children | 1011bd6ab00b |
comparison
equal
deleted
inserted
replaced
1476:ec7427df0a2a | 1477:8b654bb91930 |
---|---|
63 } | 63 } |
64 | 64 |
65 TEST(Versions, SQLite) | 65 TEST(Versions, SQLite) |
66 { | 66 { |
67 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion | 67 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion |
68 assert(sqlite3_libversion_number() == SQLITE_VERSION_NUMBER ); | 68 ASSERT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); |
69 assert(strcmp(sqlite3_sourceid(), SQLITE_SOURCE_ID) == 0); | 69 ASSERT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); |
70 assert(strcmp(sqlite3_libversion(), SQLITE_VERSION) == 0); | 70 ASSERT_STREQ(sqlite3_libversion(), SQLITE_VERSION); |
71 | 71 |
72 // Ensure that the SQLite version is above 3.7.0. | 72 // Ensure that the SQLite version is above 3.7.0. |
73 // "sqlite3_create_function_v2" is not defined in previous versions. | 73 // "sqlite3_create_function_v2" is not defined in previous versions. |
74 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); | 74 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); |
75 } | 75 } |