-
Couldn't load subscription status.
- Fork 0
nimble_operator
Ian Applebaum edited this page Jun 13, 2020
·
1 revision
Prefer Nimble operator overloads over free matcher functions.
- Identifier: nimble_operator
- Enabled by default: Disabled
- Supports autocorrection: Yes
- Kind: idiomatic
- Analyzer rule: No
- Minimum Swift compiler version: 3.0.0
- Default configuration: warning
expect(seagull.squawk) != "Hi!"expect("Hi!") == "Hi!"expect(10) > 2expect(10) >= 10expect(10) < 11expect(10) <= 10expect(x) === xexpect(10) == 10expect(success) == trueexpect(object.asyncFunction()).toEventually(equal(1))expect(actual).to(haveCount(expected))foo.method {
expect(value).to(equal(expectedValue), description: "Failed")
return Bar(value: ())
}↓expect(seagull.squawk).toNot(equal("Hi"))↓expect(12).toNot(equal(10))↓expect(10).to(equal(10))↓expect(10, line: 1).to(equal(10))↓expect(10).to(beGreaterThan(8))↓expect(10).to(beGreaterThanOrEqualTo(10))↓expect(10).to(beLessThan(11))↓expect(10).to(beLessThanOrEqualTo(10))↓expect(x).to(beIdenticalTo(x))↓expect(success).to(beTrue())↓expect(success).to(beFalse())expect(10) > 2
↓expect(10).to(beGreaterThan(2))