@@ -107,7 +107,7 @@ mod tests {
107107 let prompt = build_enhancement_prompt ( "hello world" , None , & options) ;
108108
109109 assert ! ( prompt. contains( "hello world" ) ) ;
110- assert ! ( prompt. contains( "APPLY THESE CORRECTIONS " ) ) ;
110+ assert ! ( prompt. contains( "THEN clean up this voice transcription " ) ) ;
111111
112112 // Test with context
113113 let prompt_with_context =
@@ -132,7 +132,7 @@ mod tests {
132132 // Test Default preset
133133 let default_options = EnhancementOptions :: default ( ) ;
134134 let default_prompt = build_enhancement_prompt ( text, None , & default_options) ;
135- assert ! ( default_prompt. contains( "APPLY THESE CORRECTIONS " ) ) ;
135+ assert ! ( default_prompt. contains( "THEN clean up this voice transcription " ) ) ;
136136
137137 // Test Prompts preset
138138 let mut prompts_options = EnhancementOptions :: default ( ) ;
@@ -178,15 +178,10 @@ mod tests {
178178
179179 // All prompts should include self-correction rules
180180 assert ! (
181- prompt. contains( "handle natural speech self-corrections" ) ,
181+ prompt. contains( "handle self-corrections" ) ,
182182 "Preset {:?} should include self-correction rules" ,
183183 preset
184184 ) ;
185- assert ! (
186- prompt. contains( "Immediate replacement" ) ,
187- "Preset {:?} should include immediate replacement pattern" ,
188- preset
189- ) ;
190185 }
191186 }
192187
@@ -211,14 +206,14 @@ mod tests {
211206
212207 // All should include self-correction rules
213208 assert ! (
214- prompt. contains( "handle natural speech self-corrections" ) ,
209+ prompt. contains( "handle self-corrections" ) ,
215210 "Preset {:?} should include self-correction rules" ,
216211 preset
217212 ) ;
218213
219214 // All should include default processing
220215 assert ! (
221- prompt. contains( "APPLY THESE CORRECTIONS " ) ,
216+ prompt. contains( "THEN clean up this voice transcription " ) ,
222217 "Preset {:?} should include default processing" ,
223218 preset
224219 ) ;
@@ -245,29 +240,18 @@ mod tests {
245240 // Test that Default prompt includes all comprehensive features
246241
247242 // 1. Speech artifacts removal
248- assert ! ( prompt. contains( "Filler words" ) , "Should include filler word removal" ) ;
243+ assert ! ( prompt. contains( "Remove filler words" ) , "Should include filler word removal" ) ;
249244 assert ! ( prompt. contains( "stutters" ) , "Should handle stutters" ) ;
250245
251- // 2. Homophone correction
252- assert ! ( prompt. contains( "Homophones " ) , "Should handle homophones " ) ;
253- assert ! ( prompt. contains( "there/their/they're " ) , "Should include common homophone examples " ) ;
246+ // 2. Error correction
247+ assert ! ( prompt. contains( "Fix all errors " ) , "Should fix errors " ) ;
248+ assert ! ( prompt. contains( "grammar, spelling, punctuation " ) , "Should handle grammar and spelling " ) ;
254249
255250 // 3. Number and time formatting
256- assert ! ( prompt. contains( "Times:" ) , "Should format times" ) ;
257- assert ! ( prompt. contains( "Dates:" ) , "Should format dates" ) ;
258- assert ! ( prompt. contains( "Numbers:" ) , "Should format numbers" ) ;
259-
260- // 4. Spoken punctuation
261- assert ! ( prompt. contains( "spoken punctuation" ) , "Should handle spoken punctuation" ) ;
262- assert ! ( prompt. contains( "comma" ) , "Should handle spoken comma" ) ;
263- assert ! ( prompt. contains( "question mark" ) , "Should handle spoken question mark" ) ;
264-
265- // 5. List detection
266- assert ! ( prompt. contains( "Format lists" ) , "Should format detected lists" ) ;
251+ assert ! ( prompt. contains( "Format numbers, dates, times" ) , "Should format numbers and dates" ) ;
267252
268- // 6. Technical terms
269- assert ! ( prompt. contains( "Technical terms" ) , "Should preserve technical terms" ) ;
270- assert ! ( prompt. contains( "JavaScript" ) , "Should correct JavaScript" ) ;
253+ // 4. Technical terms
254+ assert ! ( prompt. contains( "Correct technical terms" ) , "Should preserve technical terms" ) ;
271255 }
272256
273257 #[ test]
0 commit comments