File tree Expand file tree Collapse file tree 7 files changed +20
-21
lines changed Expand file tree Collapse file tree 7 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ trait TestBuilderExtractors given (val qc: QuoteContext) {
74
74
75
75
// case q"""$p($value).apply($body)""" if checkLhs(p) => (Some(literalValue(value)), body)
76
76
// case '{($name: TestableString).apply($body)} => (Some(run(name).value), body.unseal)
77
- case ' {($sym : scala.Symbol ).apply($body)} => (Some (run(sym).name), body.unseal)
77
+ // case '{($sym: scala.Symbol).apply($body)} => (Some(run(sym).name), body.unseal)
78
78
79
79
// case q"""$p($value).-($body)""" if checkLhs(p) => (Some(literalValue(value)), body)
80
80
case ' {($name : String ).- ($body)} => (name.exec, body.unseal)
81
- case ' {($sym : scala.Symbol ).- ($body)} => (Some (run(sym).name), body.unseal)
81
+ // case '{($sym: scala.Symbol).-($body)} => (Some(run(sym).name), body.unseal)
82
82
83
83
// case q"""utest.`package`.test.apply($value).apply($body)""" => (Some(literalValue(value)), body)
84
84
case ' {utest.test($name : String )($body)} => (name.exec, body.unseal)
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ object Tests{
27
27
// println(s"In:\n${body.show}")
28
28
val bTree = body.unseal
29
29
val res = processTests(bTree)
30
- println(s " Out: \n ${res.show}\n " )
30
+ // println(s"Out:\n${res.show}\n")
31
31
res
32
32
}
33
33
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ object Tracer{
46
46
// Don't trace "magic" identifiers with '$'s in them
47
47
&& ! name.toString.contains('$' ) =>
48
48
49
- println(s " Doing $name" )
50
49
wrapWithLoggedValue(tree, logger, tree.tpe.widen)
51
50
52
51
// Don't worry about multiple chained annotations for now...
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ object BeforeAfterEachFailureTests extends TestSuite {
25
25
} else ()
26
26
27
27
def tests = Tests {
28
- Symbol (" hello" ) {
28
+ test (" hello" ) {
29
29
Future (10 )
30
30
}
31
31
32
- Symbol (" beforeAfterEachFailures" ) {
32
+ test (" beforeAfterEachFailures" ) {
33
33
def tests = Tests {
34
34
test(" testSuccess" ){
35
35
Future {
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ object FrameworkAsyncTests extends TestSuite {
10
10
private val isNative = sys.props(" java.vm.name" ) == " Scala Native"
11
11
12
12
def tests = Tests {
13
- Symbol (" hello" ) {
13
+ test (" hello" ) {
14
14
Future (10 )
15
15
}
16
16
17
- Symbol (" asyncFailures" ) {
17
+ test (" asyncFailures" ) {
18
18
val tests = Tests {
19
19
test(" testSuccessAsync" ){
20
20
val p = concurrent.Promise [Int ]
Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ object FrameworkTests extends utest.TestSuite{
43
43
}
44
44
test(" helloWorldSymbol" ){
45
45
val tests = Tests {
46
- Symbol (" test1" ){
46
+ test (" test1" ){
47
47
throw new Exception (" test1" )
48
48
}
49
- Symbol (" test2" ){
49
+ test (" test2" ){
50
50
1
51
51
}
52
- Symbol (" test3" ){
52
+ test (" test3" ){
53
53
val a = List [Byte ](1 , 2 )
54
54
a(10 )
55
55
}
@@ -58,12 +58,12 @@ object FrameworkTests extends utest.TestSuite{
58
58
}
59
59
test(" helloWorldSymbol2" ){
60
60
val tests = Tests {
61
- Symbol (" test1" )- {
61
+ test (" test1" )- {
62
62
throw new Exception (" test1" )
63
63
}
64
- Symbol (" test2" )- 1
64
+ test (" test2" )- 1
65
65
66
- Symbol (" test3" )- {
66
+ test (" test3" )- {
67
67
val a = List [Byte ](1 , 2 )
68
68
a(10 )
69
69
}
@@ -86,7 +86,7 @@ object FrameworkTests extends utest.TestSuite{
86
86
e.getMessage
87
87
}
88
88
}
89
- Symbol (" weirdTestName" ){
89
+ test (" weirdTestName" ){
90
90
val tests = Tests {
91
91
" t est1~!@#$%^&*()_+{}|:';<>?,/'" - {
92
92
1
@@ -133,7 +133,7 @@ object FrameworkTests extends utest.TestSuite{
133
133
}
134
134
999
135
135
}
136
- Symbol (" test3" ){
136
+ test (" test3" ){
137
137
Seq ('a' , 'b' )
138
138
}
139
139
}
Original file line number Diff line number Diff line change @@ -3,19 +3,19 @@ package test.utest.examples
3
3
import utest ._
4
4
object HelloTests extends TestSuite {
5
5
val tests = Tests {
6
- Symbol (" test1" ){
6
+ test (" test1" ){
7
7
// throw new Exception("test1")
8
8
}
9
- Symbol (" test2" ){
10
- Symbol (" inner" ){
9
+ test (" test2" ){
10
+ test (" inner" ){
11
11
1
12
12
}
13
13
}
14
- Symbol (" test3" ){
14
+ test (" test3" ){
15
15
val a = List [Byte ](1 , 2 )
16
16
// a(10)
17
17
}
18
- Symbol (" test4" ){
18
+ test (" test4" ){
19
19
val a = null
20
20
a
21
21
}
You can’t perform that action at this time.
0 commit comments