@@ -52,15 +52,15 @@ struct Config {
5252 example_data_invalid : Vec < String > ,
5353 #[ serde( skip) ]
5454 update_snapshots : bool ,
55- #[ serde( default = "DEFAULT_TEST_NORMALISATION " ) ]
56- test_normalisation : bool ,
55+ #[ serde( default = "DEFAULT_TEST_NORMALIZATION " ) ]
56+ test_normalization : bool ,
5757}
5858
5959const DEFAULT_ALLOW_ERRORS : fn ( ) -> bool = || false ;
6060const DEFAULT_IGNORE : fn ( ) -> bool = || false ;
6161const DEFAULT_EXIT_CODE : fn ( ) -> i32 = || 0 ;
6262const DEFAULT_EXAMPLE_DATA : fn ( ) -> Vec < String > = Vec :: new;
63- const DEFAULT_TEST_NORMALISATION : fn ( ) -> bool = || false ;
63+ const DEFAULT_TEST_NORMALIZATION : fn ( ) -> bool = || false ;
6464
6565struct TestFailure {
6666 name : & ' static str ,
@@ -99,7 +99,7 @@ struct TestCommand<'a> {
9999enum Command < ' a > {
100100 ElabModule ,
101101 ElabTerm ,
102- Normalise ,
102+ Normalize ,
103103 ParseData ( & ' a Path , ExpectedOutcome ) ,
104104}
105105
@@ -112,15 +112,15 @@ enum ExpectedOutcome {
112112impl < ' a > Command < ' a > {
113113 fn snap_name ( & self ) -> & ' static str {
114114 match self {
115- Command :: Normalise => "norm" ,
115+ Command :: Normalize => "norm" ,
116116 Command :: ElabModule | Command :: ElabTerm | Command :: ParseData ( _, _) => "" ,
117117 }
118118 }
119119
120120 pub ( crate ) fn expected_outcome ( & self ) -> ExpectedOutcome {
121121 match self {
122122 Command :: ParseData ( _, outcome) => * outcome,
123- Command :: ElabModule | Command :: ElabTerm | Command :: Normalise => {
123+ Command :: ElabModule | Command :: ElabTerm | Command :: Normalize => {
124124 ExpectedOutcome :: Success
125125 }
126126 }
@@ -205,8 +205,8 @@ fn run_test(
205205 }
206206 }
207207
208- if config. test_normalisation {
209- let test_command = TestCommand :: new ( Command :: Normalise , & config, & input_file) ;
208+ if config. test_normalization {
209+ let test_command = TestCommand :: new ( Command :: Normalize , & config, & input_file) ;
210210 match test_command. run ( ) {
211211 Ok ( mut test_failures) => failures. append ( & mut test_failures) ,
212212 Err ( error) => {
@@ -410,7 +410,7 @@ impl<'a> From<Command<'a>> for process::Command {
410410 Command :: ElabTerm => {
411411 exe. args ( [ "elab" , "--term" ] ) ;
412412 }
413- Command :: Normalise => {
413+ Command :: Normalize => {
414414 exe. args ( [ "norm" , "--term" ] ) ;
415415 }
416416 Command :: ParseData ( format, _) => {
@@ -487,9 +487,9 @@ impl Snapshot {
487487 }
488488
489489 fn update ( & mut self ) -> Result < ( ) , io:: Error > {
490- let serialised = toml:: to_string_pretty ( & self . actual )
490+ let serialized = toml:: to_string_pretty ( & self . actual )
491491 . map_err ( |err| io:: Error :: new ( io:: ErrorKind :: Other , err) ) ?;
492- fs:: write ( & self . path , serialised ) ?;
492+ fs:: write ( & self . path , serialized ) ?;
493493 self . expected = Some ( self . actual . clone ( ) ) ;
494494 Ok ( ( ) )
495495 }
0 commit comments