From f5c52065ed2afab73162c00f7f18e1349545f154 Mon Sep 17 00:00:00 2001 From: Pavan-Nambi Date: Sat, 13 Sep 2025 07:10:18 +0530 Subject: [PATCH] update sync-engine tests --- sync/engine/src/database_tape.rs | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/sync/engine/src/database_tape.rs b/sync/engine/src/database_tape.rs index b98cd0847..a0301fe6d 100644 --- a/sync/engine/src/database_tape.rs +++ b/sync/engine/src/database_tape.rs @@ -1088,11 +1088,24 @@ mod tests { assert_eq!( rows, vec![ + vec![ + turso_core::Value::Text(turso_core::types::Text::new("table")), + turso_core::Value::Text(turso_core::types::Text::new( + "sqlite_sequence" + )), + turso_core::Value::Text(turso_core::types::Text::new( + "sqlite_sequence" + )), + turso_core::Value::Integer(2), + turso_core::Value::Text(turso_core::types::Text::new( + "CREATE TABLE sqlite_sequence(name,seq)" + )), + ], vec![ turso_core::Value::Text(turso_core::types::Text::new("table")), turso_core::Value::Text(turso_core::types::Text::new("t")), turso_core::Value::Text(turso_core::types::Text::new("t")), - turso_core::Value::Integer(3), + turso_core::Value::Integer(4), turso_core::Value::Text(turso_core::types::Text::new( "CREATE TABLE t (x TEXT PRIMARY KEY, y)" )), @@ -1101,7 +1114,7 @@ mod tests { turso_core::Value::Text(turso_core::types::Text::new("table")), turso_core::Value::Text(turso_core::types::Text::new("q")), turso_core::Value::Text(turso_core::types::Text::new("q")), - turso_core::Value::Integer(5), + turso_core::Value::Integer(6), turso_core::Value::Text(turso_core::types::Text::new( "CREATE TABLE q (x TEXT PRIMARY KEY, y)" )), @@ -1176,7 +1189,7 @@ mod tests { turso_core::Value::Text(turso_core::types::Text::new("table")), turso_core::Value::Text(turso_core::types::Text::new("t")), turso_core::Value::Text(turso_core::types::Text::new("t")), - turso_core::Value::Integer(3), + turso_core::Value::Integer(4), turso_core::Value::Text(turso_core::types::Text::new( "CREATE TABLE t (x TEXT PRIMARY KEY, y)" )), @@ -1185,7 +1198,7 @@ mod tests { turso_core::Value::Text(turso_core::types::Text::new("index")), turso_core::Value::Text(turso_core::types::Text::new("t_idx")), turso_core::Value::Text(turso_core::types::Text::new("t")), - turso_core::Value::Integer(5), + turso_core::Value::Integer(6), turso_core::Value::Text(turso_core::types::Text::new( "CREATE INDEX t_idx ON t (y)" )), @@ -1260,7 +1273,7 @@ mod tests { turso_core::Value::Text(turso_core::types::Text::new("table")), turso_core::Value::Text(turso_core::types::Text::new("t")), turso_core::Value::Text(turso_core::types::Text::new("t")), - turso_core::Value::Integer(3), + turso_core::Value::Integer(4), turso_core::Value::Text(turso_core::types::Text::new( "CREATE TABLE t (x TEXT PRIMARY KEY, z)" )),