File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
library/std/src/sys/platform_version/darwin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ fn compare_against_sw_vers() {
2828 let subminor: i32 = sw_vers. next ( ) . unwrap_or ( "0" ) . parse ( ) . unwrap ( ) ;
2929 assert_eq ! ( sw_vers. count( ) , 0 ) ;
3030
31+ // Test directly against the lookup
32+ assert_eq ! ( lookup_version( ) . get( ) , pack_os_version( major as _, minor as _, subminor as _) ) ;
33+
3134 // Current version is available
3235 assert_eq ! ( __isOSVersionAtLeast( major, minor, subminor) , 1 ) ;
3336
@@ -40,9 +43,6 @@ fn compare_against_sw_vers() {
4043 assert_eq ! ( __isOSVersionAtLeast( major, minor, subminor + 1 ) , 0 ) ;
4144 assert_eq ! ( __isOSVersionAtLeast( major, minor + 1 , subminor) , 0 ) ;
4245 assert_eq ! ( __isOSVersionAtLeast( major + 1 , minor, subminor) , 0 ) ;
43-
44- // Test directly against the lookup
45- assert_eq ! ( lookup_version( ) . get( ) , pack_os_version( major as _, minor as _, subminor as _) ) ;
4646}
4747
4848#[ test]
You can’t perform that action at this time.
0 commit comments