From 0ffbf1935c9d091cce22a5583275ac0902f7a693 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Thu, 02 Jul 2026 03:04:51 +0800
Subject: [PATCH] Add Cantonese language model support

---
 privatevoice.src/app_live_caption_test.go |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/privatevoice.src/app_live_caption_test.go b/privatevoice.src/app_live_caption_test.go
index 321f388..2c1610d 100644
--- a/privatevoice.src/app_live_caption_test.go
+++ b/privatevoice.src/app_live_caption_test.go
@@ -114,6 +114,23 @@
 	}
 }
 
+func TestHasEngineReflectsCurrentEngine(t *testing.T) {
+	a := &App{}
+	if a.hasEngine() {
+		t.Fatal("new app should not report an engine")
+	}
+
+	a.replaceEngine(plainTestEngine{})
+	if !a.hasEngine() {
+		t.Fatal("app should report an engine after replaceEngine")
+	}
+
+	a.replaceEngine(nil)
+	if a.hasEngine() {
+		t.Fatal("app should not report an engine after clearing")
+	}
+}
+
 func TestShouldStartHoldPreCaptureLocked(t *testing.T) {
 	a := &App{}
 	a.holdPreCaptureEnabled.Store(true)

--
Gitblit v1.9.3