import Testing @testable import SstData struct SystemWordKnowledgeTests { let knowledge = SystemWordKnowledge() @Test func recognisesEnglishAndDutchWords() { #expect(knowledge.isWord("cloud")) #expect(knowledge.isWord("Cloud")) #expect(knowledge.isWord("vandaag")) } @Test func doesNotTreatProductNamesAsWords() { #expect(!knowledge.isWord("vercel")) #expect(!knowledge.isWord("supabase")) #expect(!knowledge.isWord("anthropic")) } @Test func functionWordsComeFromTheBuiltInList() { #expect(knowledge.isFunctionWord("de")) #expect(knowledge.isFunctionWord("The")) #expect(!knowledge.isFunctionWord("vercel")) } }