The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/newnode/newnode_test.go

18 lines
318 B

package newnode
import "testing"
func TestNewNode(t *testing.T) {
var ip, port string
ip = "127.0.0.1"
port = "8080"
nnode := New(ip, port)
if nnode.PubK == nil {
t.Error("new node public key not initialized")
}
if nnode.SetInfo {
t.Error("new node setinfo initialized to true! (should be false)")
}
}