Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

18 lines
377B

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