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() {
28
28
let subminor: i32 = sw_vers. next ( ) . unwrap_or ( "0" ) . parse ( ) . unwrap ( ) ;
29
29
assert_eq ! ( sw_vers. count( ) , 0 ) ;
30
30
31
+ // Test directly against the lookup
32
+ assert_eq ! ( lookup_version( ) . get( ) , pack_os_version( major as _, minor as _, subminor as _) ) ;
33
+
31
34
// Current version is available
32
35
assert_eq ! ( __isOSVersionAtLeast( major, minor, subminor) , 1 ) ;
33
36
@@ -40,9 +43,6 @@ fn compare_against_sw_vers() {
40
43
assert_eq ! ( __isOSVersionAtLeast( major, minor, subminor + 1 ) , 0 ) ;
41
44
assert_eq ! ( __isOSVersionAtLeast( major, minor + 1 , subminor) , 0 ) ;
42
45
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 _) ) ;
46
46
}
47
47
48
48
#[ test]
You can’t perform that action at this time.
0 commit comments