Skip to content

Commit 5f7e94d

Browse files
committed
more cov
1 parent f7d0176 commit 5f7e94d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/wizard.jl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,25 @@ end
147147
end
148148
@test state.name == "cuba"
149149
@test state.version == v"1.2.3"
150+
151+
state = Wizard.WizardState()
152+
with_wizard_output(state, Wizard.step1) do ins, outs
153+
call_response(ins, outs, "Make a platform selection", "\r")
154+
end
155+
@test state.platforms == supported_platforms()
156+
157+
state = Wizard.WizardState()
158+
with_wizard_output(state, Wizard.step1) do ins, outs
159+
call_response(ins, outs, "Make a platform selection", "\e[B\r")
160+
call_response(ins, outs, "Select operating systems", "\e[B\rd"; newline = false)
161+
end
162+
163+
state = Wizard.WizardState()
164+
with_wizard_output(state, Wizard.step1) do ins, outs
165+
call_response(ins, outs, "Make a platform selection", "\e[B\e[B\r")
166+
call_response(ins, outs, "Select platforms", "\e[B\rd"; newline = false)
167+
end
168+
@test length(state.platforms) == 1
150169
end
151170

152171
# Set the state up

0 commit comments

Comments
 (0)