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.

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. }