File: character_sets_test.go

package info (click to toggle)
golang-github-theckman-yacspin 0.13.12-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 252 kB
  • sloc: sh: 8; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package yacspin

import (
	"fmt"
	"testing"
	"time"
)

func TestCharSets(t *testing.T) {
	spinner, err := New(Config{Frequency: time.Second})
	testErrCheck(t, "New()", "", err)

	for i := 0; i < len(CharSets); i++ {
		name := fmt.Sprintf("spinner.CharSet(CharSets[%d])", i)
		err := spinner.CharSet(CharSets[i])
		testErrCheck(t, name, "", err)
	}
}