Updates and Fixes
**resource.go/assets.go** * renamed `resources.go` to `assets.go` * added dark glyphs - located in assets.go -> assets/glyphs/dark/ * moved original glyphs - located in assets.go -> assets/glyph/light/ **glyphbanner.go** * added option to make glyphs vertical and/or dark **rpcg.go** * Added a random portal code generator this function takes no args and returns a string **README.md** * Fixed some typos (probably more to be fixed) * Added example of vertical portal banner * Added list of options for banner creation * Added example of ``nmslib.RndPortal()`` usage **go.mod** * updated go version to 1.16
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user