@@ -8,7 +8,7 @@ import utest._
8
8
9
9
object DslTest extends TestSuite {
10
10
11
- val * = Dsl [Unit , Unit , Unit ]
11
+ val dsl = Dsl [Unit , Unit , Unit ]
12
12
13
13
// def extract1[A, B](s: Sack[A, B]): B =
14
14
// s match {
@@ -37,36 +37,36 @@ object DslTest extends TestSuite {
37
37
override def tests = Tests {
38
38
39
39
" changeTo" - {
40
- " pos" - testName(* .focus(" Counter" ).value(_ => 7 ).assert.changeTo(_ + 1 ),
40
+ " pos" - testName(dsl .focus(" Counter" ).value(_ => 7 ).assert.changeTo(_ + 1 ),
41
41
" Counter should be <?>." ,
42
42
" Counter should be 8." )
43
43
44
- " neg" - testName(* .focus(" Counter" ).value(_ => 7 ).assert.not.changeTo(_ + 1 ),
44
+ " neg" - testName(dsl .focus(" Counter" ).value(_ => 7 ).assert.not.changeTo(_ + 1 ),
45
45
" Counter shouldn't be <?>." ,
46
46
" Counter shouldn't be 8." )
47
47
48
48
// TODO Didn't catch. Try using changeTo in multiple actions and verify final history. Might be Name strictness.
49
49
}
50
50
51
51
" incrementBy" - {
52
- " pos" - testName(* .focus(" Counter" ).value(_ => 7 ).assert.increaseBy(2 ),
52
+ " pos" - testName(dsl .focus(" Counter" ).value(_ => 7 ).assert.increaseBy(2 ),
53
53
" Counter should increase by 2." ,
54
54
" Counter should increase by 2." )
55
55
// "Counter should be 9.")
56
56
57
- " neg" - testName(* .focus(" Counter" ).value(_ => 7 ).assert.not.increaseBy(2 ),
57
+ " neg" - testName(dsl .focus(" Counter" ).value(_ => 7 ).assert.not.increaseBy(2 ),
58
58
" Counter shouldn't increase by 2." ,
59
59
" Counter shouldn't increase by 2." )
60
60
// "Counter shouldn't be 9.")
61
61
}
62
62
63
63
" decrementBy" - {
64
- " pos" - testName(* .focus(" Counter" ).value(_ => 7 ).assert.decreaseBy(2 ),
64
+ " pos" - testName(dsl .focus(" Counter" ).value(_ => 7 ).assert.decreaseBy(2 ),
65
65
" Counter should decrease by 2." ,
66
66
" Counter should decrease by 2." )
67
67
// "Counter should be 5.")
68
68
69
- " neg" - testName(* .focus(" Counter" ).value(_ => 7 ).assert.not.decreaseBy(2 ),
69
+ " neg" - testName(dsl .focus(" Counter" ).value(_ => 7 ).assert.not.decreaseBy(2 ),
70
70
" Counter shouldn't decrease by 2." ,
71
71
" Counter shouldn't decrease by 2." )
72
72
// "Counter shouldn't be 5.")
0 commit comments