1
Fork 0

Move str test from expr-if.rs to expr-if-box.rs in preperation for breaking that code path.

This commit is contained in:
Brian Anderson 2011-03-31 21:18:23 -04:00
parent d631f29d47
commit bd1c61548e
2 changed files with 7 additions and 7 deletions

View file

@ -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();
}

View file

@ -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();
}