mirror of https://github.com/aldy505/asciitxt.git
23 lines
522 B
Go
23 lines
522 B
Go
|
package asciitxt_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/aldy505/asciitxt"
|
||
|
)
|
||
|
|
||
|
func TestNew(t *testing.T) {
|
||
|
s := asciitxt.New("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 0123456789 _ the quick brown fox jumps over the lazy dog")
|
||
|
|
||
|
if s == "" {
|
||
|
t.Error("should not be empty")
|
||
|
}
|
||
|
}
|
||
|
func TestWithConfig(t *testing.T) {
|
||
|
s := asciitxt.WithConfig("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 0123456789 _ the quick brown fox jumps over the lazy dog", asciitxt.Config{})
|
||
|
|
||
|
if s == "" {
|
||
|
t.Error("should not be empty")
|
||
|
}
|
||
|
}
|