 NumericMatchers

Related Docs: object NumericMatchers | package matcher

trait NumericMatchers extends NumericBaseMatchers with NumericBeHaveMatchers

Matchers for Numerical values

Linear Supertypes
NumericBeHaveMatchers, BeHaveMatchers, NumericBaseMatchers, AnyRef, Any
Ordering
1. Alphabetic
2. By Inheritance
Inherited
1. NumericMatchers
2. NumericBeHaveMatchers
3. BeHaveMatchers
4. NumericBaseMatchers
5. AnyRef
6. Any
1. Hide All
2. Show All
Visibility
1. Public
2. All

Type Members

1. class NeutralMatcherNumeric extends AnyRef

Definition Classes
NumericBeHaveMatchers
2. class NeutralMatcherOrdered extends AnyRef

Definition Classes
NumericBeHaveMatchers
3. class NumericResultMatcher[S] extends AnyRef

Definition Classes
NumericBeHaveMatchers
4. class OrderedResultMatcher[S] extends AnyRef

Definition Classes
NumericBeHaveMatchers
5. implicit class SignificantFiguresSyntax extends AnyRef

implicit definition to create significant figures for the beCloseTo matcher

6. implicit class SignificantSyntax[N] extends AnyRef

implicit definition to create significant figures for the beCloseTo matcher

Value Members

1. final def !=(arg0: Any): Boolean

Definition Classes
AnyRef → Any
2. final def ##(): Int

Definition Classes
AnyRef → Any
3. def <[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

alias for beLessThan

alias for beLessThan

Definition Classes
NumericBaseMatchers
4. def <=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

alias for beLessThanOrEqualTo

alias for beLessThanOrEqualTo

Definition Classes
NumericBaseMatchers
5. final def ==(arg0: Any): Boolean

Definition Classes
AnyRef → Any
6. def >[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

alias for beGreaterThan

alias for beGreaterThan

Definition Classes
NumericBaseMatchers
7. def >=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

alias for beGreaterThanOrEqualTo

alias for beGreaterThanOrEqualTo

Definition Classes
NumericBaseMatchers
8. implicit def ToDelta[S](n: S)(implicit arg0: Numeric[S]): CanHaveDelta[S]

implicit definition to create delta for the beCloseTo matcher

9. final def asInstanceOf[T0]: T0

Definition Classes
Any
10. def be: NeutralMatcher[Any]

Definition Classes
BeHaveMatchers
11. def beBetween[T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

matches if a value is between 2 others according to an Ordering

matches if a value is between 2 others according to an Ordering

Definition Classes
NumericBaseMatchers
12. def beCloseTo[S](target: SignificantTarget[S])(implicit arg0: Numeric[S]): Matcher[S]

Definition Classes
NumericBaseMatchers
13. def beCloseTo[S](target: S, figures: SignificantFigures)(implicit arg0: Numeric[S]): Matcher[S]

matches if target - actual < 10 pow (log x - significantDigits)

matches if target - actual < 10 pow (log x - significantDigits)

Definition Classes
NumericBaseMatchers
14. def beCloseTo[S](delta: PlusOrMinus[S])(implicit arg0: Numeric[S]): Matcher[S]

matches if x = n +/- delta

matches if x = n +/- delta

Definition Classes
NumericBaseMatchers
15. def beCloseTo[S](n: S, delta: S)(implicit arg0: Numeric[S]): Matcher[S]

matches if x = n +/- delta

matches if x = n +/- delta

Definition Classes
NumericBaseMatchers
16. def beGreaterThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

matches if x > n

matches if x > n

Definition Classes
NumericBaseMatchers
17. def beGreaterThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

matches if x >= n

matches if x >= n

Definition Classes
NumericBaseMatchers
18. def beLessThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

matches if x < n

matches if x < n

Definition Classes
NumericBaseMatchers
19. def beLessThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

matches if x <= n

matches if x <= n

Definition Classes
NumericBaseMatchers
20. def be[[T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

alias for the adventurous: 5 must (be[(2, 7)[)

alias for the adventurous: 5 must (be[(2, 7)[)

Definition Classes
NumericBaseMatchers
21. def be][T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

alias for the adventurous: 5 must (be](2, 7)[)

alias for the adventurous: 5 must (be](2, 7)[)

Definition Classes
NumericBaseMatchers
22. def be_<[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

alias for beLessThan

alias for beLessThan

Definition Classes
NumericBaseMatchers
23. def be_<=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

alias for beLessThanOrEqualTo

alias for beLessThanOrEqualTo

Definition Classes
NumericBaseMatchers
24. def be_>[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

alias for beGreaterThan

alias for beGreaterThan

Definition Classes
NumericBaseMatchers
25. def be_>=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

alias for beGreaterThanOrEqualTo

alias for beGreaterThanOrEqualTo

Definition Classes
NumericBaseMatchers
26. def between[T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

Definition Classes
NumericBaseMatchers
27. def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )
28. def closeTo[S](target: SignificantTarget[S])(implicit arg0: Numeric[S]): Matcher[S]

Definition Classes
NumericBaseMatchers
29. def closeTo[S](target: S, figures: SignificantFigures)(implicit arg0: Numeric[S]): Matcher[S]

Definition Classes
NumericBaseMatchers
30. def closeTo[S](delta: PlusOrMinus[S])(implicit arg0: Numeric[S]): Matcher[S]

Definition Classes
NumericBaseMatchers
31. def closeTo[S](n: S, delta: S)(implicit arg0: Numeric[S]): Matcher[S]

Definition Classes
NumericBaseMatchers
32. final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
33. def equals(arg0: Any): Boolean

Definition Classes
AnyRef → Any
34. def finalize(): Unit

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( classOf[java.lang.Throwable] )
35. final def getClass(): Class[_]

Definition Classes
AnyRef → Any
36. def greaterThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

Definition Classes
NumericBaseMatchers
37. def greaterThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

Definition Classes
NumericBaseMatchers
38. def hashCode(): Int

Definition Classes
AnyRef → Any
39. def have: NeutralMatcher[Any]

Definition Classes
BeHaveMatchers
40. final def isInstanceOf[T0]: Boolean

Definition Classes
Any
41. def lessThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

Definition Classes
NumericBaseMatchers
42. def lessThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

matches if x <= n

matches if x <= n

Definition Classes
NumericBaseMatchers
43. final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
44. def not: NotMatcher[Any]

Definition Classes
BeHaveMatchers
45. final def notify(): Unit

Definition Classes
AnyRef
46. final def notifyAll(): Unit

Definition Classes
AnyRef
47. final def synchronized[T0](arg0: ⇒ T0): T0

Definition Classes
AnyRef
48. implicit def toNeutralMatcherNumeric(result: NeutralMatcher[Any]): NeutralMatcherNumeric

Definition Classes
NumericBeHaveMatchers
49. implicit def toNeutralMatcherOrdered(result: NeutralMatcher[Any]): NeutralMatcherOrdered

Definition Classes
NumericBeHaveMatchers
50. implicit def toNumericResultMatcher[S](result: MatchResult[S])(implicit arg0: Numeric[S]): NumericResultMatcher[S]

Definition Classes
NumericBeHaveMatchers
51. implicit def toOrderedResultMatcher[S](result: MatchResult[S])(implicit arg0: (S) ⇒ Ordered[S]): OrderedResultMatcher[S]

matcher aliases and implicits to use with be + matcher

matcher aliases and implicits to use with be + matcher

Definition Classes
NumericBeHaveMatchers
52. def toString(): String

Definition Classes
AnyRef → Any
53. final def wait(): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
54. final def wait(arg0: Long, arg1: Int): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
55. final def wait(arg0: Long): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
56. def ~[S](delta: PlusOrMinus[S])(implicit arg0: Numeric[S]): Matcher[S]

alias for beCloseTo

alias for beCloseTo

Definition Classes
NumericBaseMatchers
57. def ~[S](n: S)(delta: S)(implicit arg0: Numeric[S]): Matcher[S]

alias for beCloseTo

alias for beCloseTo

Definition Classes
NumericBaseMatchers