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.

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