This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 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 {
174174/// Configuration for compiletest
175175#[ derive( Debug , Clone ) ]
176176pub 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.
178178 pub bless : bool ,
179179
180180 /// 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() {
3030 assert ! ( matches_os( "nvptx64-nvidia-cuda" , "cuda" ) ) ;
3131 assert ! ( matches_os( "x86_64-fortanix-unknown-sgx" , "sgx" ) ) ;
3232}
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