From 4d27104e1cda924c42509177b63c52dfdff55dd4 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 20 Nov 2018 22:48:14 +0800 Subject: [PATCH] modify readme --- README.md | 21 ++++++++++++--------- README_zh.md | 21 ++++++++++++--------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 40d8ab7..97b0516 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,18 @@ We need install the cross-platform build utility [xmake](https://github.com/tboo $ xmake ``` +## Run tests + +We need install [luajit](http://luajit.org/) to run tests first. + +```console +$ luajit tests\dialog.lua +$ luajit tests\window.lua +$ luajit tests\desktop.lua +$ luajit tests\inputdialog.lua +$ luajit tests\mconfdialog.lua +``` + ## Examples #### Application @@ -126,15 +138,6 @@ end -## Run tests - -```console -$ luajit tests\dialog.lua -$ luajit tests\window.lua -$ luajit tests\desktop.lua -$ luajit tests\inputdialog.lua -$ luajit tests\mconfdialog.lua -``` If you want to known more, please refer to: diff --git a/README_zh.md b/README_zh.md index e1277ff..532f365 100644 --- a/README_zh.md +++ b/README_zh.md @@ -45,6 +45,18 @@ LTUI是一个基于lua的跨平台字符终端UI界面库。 $ xmake ``` +## 运行测试 + +你需要先安装[luajit](http://luajit.org/)程序去加载运行测试程序: + +```console +$ luajit tests\dialog.lua +$ luajit tests\window.lua +$ luajit tests\desktop.lua +$ luajit tests\inputdialog.lua +$ luajit tests\mconfdialog.lua +``` + ## 例子 #### 应用程序 @@ -125,15 +137,6 @@ end -## 运行测试 - -```console -$ luajit tests\dialog.lua -$ luajit tests\window.lua -$ luajit tests\desktop.lua -$ luajit tests\inputdialog.lua -$ luajit tests\mconfdialog.lua -``` 如果你想了解更多,请参考: