Added dark mode option to CreateBanner() func

- Fixed PORTALSYMBOL file names
- Now using image files from assets/glyphs
- CreateBanner() func options tweaked
This commit is contained in:
Raum0x2A
2021-05-06 00:52:01 -06:00
parent 5077876106
commit ccbd68aee8
10 changed files with 38 additions and 53 deletions

View File

@@ -10,6 +10,12 @@ func TestRndPortal(t *testing.T) {
fmt.Println(RndPortal())
}
func TestCreateBanner(t *testing.T) {
fmt.Printf("\nTesting CreateBanner: ")
CreateBanner(RndPortal(), "/tmp/Test.png", 11)
fmt.Printf("Random Portal address rendered as `/tmp/Test.png`\n\n")
}
func TestPortal2Galactic(t *testing.T) {
want, err := P2gc("006afa556c30")
if err != nil {
@@ -54,11 +60,6 @@ func TestGalactic2portal(t *testing.T) {
}
}
func TestCreateBanner(t *testing.T) {
fmt.Printf("\nTesting CreateBanner: ")
CreateBanner(RndPortal(), "/tmp/Test.png", 0)
}
func TestTranslate(t *testing.T) {
want := Translate{"Paka"}
if want.Atl2Eng() != "Awake" {