mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 09:04:19 +01:00
Add test case for insert default values
This commit is contained in:
@@ -264,6 +264,16 @@ def test_update_with_limit():
|
|||||||
limbo.quit()
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
|
def test_insert_default_values():
|
||||||
|
limbo = TestLimboShell(
|
||||||
|
"CREATE TABLE t (a integer default(42),b integer default (43),c integer default(44));"
|
||||||
|
)
|
||||||
|
for _ in range(1, 10):
|
||||||
|
limbo.execute_dot("INSERT INTO t DEFAULT VALUES;")
|
||||||
|
limbo.run_test("insert-default-values", "SELECT * FROM t;", "42|43|44\n" * 9)
|
||||||
|
limbo.quit()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print("Running all Limbo CLI tests...")
|
print("Running all Limbo CLI tests...")
|
||||||
test_basic_queries()
|
test_basic_queries()
|
||||||
|
|||||||
Reference in New Issue
Block a user