mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
c3fd8fc9a5
* 修cost_data * 修cardMark,仍需自动清理措施 * 修锁视技( **重要!使用牌之前会根据锁视技重新决定使用的卡牌!!**)
23 lines
526 B
Lua
23 lines
526 B
Lua
local exp1 = Exppattern:Parse("slash,jink")
|
|
local exp2 = Exppattern:Parse("peach,jink")
|
|
local exp3 = Exppattern:Parse(".|.|.|.|.|trick")
|
|
local exp4 = Exppattern:Parse("peach,ex_nihilo")
|
|
|
|
local slash = Fk:cloneCard("slash")
|
|
|
|
TestExppattern = {
|
|
testMatchExp = function()
|
|
assert(exp1:matchExp(exp2))
|
|
end,
|
|
|
|
testEasyMatchCard = function()
|
|
assert(exp1:match(slash))
|
|
assert(not exp2:match(slash))
|
|
end,
|
|
|
|
testMatchWithType = function()
|
|
assert(not exp3:matchExp(exp1))
|
|
assert(exp3:matchExp(exp4))
|
|
end,
|
|
}
|