Wideband autonomous SDR analysis engine forked from sdr-visual-suite
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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