From 652a8839f885b73fff57942a9db8b26e9cb5233b Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 22 Oct 2023 00:55:02 +0800 Subject: fixing issues from #152. --- spec/outputs/unicode/cond.lua | 17 +++++++++++++++++ spec/outputs/unicode/in_expression.lua | 31 +++---------------------------- 2 files changed, 20 insertions(+), 28 deletions(-) (limited to 'spec/outputs/unicode') diff --git a/spec/outputs/unicode/cond.lua b/spec/outputs/unicode/cond.lua index f972dea..9a4ccb9 100644 --- a/spec/outputs/unicode/cond.lua +++ b/spec/outputs/unicode/cond.lua @@ -351,4 +351,21 @@ do _u53d8_u91cfv = 2 end end +do + local _u94fe_u5f0f_u6bd4_u8f83 = 1 < 2 and 2 <= 2 and 2 < 3 and 3 == 3 and 3 > 2 and 2 >= 1 and 1 == 1 and 1 < 3 and 3 ~= 5 + local _u503c + _u503c = function(_u8f93_u5165) + _u6253_u5370(_u8f93_u5165) + return _u8f93_u5165 + end + local _u6c42_u503c + do + local _cond_0 = _u503c(2) + _u6c42_u503c = _u503c(1) < _cond_0 and _cond_0 <= _u503c(3) + end + do + local _cond_0 = _u503c(2) + _u6c42_u503c = _u503c(1) > _cond_0 and _cond_0 <= _u503c(3) + end +end return nil diff --git a/spec/outputs/unicode/in_expression.lua b/spec/outputs/unicode/in_expression.lua index 62aad05..7c584f3 100644 --- a/spec/outputs/unicode/in_expression.lua +++ b/spec/outputs/unicode/in_expression.lua @@ -2,42 +2,17 @@ _u51fd_u6570((function() local _val_0 = -_u53d8_u91cfa ^ 2 return 1 == _val_0 or 2 == _val_0 or 3 == _val_0 end)()) -local _u53d8_u91cfa, _u53d8_u91cfb = (function(...) - local _val_0 = _u51fd_u6570x(...) - return not (1 <= _val_0 and _val_0 <= 3) -end)(...), 2 -local _u53d8_u91cfd -do - local _val_0 = (_u5bf9_u8c61["字段x"]["字段y"](...)) - _u53d8_u91cfd = not (1 <= _val_0 and _val_0 <= 3) -end local _u5728_u7684 do local _val_0 = "东" _u5728_u7684 = "东" == _val_0 or "西" == _val_0 end -if (1 == _u53d8_u91cfa) and (2 == _u53d8_u91cfb or 3 == _u53d8_u91cfb or 4 == _u53d8_u91cfb) or (function() - local _val_0 = _u53d8_u91cfc - return 1 <= _val_0 and _val_0 <= 10 +if (1 == _u53d8_u91cfa) and (function() + local _val_0 = _u53d8_u91cfb + return 2 == _val_0 or 3 == _val_0 or 4 == _val_0 end)() then _u6253_u5370(_u53d8_u91cfa, _u53d8_u91cfb, _u53d8_u91cfc) end -do - local _exp_0 = _u503c - if 1 == _exp_0 or 2 == _exp_0 or 3 == _exp_0 then - _u6253_u5370("1, 2, 3") - elseif not (0 < _exp_0 and _exp_0 <= 100) then - _u6253_u5370("非 (0 < 值 <= 100)") - elseif (200 <= _exp_0 and _exp_0 < 300) then - _u6253_u5370("200 <= 值 < 300)") - elseif not (333 == _exp_0 or 444 == _exp_0 or 555 == _exp_0) then - _u6253_u5370("非 333, 444 或 555") - end -end -do - local _val_0 = _u53d8_u91cfy - return not (_u5f00_u59cb < _val_0 and _val_0 < _u7ed3_u675f) -end do local _u5b58_u5728 do -- cgit v1.2.3-55-g6feb