nelson.unittest.assume(condition)
nelson.unittest.assume(condition, reason)
| Parameter | Description |
|---|---|
| condition | logical scalar that must be true to continue the current test. |
| reason | optional text explaining why the test is skipped. |
nelson.unittest.assume marks the current test as skipped when a runtime prerequisite is false.
nelson.unittest.assume(ispc(), 'Requires Windows');