@@ -139,13 +139,29 @@ create_linter_map_phrase!(MutePoint, ExactPhrase::from_phrase("mute point"),
139
139
"Did you mean `moot point`?" ,
140
140
"Ensures `moot point` is used instead of `mute point`, as `moot` means debatable or irrelevant." ) ;
141
141
142
+ create_linter_map_phrase ! (
143
+ OperativeSystem ,
144
+ ExactPhrase :: from_phrase( "operative system" ) ,
145
+ "operating system" ,
146
+ "Did you mean `operating system`?" ,
147
+ "Ensures `operating system` is used correctly instead of `operative system`."
148
+ ) ;
149
+ create_linter_map_phrase ! (
150
+ OperativeSystems ,
151
+ ExactPhrase :: from_phrase( "operative systems" ) ,
152
+ "operating systems" ,
153
+ "Did you mean `operating systems`?" ,
154
+ "Ensures `operating systems` is used correctly instead of `operative systems`."
155
+ ) ;
156
+
142
157
#[ cfg( test) ]
143
158
mod tests {
144
159
use crate :: linting:: tests:: { assert_lint_count, assert_suggestion_result} ;
145
160
146
161
use super :: {
147
162
BadRap , BatedBreath , ChangeTack , EnMasse , HungerPang , LetAlone , LoAndBehold , OfCourse ,
148
- SneakingSuspicion , SpecialAttention , SupposedTo , ThanOthers , TurnItOff ,
163
+ OperativeSystem , OperativeSystems , SneakingSuspicion , SpecialAttention , SupposedTo ,
164
+ ThanOthers , TurnItOff ,
149
165
} ;
150
166
151
167
#[ test]
@@ -262,4 +278,21 @@ mod tests {
262
278
0 ,
263
279
) ;
264
280
}
281
+
282
+ #[ test]
283
+ fn operative_system ( ) {
284
+ assert_suggestion_result (
285
+ "COS is a operative system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source." ,
286
+ OperativeSystem :: default ( ) ,
287
+ "COS is a operating system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source." ,
288
+ ) ;
289
+ }
290
+ #[ test]
291
+ fn operative_systems ( ) {
292
+ assert_suggestion_result (
293
+ "My dotfiles for my operative systems and other configurations." ,
294
+ OperativeSystems :: default ( ) ,
295
+ "My dotfiles for my operating systems and other configurations." ,
296
+ ) ;
297
+ }
265
298
}
0 commit comments