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.
28 lines
416 B
28 lines
416 B
10 years ago
|
package cpu
|
||
|
|
||
|
import (
|
||
|
. "gopkg.in/check.v1"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func Test(t *testing.T) { TestingT(t) }
|
||
|
|
||
|
type MySuite struct{}
|
||
|
|
||
|
var _ = Suite(&MySuite{})
|
||
|
|
||
|
func (s *MySuite) TestHasSSE41(c *C) {
|
||
|
var bool = HasSSE41()
|
||
|
c.Check(bool, Equals, 1)
|
||
|
}
|
||
|
|
||
|
func (s *MySuite) TestHasAVX(c *C) {
|
||
|
var bool = HasAVX()
|
||
|
c.Check(bool, Equals, 1)
|
||
|
}
|
||
|
|
||
|
func (s *MySuite) TestHasAVX2(c *C) {
|
||
|
var bool = HasAVX2()
|
||
|
c.Check(bool, Equals, 0)
|
||
|
}
|