IntermediateTest

IntermediateTest[input]

creates an intermediate test to determine whether input evaluates to True.

IntermediateTest[input,expected]

creates an intermediate test to determine whether input evaluates to expected.

IntermediateTest[input,expected,messages]

creates an intermediate test that is expected to generate the list of message names messages.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a test that tests whether the input evaluates to True:

Evaluate the test:

If an IntermediateTest fails, the outer test fails:

Scope  (1)

Run a test that uses at least one IntermediateTest:

The "IntermediateTests" property extracts all the intermediate tests as TestObject expressions:

All TestObject properties are available for intermediate tests:

Applications  (2)

IntermediateTest can be used to test the setup phase of another test:

Wolfram Research (2024), IntermediateTest, Wolfram Language function, https://reference.wolfram.com/language/ref/IntermediateTest.html.

Text

Wolfram Research (2024), IntermediateTest, Wolfram Language function, https://reference.wolfram.com/language/ref/IntermediateTest.html.

CMS

Wolfram Language. 2024. "IntermediateTest." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IntermediateTest.html.

APA

Wolfram Language. (2024). IntermediateTest. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntermediateTest.html

BibTeX

@misc{reference.wolfram_2024_intermediatetest, author="Wolfram Research", title="{IntermediateTest}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/IntermediateTest.html}", note=[Accessed: 05-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_intermediatetest, organization={Wolfram Research}, title={IntermediateTest}, year={2024}, url={https://reference.wolfram.com/language/ref/IntermediateTest.html}, note=[Accessed: 05-November-2024 ]}