13 lines
334 B
Go
13 lines
334 B
Go
|
|
package staros
|
||
|
|
|
||
|
|
import "testing"
|
||
|
|
|
||
|
|
func TestTCPStateLastACKSpellingAndCompatibilityAlias(t *testing.T) {
|
||
|
|
if TCP_STATE[TCP_LAST_ACK] != "TCP_LAST_ACK" {
|
||
|
|
t.Fatalf("unexpected LAST_ACK state string: %s", TCP_STATE[TCP_LAST_ACK])
|
||
|
|
}
|
||
|
|
if TCP_LAST_ACL != TCP_LAST_ACK {
|
||
|
|
t.Fatalf("TCP_LAST_ACL should remain a compatibility alias")
|
||
|
|
}
|
||
|
|
}
|