void () { // see http://developer.apple.com/library/mac/#documentation/Carbon/Reference/Gestalt_Manager/Reference/reference.html#//apple_ref/doc/uid/TP30000036-CH1g-F01632 // System Version Selectors assertEquals("1.2", SystemInfo.getMacOSMajorVersion("1.2.3")); assertEquals("20.30", SystemInfo.getMacOSMajorVersion("20.30.40")); assertEquals("1.0", SystemInfo.getMacOSMajorVersion("1")); assertEquals("1.2", SystemInfo.getMacOSMajorVersion("1.2")); assertEquals("1.2", SystemInfo.getMacOSMajorVersion("1.2.3.4")); }