added RndPoral func to create Random Portal code

This commit is contained in:
Raum0x2A
2021-05-05 18:42:00 -06:00
parent 3449ae3bf3
commit 9358727075
2 changed files with 47 additions and 1 deletions

View File

@@ -5,6 +5,11 @@ import (
"testing"
)
func TestRndPortal(t *testing.T) {
fmt.Printf("\nRandom Portal Code: ")
fmt.Println(RndPortal())
}
func TestPortal2Galactic(t *testing.T) {
want, err := P2gc("006afa556c30")
if err != nil {
@@ -51,7 +56,7 @@ func TestGalactic2portal(t *testing.T) {
func TestCreateBanner(t *testing.T) {
fmt.Printf("\nTesting CreateBanner: ")
CreateBanner("006afa556c30", "/tmp/Test.png", 0)
CreateBanner(RndPortal(), "/tmp/Test.png", 0)
}
func TestTranslate(t *testing.T) {