From 3a9849470bdf479539e7fce64ba7c40b5576cabf Mon Sep 17 00:00:00 2001 From: shahrul Date: Sat, 12 Oct 2024 19:46:15 +0800 Subject: [PATCH] restore test --- test/test_ast.lua | 62 +++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/test/test_ast.lua b/test/test_ast.lua index 3132ef2..b61a78e 100644 --- a/test/test_ast.lua +++ b/test/test_ast.lua @@ -20,63 +20,63 @@ package.path = package.path .. ";" .. getDir() .. "/?.lua" local h = require('luax') --- local div = require('test.1_div') +local div = require('test.1_div') --- h(div) +h(div) --- local node_value = require('test.2_node_value') +local node_value = require('test.2_node_value') --- h(node_value) +h(node_value) --- local content = require('test.4_content') +local content = require('test.4_content') --- h(content) +h(content) --- local element = require('test.5_element') +local element = require('test.5_element') --- h(element) +h(element) --- local foo = require('test.6_foo') +local foo = require('test.6_foo') --- h(foo) +h(foo) --- local input_with_con = require('test.7_input_with_con') +local input_with_con = require('test.7_input_with_con') --- h(input_with_con) +h(input_with_con) --- local module = require('test.8_input') +local module = require('test.8_input') --- h(module.EditTodo({ editing = true, title = "task", id = "1" })) +h(module.EditTodo({ editing = true, title = "task", id = "1" })) --- local input2 = require('test.9_input2') +local input2 = require('test.9_input2') --- h(input2) +h(input2) --- local linebreak = require('test.10_line_break') +local linebreak = require('test.10_line_break') --- h(linebreak) +h(linebreak) --- local props = require('test.11_props') +local props = require('test.11_props') --- h(props) +h(props) --- local test = require('test.12_test') +local test = require('test.12_test') --- h(test) +h(test) --- local varin = require('test.13_varin') +local varin = require('test.13_varin') --- h(varin) +h(varin) --- local page = require('test.14_page') +local page = require('test.14_page') --- print(h(page.Page("todos"))) +print(h(page.Page("todos"))) --- local title = require('test.15_title') +local title = require('test.15_title') --- print(h(title)) +print(h(title)) --- local p = require('test.16_p') +local p = require('test.16_p') -- print(h(p)) @@ -89,7 +89,7 @@ local filters = { local table = require('test.17_table') print(h(table.Filter(filters))) --- local f = require('test.18_filter') --- print(h(f(filters))) +local f = require('test.18_filter') +print(h(f(filters)))