@@ -45,11 +45,11 @@ func TestParSort(t *testing.T) {
45
45
}
46
46
t .Logf ("fn(%s) = %s" , p .Calculi (), p .FreeNames ())
47
47
t .Logf ("fv(%s) = %s" , p .Calculi (), p .FreeVars ())
48
- if expect , got := 2 , len (p .FreeNames ()); expect != got {
48
+ if expect , got := 5 , len (p .FreeNames ()); expect != got {
49
49
t .Errorf ("Expecting %s to have %d free names but got %d." ,
50
50
p .Calculi (), expect , got )
51
51
}
52
- if expect , got := 3 , len (p .FreeVars ()); expect != got {
52
+ if expect , got := 0 , len (p .FreeVars ()); expect != got {
53
53
t .Errorf ("Expecting %s to have %d free vars but got %d" ,
54
54
p .Calculi (), expect , got )
55
55
}
@@ -65,11 +65,11 @@ func TestParSortOverlap(t *testing.T) {
65
65
}
66
66
t .Logf ("fn(%s) = %s" , p .Calculi (), p .FreeNames ())
67
67
t .Logf ("fv(%s) = %s" , p .Calculi (), p .FreeVars ())
68
- if expect , got := 1 , len (p .FreeNames ()); expect != got {
68
+ if expect , got := 4 , len (p .FreeNames ()); expect != got {
69
69
t .Errorf ("Expecting %s to have %d free names but got %d." ,
70
70
p .Calculi (), expect , got )
71
71
}
72
- if expect , got := 3 , len (p .FreeVars ()); expect != got {
72
+ if expect , got := 0 , len (p .FreeVars ()); expect != got {
73
73
t .Errorf ("Expecting %s to have %d free vars but got %d." ,
74
74
p .Calculi (), expect , got )
75
75
}
@@ -117,22 +117,18 @@ func TestSendSort(t *testing.T) {
117
117
}
118
118
t .Logf ("fn(%s) = %s" , p .Calculi (), p .FreeNames ())
119
119
t .Logf ("fv(%s) = %s" , p .Calculi (), p .FreeVars ())
120
- if expect , got := 1 , len (p .FreeNames ()); expect != got {
120
+ if expect , got := 2 , len (p .FreeNames ()); expect != got {
121
121
t .Errorf ("Expecting %s to have %d free names but got %d." ,
122
122
p .Calculi (), expect , got )
123
123
}
124
124
if p .FreeNames ()[0 ] != p .Chan {
125
125
t .Errorf ("Expecting fn(%s) to be %s but got %s" ,
126
126
p .Calculi (), p .Chan , p .FreeNames ()[0 ])
127
127
}
128
- if expect , got := 1 , len (p .FreeVars ()); expect != got {
128
+ if expect , got := 0 , len (p .FreeVars ()); expect != got {
129
129
t .Errorf ("Expecting %s to have %d free vars but got %d" ,
130
130
p .Calculi (), expect , got )
131
131
}
132
- if p .FreeVars ()[0 ] != p .Vals [0 ] {
133
- t .Errorf ("Expecting fv(%s) to be %s but got %s" ,
134
- p .Calculi (), p .Vals [0 ], p .FreeVars ()[0 ])
135
- }
136
132
}
137
133
138
134
func TestRecvSort (t * testing.T ) {
0 commit comments