gitlab.com/SkynetLabs/skyd@v1.6.9/skymodules/dependencies_test.go (about) 1 package skymodules 2 3 import ( 4 "testing" 5 6 "go.sia.tech/siad/types" 7 ) 8 9 // TestSkynetAddress is a unit test to confirm the 32 byte representation of the 10 // skynetAddress matches the string representation 11 func TestSkynetAddress(t *testing.T) { 12 expected := "537affa97693a48e23918e59ce281243f2d748bb8bfdada49535c5faad3efac2b5fe4f168390" 13 actual := types.UnlockHash(skynetAddress).String() 14 if expected != actual { 15 t.Fatalf("Skynet Address Mismatch: xpected %v, got %v", expected, actual) 16 } 17 }