20 lines
528 B
Go
20 lines
528 B
Go
// Copyright (c) 2026 Storm Dragon
|
|
// Authors: Storm Dragon, Angus Kola
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
package sound
|
|
|
|
import (
|
|
"crypto/sha256"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestTonePreservesSpeechAudio(t *testing.T) {
|
|
// Preserve the accepted speech beep while progress audio follows NVDA.
|
|
const speechDigest = "2f0184d3deefce36901b9a940d5caefde08e15058898d20c398ad10ad1ce1b94"
|
|
if got := fmt.Sprintf("%x", sha256.Sum256(speechBeepWAV)); got != speechDigest {
|
|
t.Fatalf("speech beep audio changed: %s", got)
|
|
}
|
|
}
|