]> git.lizzy.rs Git - rust.git/commitdiff
Move str test from expr-if.rs to expr-if-box.rs in preperation for breaking that...
authorBrian Anderson <andersrb@gmail.com>
Fri, 1 Apr 2011 01:18:23 +0000 (21:18 -0400)
committerBrian Anderson <andersrb@gmail.com>
Fri, 1 Apr 2011 03:15:11 +0000 (23:15 -0400)
src/test/run-pass/expr-if-box.rs
src/test/run-pass/expr-if.rs

index 98503211fc2c3fd99b19ebba22e9dd869ba58770..30dce957235b28eb6df974b28c0ffe4255aecd1f 100644 (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();
-}
\ No newline at end of file
+  test_str();
+}
index e69a629f9d055a3859ca4c69fbfdeb0881688663..7c99f2ea82e1c284ddf3c9ea58e9be54ee09dd76 100644 (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();
 }