Test helps verify our attribute types match the macros in textflag.h. Discovered https://golang.org/issue/29487 in the process. Updates #2
14 lines
205 B
Go
14 lines
205 B
Go
package textflag
|
|
|
|
import "testing"
|
|
|
|
//go:generate go run make_attrtest.go -output zattrtest.s -seed 42 -num 256
|
|
|
|
func AttrTest() bool
|
|
|
|
func TestAttributes(t *testing.T) {
|
|
if !AttrTest() {
|
|
t.Fail()
|
|
}
|
|
}
|