@@ -255,14 +255,14 @@ mod tests {
255
255
assert_eq ! (
256
256
pf_current. as_os_str( ) ,
257
257
pf_x86. as_os_str( ) ,
258
- "Ours is identical to 32-bit path."
258
+ "Our program files path is exactly identical to the 32-bit one." ,
259
259
) ;
260
260
for arch_suffix in [ " (x86)" , " (Arm)" ] {
261
261
let has_arch_suffix = ends_with_case_insensitive ( pf_current. as_os_str ( ) , arch_suffix)
262
- . expect ( "Assume the test systems key dirs are valid Unicode." ) ;
262
+ . expect ( "Assume the test system's important directories are valid Unicode." ) ;
263
263
assert ! (
264
264
!has_arch_suffix,
265
- "32-bit program files on 32-bit system has unadorned name."
265
+ "The 32-bit program files directory name on a 32-bit system mentions no architecture." ,
266
266
) ;
267
267
}
268
268
maybe_pf_64bit
@@ -273,19 +273,29 @@ mod tests {
273
273
assert_eq ! (
274
274
pf_current. as_os_str( ) ,
275
275
pf_x86. as_os_str( ) ,
276
- "Ours is identical to 32-bit path."
276
+ "Our program files path is exactly identical to the 32-bit one." ,
277
+ ) ;
278
+ let pf_64bit = maybe_pf_64bit
279
+ . as_ref ( )
280
+ . expect ( "The 64-bit program files directory exists." ) ;
281
+ assert_ne ! (
282
+ & pf_x86, pf_64bit,
283
+ "The 32-bit and 64-bit program files directories have different locations." ,
277
284
) ;
278
- let pf_64bit = maybe_pf_64bit. as_ref ( ) . expect ( "64-bit program files exists." ) ;
279
- assert_ne ! ( & pf_x86, pf_64bit, "32-bit and 64-bit program files directories differ." ) ;
280
285
}
281
286
PlatformArchitecture :: Is64on64 => {
282
- let pf_64bit = maybe_pf_64bit. as_ref ( ) . expect ( "64-bit program files exists." ) ;
287
+ let pf_64bit = maybe_pf_64bit
288
+ . as_ref ( )
289
+ . expect ( "The 64-bit program files directory exists." ) ;
283
290
assert_eq ! (
284
291
pf_current. as_os_str( ) ,
285
292
pf_64bit. as_os_str( ) ,
286
- "Ours is identical to 64-bit path."
293
+ "Our program files path is exactly identical to the 64-bit one." ,
294
+ ) ;
295
+ assert_ne ! (
296
+ & pf_x86, pf_64bit,
297
+ "The 32-bit and 64-bit program files directories have different locations." ,
287
298
) ;
288
- assert_ne ! ( & pf_x86, pf_64bit, "32-bit and 64-bit program files directories differ." ) ;
289
299
}
290
300
}
291
301
0 commit comments