25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
358B

  1. package gpudemod
  2. import "testing"
  3. func TestStubAvailableFalseWithoutCufft(t *testing.T) {
  4. if Available() {
  5. t.Fatal("expected CUDA demod to be unavailable without cufft build tag")
  6. }
  7. }
  8. func TestStubNewReturnsErrorWithoutCufft(t *testing.T) {
  9. if _, err := New(4096, 2048000); err == nil {
  10. t.Fatal("expected New to fail without cufft build tag")
  11. }
  12. }