From a4bff71503fcf5d5a1bff8dc3ce209050afea86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 15 Mar 2019 14:07:14 +0800 Subject: =?UTF-8?q?=5FG=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/definition/set.lua | 5 +++++ server/test/diagnostics/init.lua | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'server/test') diff --git a/server/test/definition/set.lua b/server/test/definition/set.lua index 82dc4828..eb899fc9 100644 --- a/server/test/definition/set.lua +++ b/server/test/definition/set.lua @@ -38,3 +38,8 @@ else end print() ]] + +TEST [[ +_G. = 1 +print() +]] diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 8c2f4dba..4af8f975 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -119,12 +119,12 @@ local _ENV ]] TEST [[ -print(_G) +print() :sub(1, 1) ]] TEST [[ -print(_G) +print() ('string') ]] -- cgit v1.2.3