package utils

import "testing"

func TestFloat64ToPCM16(t *testing.T) {
	samples := []float64{0.0, 1.0, -1.0, 1.5, -1.5}

	bytes := Float64ToPCM16(samples)
	if len(bytes) != len(samples)*2 {
		t.Fatalf("expected length %d, got %d", len(samples)*2, len(bytes))
	}
}