aboutsummaryrefslogtreecommitdiff
path: root/evolution
diff options
context:
space:
mode:
Diffstat (limited to 'evolution')
-rw-r--r--evolution/embedded/driver.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/evolution/embedded/driver.cxx b/evolution/embedded/driver.cxx
index 60c8c18..a1ac0e4 100644
--- a/evolution/embedded/driver.cxx
+++ b/evolution/embedded/driver.cxx
@@ -79,6 +79,14 @@ main (int argc, char* argv[])
using namespace v2;
using namespace v3;
+ // Check version information correctness.
+ //
+ assert (schema_catalog::current_version (*db) == 3);
+ assert (schema_catalog::next_version (*db, 0) == 3);
+ assert (schema_catalog::next_version (*db, 1) == 2);
+ assert (schema_catalog::next_version (*db) == 3);
+ assert (schema_catalog::next_version (*db, 3) == 4);
+
{
assert (db->schema_version () == 2 && !db->schema_migration ());