File tree 2 files changed +20
-1
lines changed
src/tools/compiletest/src
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ impl fmt::Display for Debugger {
174
174
/// Configuration for compiletest
175
175
#[ derive( Debug , Clone ) ]
176
176
pub struct Config {
177
- /// `true` to to overwrite stderr/stdout files instead of complaining about changes in output.
177
+ /// `true` to overwrite stderr/stdout files instead of complaining about changes in output.
178
178
pub bless : bool ,
179
179
180
180
/// The library paths required for running the compiler.
Original file line number Diff line number Diff line change @@ -30,3 +30,22 @@ fn test_matches_os() {
30
30
assert ! ( matches_os( "nvptx64-nvidia-cuda" , "cuda" ) ) ;
31
31
assert ! ( matches_os( "x86_64-fortanix-unknown-sgx" , "sgx" ) ) ;
32
32
}
33
+
34
+ #[ test]
35
+ fn is_big_endian_test ( ) {
36
+ assert ! ( !is_big_endian( "no" ) ) ;
37
+ assert ! ( is_big_endian( "sparc-unknown-unknown" ) ) ;
38
+ }
39
+
40
+ #[ test]
41
+ fn path_buf_with_extra_extension_test ( ) {
42
+ assert_eq ! (
43
+ PathBuf :: from( "foo.rs.stderr" ) ,
44
+ PathBuf :: from( "foo.rs" ) . with_extra_extension( "stderr" )
45
+ ) ;
46
+ assert_eq ! (
47
+ PathBuf :: from( "foo.rs.stderr" ) ,
48
+ PathBuf :: from( "foo.rs" ) . with_extra_extension( ".stderr" )
49
+ ) ;
50
+ assert_eq ! ( PathBuf :: from( "foo.rs" ) , PathBuf :: from( "foo.rs" ) . with_extra_extension( "" ) ) ;
51
+ }
You can’t perform that action at this time.
0 commit comments