fn oxlFixtureFinish
Second pull: runs the code after yield and checks that the fixture really ends.
Example:
fixture temp() -> str {
yield "scratch"
// cleanup runs here, after the test body
}
test "fixture cleanup runs" with temp as name {
assert_eq(name, "scratch")
}pub(api) fn oxlFixtureFinish<T, E>(s: &var stream<T, E>)С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
s | &var stream<T, E> |
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/testing.oxl:79