aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/io
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/io')
-rw-r--r--crates/shirabe/tests/io/console_io_test.rs5
-rw-r--r--crates/shirabe/tests/io/null_io_test.rs5
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/shirabe/tests/io/console_io_test.rs b/crates/shirabe/tests/io/console_io_test.rs
index a924f0c7..03307e51 100644
--- a/crates/shirabe/tests/io/console_io_test.rs
+++ b/crates/shirabe/tests/io/console_io_test.rs
@@ -236,7 +236,10 @@ fn test_select() {
let (console_io, _output) = make_console_io_with_answer("item2\n");
let result = console_io.select(
"Select item".to_string(),
- vec!["item1".to_string(), "item2".to_string()],
+ PhpMixed::List(vec![
+ PhpMixed::String("item1".to_string()),
+ PhpMixed::String("item2".to_string()),
+ ]),
PhpMixed::String("item1".to_string()),
PhpMixed::Bool(false),
"Error message".to_string(),
diff --git a/crates/shirabe/tests/io/null_io_test.rs b/crates/shirabe/tests/io/null_io_test.rs
index 75678b90..1627e91f 100644
--- a/crates/shirabe/tests/io/null_io_test.rs
+++ b/crates/shirabe/tests/io/null_io_test.rs
@@ -79,7 +79,10 @@ fn test_select() {
PhpMixed::String("1".to_string()),
io.select(
"question".to_string(),
- vec!["item1".to_string(), "item2".to_string()],
+ PhpMixed::List(vec![
+ PhpMixed::String("item1".to_string()),
+ PhpMixed::String("item2".to_string()),
+ ]),
PhpMixed::String("1".to_string()),
PhpMixed::Int(2),
"foo".to_string(),