Binary_&&

org.scalatest.Fact.Binary_&&
See theBinary_&& companion class
object Binary_&&

Represents a binary logical AND operation between two Fact instances, enforcing that the left-hand side Fact instance is yes. This is a factory object used to create Binary_&& instances.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Binary_&&.type

Members list

Value members

Concrete methods

def apply(left: Fact, right: Fact): Fact

Creates a new Binary_&& instance with the specified left and right Fact instances, enforcing that the left-hand side Fact instance is yes.

Creates a new Binary_&& instance with the specified left and right Fact instances, enforcing that the left-hand side Fact instance is yes.

Value parameters

left

The left-hand side Fact instance of the AND operation. It must be a yes fact.

right

The right-hand side Fact instance of the AND operation.

Attributes

Returns

A new Binary_&& instance representing the logical AND operation of the two Fact instances.

Throws
IllegalArgumentException

If the left Fact instance is not a yes fact.

def apply(left: Fact, right: Fact, messageFun: Option[Option[String] => Option[String]]): Fact

Creates a new Binary_&& instance with the specified left and right Fact instances and an optional clue, enforcing that the left-hand side Fact instance is yes.

Creates a new Binary_&& instance with the specified left and right Fact instances and an optional clue, enforcing that the left-hand side Fact instance is yes.

Value parameters

left

The left-hand side Fact instance of the AND operation. It must be a yes fact.

messageFun

An optional message function to modify the messages.

right

The right-hand side Fact instance of the AND operation.

Attributes

Returns

A new Binary_&& instance representing the logical AND operation of the two Fact instances.

Throws
IllegalArgumentException

If the left Fact instance is not a yes fact.