ecl-logo Documentation

UniquelyInformedTest

UniquelyInformedTest[packet,fields]test

returns a test to be used in RunUnitTest for whether only one of `fields` is non-Null.

Details

  • The test uses NullQ to determine whether the fields are Null or not Null. Please see NullQ for details on what inputs pass or fail NullQ.
  • Input
    Output

Examples

Basic Examples  (3)

Generate an EmeraldTest Object on an Packet that should pass due to only one field being non-Null:

Generate an EmeraldTest Object on an Packet that should fail due to all of the fields being Null:

Generate an EmeraldTest Object on an Packet that should fail due to more then one fields being non-Null: