Skip to content

Commit eb22c16

Browse files
authored
Merge pull request #512 from Atry/indent
Keep indent in generator tests
2 parents dc65674 + 50c3649 commit eb22c16

File tree

2 files changed

+25
-83
lines changed

2 files changed

+25
-83
lines changed

domains-scalaz/src/test/scala/com/thoughtworks/dsl/domains/scalazSpec.scala

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -51,59 +51,29 @@ class scalazSpec extends AnyFreeSpec with Matchers {
5151
}
5252

5353
"Then the generator should contains yield values" in {
54+
// format: off
5455
generator should be(
5556
Seq(
56-
/**/ "Entering generator",
57-
/** *
58-
*/
57+
"Entering generator",
5958
"Fork thread 0",
60-
/** ***
61-
*/
6259
"Entering asyncFunction",
63-
/** *****
64-
*/
6560
"Fork sub-thread 0",
66-
/** *******
67-
*/
6861
"Leaving asyncFunction",
69-
/** *******
70-
*/
7162
"Leaving generator",
72-
/** *****
73-
*/
7463
"Fork sub-thread 1",
75-
/** *******
76-
*/
7764
"Leaving asyncFunction",
78-
/** *******
79-
*/
8065
"Leaving generator",
81-
/** *
82-
*/
8366
"Fork thread 1",
84-
/** ***
85-
*/
8667
"Entering asyncFunction",
87-
/** *****
88-
*/
8968
"Fork sub-thread 0",
90-
/** *******
91-
*/
9269
"Leaving asyncFunction",
93-
/** *******
94-
*/
9570
"Leaving generator",
96-
/** *****
97-
*/
9871
"Fork sub-thread 1",
99-
/** *******
100-
*/
10172
"Leaving asyncFunction",
102-
/** *******
103-
*/
10473
"Leaving generator"
10574
)
10675
)
76+
// format: on
10777
}
10878

10979
}

keywords-Yield/src/test/scala/com/thoughtworks/dsl/keywords/YieldSpec.scala

Lines changed: 22 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import utest.{TestSuite, Tests, test, given}
1111
/** @author
1212
* 杨博 (Yang Bo)
1313
*/
14-
@deprecated("This test suite contains test cases for Stream, which is deprecated")
14+
@deprecated(
15+
"This test suite contains test cases for Stream, which is deprecated"
16+
)
1517
object YieldSpec extends TestSuite {
1618

1719
val tests = Tests {
@@ -450,59 +452,29 @@ class YieldSpec extends AnyFreeSpec with Matchers with Assertions {
450452
}
451453

452454
"Then the generator should contains yield values" in {
455+
// format: off
453456
generator should be(
454457
Seq(
455-
/**/ "Entering generator",
456-
/** *
457-
*/
458-
"Fork thread 0",
459-
/** ***
460-
*/
461-
"Entering asyncFunction",
462-
/** *****
463-
*/
464-
"Fork sub-thread 0",
465-
/** *******
466-
*/
467-
"Leaving asyncFunction",
468-
/** *******
469-
*/
470-
"Leaving generator",
471-
/** *****
472-
*/
473-
"Fork sub-thread 1",
474-
/** *******
475-
*/
476-
"Leaving asyncFunction",
477-
/** *******
478-
*/
479-
"Leaving generator",
480-
/** *
481-
*/
482-
"Fork thread 1",
483-
/** ***
484-
*/
485-
"Entering asyncFunction",
486-
/** *****
487-
*/
488-
"Fork sub-thread 0",
489-
/** *******
490-
*/
491-
"Leaving asyncFunction",
492-
/** *******
493-
*/
494-
"Leaving generator",
495-
/** *****
496-
*/
497-
"Fork sub-thread 1",
498-
/** *******
499-
*/
500-
"Leaving asyncFunction",
501-
/** *******
502-
*/
503-
"Leaving generator"
458+
"Entering generator",
459+
"Fork thread 0",
460+
"Entering asyncFunction",
461+
"Fork sub-thread 0",
462+
"Leaving asyncFunction",
463+
"Leaving generator",
464+
"Fork sub-thread 1",
465+
"Leaving asyncFunction",
466+
"Leaving generator",
467+
"Fork thread 1",
468+
"Entering asyncFunction",
469+
"Fork sub-thread 0",
470+
"Leaving asyncFunction",
471+
"Leaving generator",
472+
"Fork sub-thread 1",
473+
"Leaving asyncFunction",
474+
"Leaving generator"
504475
)
505476
)
477+
// format: on
506478
}
507479

508480
}

0 commit comments

Comments
 (0)