From 21871888c007dc2d26b31b25de2cb5dd9ae7db5b Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Sun, 7 Jul 2024 11:01:04 +0800 Subject: [PATCH] fix(document): update text check in MsOfficeDocumentParserTest Adjust text check to match expected value in test case. --- .../cc/unitmesh/document/parser/MsOfficeDocumentParserTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag-modules/document/src/test/kotlin/cc/unitmesh/document/parser/MsOfficeDocumentParserTest.kt b/rag-modules/document/src/test/kotlin/cc/unitmesh/document/parser/MsOfficeDocumentParserTest.kt index 6726ee7..662db1c 100644 --- a/rag-modules/document/src/test/kotlin/cc/unitmesh/document/parser/MsOfficeDocumentParserTest.kt +++ b/rag-modules/document/src/test/kotlin/cc/unitmesh/document/parser/MsOfficeDocumentParserTest.kt @@ -18,6 +18,6 @@ class MsOfficeDocumentParserTest { val inputStream = this.javaClass.getResourceAsStream("/ChocolateFactory.docx")!! val documents = MsOfficeDocumentParser(DocumentType.DOC).parse(inputStream) - assert(documents[0].text.contains("ChocoBuilder")) + assert(documents[0].text.contains("ChocolateFactory")) } } \ No newline at end of file