From 4aa99e430305351e2e4350f0752bd0db4bad63da Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 21 Sep 2021 02:11:33 +0300 Subject: [PATCH] tmpl: add a
test --- vlib/v/gen/c/sql.v | 3 +++ vlib/v/tests/inout/file.html | 3 +++ vlib/v/tests/inout/tmpl_parse_html.out | 3 +++ 3 files changed, 9 insertions(+) diff --git a/vlib/v/gen/c/sql.v b/vlib/v/gen/c/sql.v index 001f68c07b..e19a6f1291 100644 --- a/vlib/v/gen/c/sql.v +++ b/vlib/v/gen/c/sql.v @@ -270,6 +270,9 @@ fn (mut g Gen) sql_insert(node ast.SqlStmtLine, expr string, table_name string, } fn (mut g Gen) sql_update(node ast.SqlStmtLine, expr string, table_name string) { + // println(table_name) + // println(expr) + // println(node) g.write('update(${expr}._object, _SLIT("$table_name"), (orm__QueryData){') g.write('.kinds = new_array_from_c_array(0, 0, sizeof(orm__OperationKind), NULL),') g.write('.is_and = new_array_from_c_array(0, 0, sizeof(bool), NULL),') diff --git a/vlib/v/tests/inout/file.html b/vlib/v/tests/inout/file.html index 811ef89b8b..d6be077e69 100644 --- a/vlib/v/tests/inout/file.html +++ b/vlib/v/tests/inout/file.html @@ -34,6 +34,9 @@ const classes = `header ${ isLargeScreen() ? '' :

@{title}

@title

+.hello { + hi
+} @website.link Email
diff --git a/vlib/v/tests/inout/tmpl_parse_html.out b/vlib/v/tests/inout/tmpl_parse_html.out index 11dd79006d..df98a690f4 100644 --- a/vlib/v/tests/inout/tmpl_parse_html.out +++ b/vlib/v/tests/inout/tmpl_parse_html.out @@ -34,6 +34,9 @@ const classes = `header ${ isLargeScreen() ? '' :

TEST

TEST

+
+ hi
+
example.com Email