Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,59 +51,29 @@ class scalazSpec extends AnyFreeSpec with Matchers {
}

"Then the generator should contains yield values" in {
// format: off
generator should be(
Seq(
/**/ "Entering generator",
/** *
*/
"Entering generator",
"Fork thread 0",
/** ***
*/
"Entering asyncFunction",
/** *****
*/
"Fork sub-thread 0",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator",
/** *****
*/
"Fork sub-thread 1",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator",
/** *
*/
"Fork thread 1",
/** ***
*/
"Entering asyncFunction",
/** *****
*/
"Fork sub-thread 0",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator",
/** *****
*/
"Fork sub-thread 1",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator"
)
)
// format: on
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import utest.{TestSuite, Tests, test, given}
/** @author
* 杨博 (Yang Bo)
*/
@deprecated("This test suite contains test cases for Stream, which is deprecated")
@deprecated(
"This test suite contains test cases for Stream, which is deprecated"
)
object YieldSpec extends TestSuite {

val tests = Tests {
Expand Down Expand Up @@ -450,59 +452,29 @@ class YieldSpec extends AnyFreeSpec with Matchers with Assertions {
}

"Then the generator should contains yield values" in {
// format: off
generator should be(
Seq(
/**/ "Entering generator",
/** *
*/
"Fork thread 0",
/** ***
*/
"Entering asyncFunction",
/** *****
*/
"Fork sub-thread 0",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator",
/** *****
*/
"Fork sub-thread 1",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator",
/** *
*/
"Fork thread 1",
/** ***
*/
"Entering asyncFunction",
/** *****
*/
"Fork sub-thread 0",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator",
/** *****
*/
"Fork sub-thread 1",
/** *******
*/
"Leaving asyncFunction",
/** *******
*/
"Leaving generator"
"Entering generator",
"Fork thread 0",
"Entering asyncFunction",
"Fork sub-thread 0",
"Leaving asyncFunction",
"Leaving generator",
"Fork sub-thread 1",
"Leaving asyncFunction",
"Leaving generator",
"Fork thread 1",
"Entering asyncFunction",
"Fork sub-thread 0",
"Leaving asyncFunction",
"Leaving generator",
"Fork sub-thread 1",
"Leaving asyncFunction",
"Leaving generator"
)
)
// format: on
}

}
Expand Down