File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: d631f29d47578c46bfc01e1a8cc021b295866e0c
2
+ refs/heads/master: bd1c61548ec2ddde4d85dbef88eed6627b536d13
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ fn test_box() {
9
9
check ( * res == 100 ) ;
10
10
}
11
11
12
+ fn test_str ( ) {
13
+ auto res = if ( true ) { "happy" } else { "sad" } ;
14
+ check ( res == "happy" ) ;
15
+ }
16
+
12
17
fn main ( ) {
13
18
test_box ( ) ;
14
- }
19
+ test_str ( ) ;
20
+ }
Original file line number Diff line number Diff line change @@ -80,11 +80,6 @@ fn test_if_as_block_result() {
80
80
check ( res) ;
81
81
}
82
82
83
- fn test_str ( ) {
84
- auto res = if ( true ) { "happy" } else { "sad" } ;
85
- check ( res == "happy" ) ;
86
- }
87
-
88
83
fn main ( ) {
89
84
test_if ( ) ;
90
85
test_else ( ) ;
@@ -94,5 +89,4 @@ fn main() {
94
89
test_inferrence ( ) ;
95
90
test_if_as_if_condition ( ) ;
96
91
test_if_as_block_result ( ) ;
97
- test_str ( ) ;
98
92
}
You can’t perform that action at this time.
0 commit comments