Move str test from expr-if.rs to expr-if-box.rs in preperation for breaking that code path.
This commit is contained in:
parent
d631f29d47
commit
bd1c61548e
2 changed files with 7 additions and 7 deletions
|
@ -9,6 +9,12 @@ fn test_box() {
|
|||
check (*res == 100);
|
||||
}
|
||||
|
||||
fn test_str() {
|
||||
auto res = if (true) { "happy" } else { "sad" };
|
||||
check (res == "happy");
|
||||
}
|
||||
|
||||
fn main() {
|
||||
test_box();
|
||||
}
|
||||
test_str();
|
||||
}
|
||||
|
|
|
@ -80,11 +80,6 @@ fn test_if_as_block_result() {
|
|||
check (res);
|
||||
}
|
||||
|
||||
fn test_str() {
|
||||
auto res = if (true) { "happy" } else { "sad" };
|
||||
check (res == "happy");
|
||||
}
|
||||
|
||||
fn main() {
|
||||
test_if();
|
||||
test_else();
|
||||
|
@ -94,5 +89,4 @@ fn main() {
|
|||
test_inferrence();
|
||||
test_if_as_if_condition();
|
||||
test_if_as_block_result();
|
||||
test_str();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue