is an option to TestCreate, VerificationTest and IntermediateTest that specifies a string used as an identifier for the test.
TestID
is an option to TestCreate, VerificationTest and IntermediateTest that specifies a string used as an identifier for the test.
Examples
Basic Examples (5)
Assign a TestID:
TestCreate[Expand[(1 + x) ^ 3], 1 + 3 x + 3 x^2 + x^3, TestID -> "1u834us03"]test = TestCreate[2 + 2, 4, TestID -> "MyTestMultiplication"];Use "TestID" to extract the original value of the option:
test["TestID"]A TestID can be any expression:
Table[
VerificationTest[n + 2 > 0, True, TestID -> {"NumericTest", n}],
{n, 3}
]By default, the TestID will be a Hash of the test:
TestCreate[2 + 2, 4]["TestID"]The TestID will change if the input of the TestCreate expression is different:
TestCreate[2 + 2, 5]["TestID"]Use CreateUUID to create random identifiers every time:
TestCreate[2 + 2, 5, TestID :> CreateUUID[]]["TestID"]Tech Notes
Related Guides
History
Text
Wolfram Research (2014), TestID, Wolfram Language function, https://reference.wolfram.com/language/ref/TestID.html.
CMS
Wolfram Language. 2014. "TestID." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TestID.html.
APA
Wolfram Language. (2014). TestID. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TestID.html
BibTeX
@misc{reference.wolfram_2026_testid, author="Wolfram Research", title="{TestID}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TestID.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_testid, organization={Wolfram Research}, title={TestID}, year={2014}, url={https://reference.wolfram.com/language/ref/TestID.html}, note=[Accessed: 15-June-2026]}