import 'package:cyberhybridhub/utils/spelling_spoken_word.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('spellingWordToSpeak extracts quoted word', () { expect( spellingWordToSpeak( "Is 'colour' spelled correctly? Swipe toward +10 for yes.", ), 'colour', ); }); test('spellingWordToSpeak handles double quotes', () { expect( spellingWordToSpeak('Is "separate" spelled correctly?'), 'separate', ); }); test('spellingWordToSpeak returns null for generic test text', () { expect( spellingWordToSpeak( 'Starter question: enter a whole number between -10 and 10.', ), isNull, ); }); }