|
@@ -29,8 +29,8 @@ func TestISUPPORT(t *testing.T) {
|
29
|
29
|
tListLong.RegenerateCachedReply()
|
30
|
30
|
|
31
|
31
|
longReplies := [][]string{
|
32
|
|
- {"1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "are supported by this server"},
|
33
|
|
- {"E", "F", "are supported by this server"},
|
|
32
|
+ {"1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D"},
|
|
33
|
+ {"E", "F"},
|
34
|
34
|
}
|
35
|
35
|
|
36
|
36
|
if !reflect.DeepEqual(tListLong.CachedReply, longReplies) {
|
|
@@ -46,7 +46,7 @@ func TestISUPPORT(t *testing.T) {
|
46
|
46
|
tList1.Add("RANDKILL", "whenever")
|
47
|
47
|
tList1.RegenerateCachedReply()
|
48
|
48
|
|
49
|
|
- expected := [][]string{{"CASEMAPPING=rfc1459-strict", "EXTBAN", "INVEX=i", "RANDKILL=whenever", "SASL=yes", "are supported by this server"}}
|
|
49
|
+ expected := [][]string{{"CASEMAPPING=rfc1459-strict", "EXTBAN", "INVEX=i", "RANDKILL=whenever", "SASL=yes"}}
|
50
|
50
|
if !reflect.DeepEqual(tList1.CachedReply, expected) {
|
51
|
51
|
t.Error("tList1's cached reply does not match expected cached reply")
|
52
|
52
|
}
|
|
@@ -60,14 +60,14 @@ func TestISUPPORT(t *testing.T) {
|
60
|
60
|
tList2.AddNoValue("STABLEKILL")
|
61
|
61
|
tList2.RegenerateCachedReply()
|
62
|
62
|
|
63
|
|
- expected = [][]string{{"CASEMAPPING=ascii", "EXTBAN=TestBah", "INVEX", "SASL=yes", "STABLEKILL", "are supported by this server"}}
|
|
63
|
+ expected = [][]string{{"CASEMAPPING=ascii", "EXTBAN=TestBah", "INVEX", "SASL=yes", "STABLEKILL"}}
|
64
|
64
|
if !reflect.DeepEqual(tList2.CachedReply, expected) {
|
65
|
65
|
t.Error("tList2's cached reply does not match expected cached reply")
|
66
|
66
|
}
|
67
|
67
|
|
68
|
68
|
// compare lists
|
69
|
69
|
actual := tList1.GetDifference(tList2)
|
70
|
|
- expected = [][]string{{"-RANDKILL", "CASEMAPPING=ascii", "EXTBAN=TestBah", "INVEX", "STABLEKILL", "are supported by this server"}}
|
|
70
|
+ expected = [][]string{{"-RANDKILL", "CASEMAPPING=ascii", "EXTBAN=TestBah", "INVEX", "STABLEKILL"}}
|
71
|
71
|
if !reflect.DeepEqual(actual, expected) {
|
72
|
72
|
t.Error("difference reply does not match expected difference reply")
|
73
|
73
|
}
|