@@ -7,3 +7,53 @@ import CenumsWithOptionsOmit
77// CHECK-NEXT: class func enumerateObjects(options
88// CHECK-NEXT: func enumerateObjects(options
99// CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "enumerateObjects(options:)")
10+
11+ // CHECK: class TestsForEnhancedOmitNeedlessWords {
12+
13+ // Tests for withOptions -> 'with options'
14+ // CHECK-NEXT: class func difference(fromArray other: Int32, with options: NSOrderedCollectionDifferenceCalculationOptions = [])
15+ // CHECK-NEXT: func difference(fromArray other: Int32, with options: NSOrderedCollectionDifferenceCalculationOptions = [])
16+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "difference(fromArray:with:)")
17+ // CHECK-NEXT: class func differenceFromArray(_ other: Int32, withOptions options: NSOrderedCollectionDifferenceCalculationOptions = [])
18+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "difference(fromArray:with:)")
19+ // CHECK-NEXT: func differenceFromArray(_ other: Int32, withOptions options: NSOrderedCollectionDifferenceCalculationOptions = [])
20+
21+ // Tests for ofUnit -> 'of unit'
22+ // CHECK-NEXT: class func minimumRange(of unit: NSCalendarUnit) -> UInt32
23+ // CHECK-NEXT: func minimumRange(of unit: NSCalendarUnit) -> UInt32
24+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "minimumRange(of:)")
25+ // CHECK-NEXT: class func minimumRangeOfUnit(_ unit: NSCalendarUnit) -> UInt32
26+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "minimumRange(of:)")
27+ // CHECK-NEXT: func minimumRangeOfUnit(_ unit: NSCalendarUnit) -> UInt32
28+
29+ // Tests for inDomain -> 'in domain'
30+ // CHECK-NEXT: class func url(forDirectory directory: UInt32, in domain: NSSearchPathDomainMask) -> UInt32
31+ // CHECK-NEXT: func url(forDirectory directory: UInt32, in domain: NSSearchPathDomainMask) -> UInt32
32+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "url(forDirectory:in:)")
33+ // CHECK-NEXT: class func URLForDirectory(_ directory: UInt32, inDomain domain: NSSearchPathDomainMask) -> UInt32
34+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "url(forDirectory:in:)")
35+ // CHECK-NEXT: func URLForDirectory(_ directory: UInt32, inDomain domain: NSSearchPathDomainMask) -> UInt32
36+
37+ // Tests for shouldUseAction -> 'shouldUse action'
38+ // CHECK-NEXT: class func layoutManager(_ layoutManager: UInt32, shouldUse action: NSControlCharacterAction) -> UInt32
39+ // CHECK-NEXT: func layoutManager(_ layoutManager: UInt32, shouldUse action: NSControlCharacterAction) -> UInt32
40+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "layoutManager(_:shouldUse:)")
41+ // CHECK-NEXT: class func layoutManager(_ layoutManager: UInt32, shouldUseAction action: NSControlCharacterAction) -> UInt32
42+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "layoutManager(_:shouldUse:)")
43+ // CHECK-NEXT: func layoutManager(_ layoutManager: UInt32, shouldUseAction action: NSControlCharacterAction) -> UInt32
44+
45+ // Tests for forState -> 'for state'
46+ // CHECK-NEXT: class func setBackButtonBackgroundImage(_ backgroundImage: UInt32, for state: UIControlState)
47+ // CHECK-NEXT: func setBackButtonBackgroundImage(_ backgroundImage: UInt32, for state: UIControlState)
48+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "setBackButtonBackgroundImage(_:for:)")
49+ // CHECK-NEXT: class func setBackButtonBackgroundImage(_ backgroundImage: UInt32, forState state: UIControlState)
50+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "setBackButtonBackgroundImage(_:for:)")
51+ // CHECK-NEXT: func setBackButtonBackgroundImage(_ backgroundImage: UInt32, forState state: UIControlState)
52+
53+ // Tests for toState -> 'to state'
54+ // CHECK-NEXT: class func willTransition(to state: UITableViewCellStateMask)
55+ // CHECK-NEXT: func willTransition(to state: UITableViewCellStateMask)
56+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "willTransition(to:)")
57+ // CHECK-NEXT: class func willTransitionToState(_ state: UITableViewCellStateMask)
58+ // CHECK-NEXT: @available(swift, obsoleted: 3, renamed: "willTransition(to:)")
59+ // CHECK-NEXT: func willTransitionToState(_ state: UITableViewCellStateMask)
0 commit comments