Wideband autonomous SDR analysis engine forked from sdr-visual-suite
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.

18 line
497B

  1. package main
  2. import (
  3. "testing"
  4. "sdr-wideband-suite/internal/config"
  5. )
  6. func TestSurveillanceDisplayDefaults(t *testing.T) {
  7. cfg := config.Default()
  8. if cfg.Surveillance.DisplayBins != cfg.FFTSize {
  9. t.Fatalf("expected display bins to default to fft size, got %d vs %d", cfg.Surveillance.DisplayBins, cfg.FFTSize)
  10. }
  11. if cfg.Surveillance.DisplayFPS != cfg.FrameRate {
  12. t.Fatalf("expected display fps to default to frame rate, got %d vs %d", cfg.Surveillance.DisplayFPS, cfg.FrameRate)
  13. }
  14. }