Skip to content

Commit bc244b0

Browse files
committed
[choice] テスト追加
1 parent 7f84179 commit bc244b0

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

test/data/choice.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,25 @@ rands = [
132132
{ sides = 2, value = 1 },
133133
]
134134

135+
[[ test ]]
136+
game_system = "DiceBot"
137+
input = "choice2(a,b,c) かっこ区切り"
138+
output = "(choice2(a,b,c)) > a, b"
139+
rands = [
140+
{ sides = 3, value = 1 },
141+
{ sides = 2, value = 1 },
142+
]
143+
144+
# 空白区切り
145+
[[ test ]]
146+
game_system = "DiceBot"
147+
input = "choice2 a b c"
148+
output = "(choice2 a b c) > a b"
149+
rands = [
150+
{ sides = 3, value = 1 },
151+
{ sides = 2, value = 1 },
152+
]
153+
135154
[[ test ]]
136155
game_system = "DiceBot"
137156
input = "choice3[A(), B(), C()] 全部取る"

0 commit comments

Comments
 (0)