From 57bb8750adc1f9f3201a9856e4e15126b9212ece Mon Sep 17 00:00:00 2001 From: Panos Vagenas Date: Tue, 24 Jun 2025 09:26:08 +0200 Subject: [PATCH] improve test case Signed-off-by: Panos Vagenas --- .../docling_v2/inline_and_formatting.md.md | 2 +- .../docling_v2/inline_and_formatting.md.yaml | 22 +++++-------------- tests/data/md/inline_and_formatting.md | 2 +- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/tests/data/groundtruth/docling_v2/inline_and_formatting.md.md b/tests/data/groundtruth/docling_v2/inline_and_formatting.md.md index 196a0e71..130375c8 100644 --- a/tests/data/groundtruth/docling_v2/inline_and_formatting.md.md +++ b/tests/data/groundtruth/docling_v2/inline_and_formatting.md.md @@ -18,6 +18,6 @@ Create your feature branch: `git checkout -b feature/AmazingFeature` . Some *`formatted_code`* -## *Partially formatted* heading to escape `not_to_escape` +## *Partially formatted* heading to\_escape `not_to_escape` [$$E=mc^2$$](https://en.wikipedia.org/wiki/Albert_Einstein) diff --git a/tests/data/groundtruth/docling_v2/inline_and_formatting.md.yaml b/tests/data/groundtruth/docling_v2/inline_and_formatting.md.yaml index f224148f..531a5e9b 100644 --- a/tests/data/groundtruth/docling_v2/inline_and_formatting.md.yaml +++ b/tests/data/groundtruth/docling_v2/inline_and_formatting.md.yaml @@ -8,7 +8,7 @@ body: - $ref: '#/texts/32' - $ref: '#/groups/8' - $ref: '#/texts/35' - - $ref: '#/texts/40' + - $ref: '#/texts/39' content_layer: body label: unspecified name: _root_ @@ -120,7 +120,6 @@ groups: - $ref: '#/texts/36' - $ref: '#/texts/37' - $ref: '#/texts/38' - - $ref: '#/texts/39' content_layer: body label: inline name: group @@ -130,7 +129,7 @@ groups: key_value_items: [] name: inline_and_formatting origin: - binary_hash: 11578856098237602413 + binary_hash: 16409076955457599155 filename: inline_and_formatting.md mimetype: text/markdown pages: {} @@ -570,21 +569,12 @@ texts: - children: [] content_layer: body label: text - orig: heading to + orig: heading to_escape parent: $ref: '#/groups/9' prov: [] self_ref: '#/texts/37' - text: heading to -- children: [] - content_layer: body - label: text - orig: escape - parent: - $ref: '#/groups/9' - prov: [] - self_ref: '#/texts/38' - text: escape + text: heading to_escape - captions: [] children: [] code_language: unknown @@ -596,7 +586,7 @@ texts: $ref: '#/groups/9' prov: [] references: [] - self_ref: '#/texts/39' + self_ref: '#/texts/38' text: not_to_escape - children: [] content_layer: body @@ -606,6 +596,6 @@ texts: parent: $ref: '#/body' prov: [] - self_ref: '#/texts/40' + self_ref: '#/texts/39' text: $$E=mc^2$$ version: 1.4.0 diff --git a/tests/data/md/inline_and_formatting.md b/tests/data/md/inline_and_formatting.md index a9e991a6..2f936696 100644 --- a/tests/data/md/inline_and_formatting.md +++ b/tests/data/md/inline_and_formatting.md @@ -18,6 +18,6 @@ Create your feature branch: `git checkout -b feature/AmazingFeature`. Some *`formatted_code`* -## *Partially formatted* heading to\_escape `not_to_escape` +## *Partially formatted* heading to_escape `not_to_escape` [$$E=mc^2$$](https://en.wikipedia.org/wiki/Albert_Einstein)