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

  1. package padArchiver
  2. import (
  3. "testing"
  4. "github.com/fatih/color"
  5. )
  6. const checkIcon = "\xE2\x9C\x94 "
  7. func TestAddPad(t *testing.T) {
  8. color.Blue("TestAddPad")
  9. repo := OpenRepo("Repo01")
  10. _, err := repo.StorePad("http://board.net/p/pad1", "Group1", "pad1", true)
  11. if err == nil {
  12. color.Green(checkIcon + "checked AddPad")
  13. } else {
  14. color.Red(err.Error())
  15. t.Errorf("Error AddPad")
  16. }
  17. }