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.
 
 
 
 

22 lines
397 B

package padArchiver
import (
"testing"
"github.com/fatih/color"
)
const checkIcon = "\xE2\x9C\x94 "
func TestAddPad(t *testing.T) {
color.Blue("TestAddPad")
repo := OpenRepo("Repo01")
_, err := repo.StorePad("http://board.net/p/pad1", "Group1", "pad1", true)
if err == nil {
color.Green(checkIcon + "checked AddPad")
} else {
color.Red(err.Error())
t.Errorf("Error AddPad")
}
}