From 8f1e8a9ddec6dd2d11a76082134bcb5417534fbf Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 28 Jun 2020 22:10:49 +0300 Subject: [PATCH] orm: cleanup test (put structs at top) --- vlib/orm/orm_test.v | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/vlib/orm/orm_test.v b/vlib/orm/orm_test.v index 44be15398c..fd5c0584c3 100644 --- a/vlib/orm/orm_test.v +++ b/vlib/orm/orm_test.v @@ -5,10 +5,20 @@ import sqlite struct Module { id int - user_id int - //name string - //url string - //nr_downloads int + name string + nr_downloads int +} + +struct User { + id int + age int + name string + is_customer bool + skipped_string string [skip] +} + +struct Foo { + age int } fn test_orm_sqlite() { @@ -189,20 +199,6 @@ fn test_orm_sqlite() { assert z[0].id == 3 } -struct User { - id int - age int - name string - is_customer bool - skipped_string string [skip] -} - -struct Foo { - age int -} - - - fn test_orm_pg() { /* dbname := os.getenv('VDB_NAME')