mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-03 12:51:29 +02:00
110 lines
2.2 KiB
Diff
110 lines
2.2 KiB
Diff
From 59c539286e7487b267bc7808b16833f9e3ad6793 Mon Sep 17 00:00:00 2001
|
|
From: Christian Clason <c.clason@uni-graz.at>
|
|
Date: Sun, 20 Oct 2024 19:56:46 +0200
|
|
Subject: [PATCH] fix(tests): adapt expected to heading changes (#140)
|
|
|
|
---
|
|
test/corpus/codeblock.txt | 10 +++++++---
|
|
test/corpus/heading1_2.txt | 30 +++++++++++++++++++-----------
|
|
2 files changed, 26 insertions(+), 14 deletions(-)
|
|
|
|
diff --git a/test/corpus/codeblock.txt b/test/corpus/codeblock.txt
|
|
index 0a9c9a9..6746be6 100644
|
|
--- a/test/corpus/codeblock.txt
|
|
+++ b/test/corpus/codeblock.txt
|
|
@@ -175,7 +175,9 @@ H3 HEADLINE *foo*
|
|
(line))))
|
|
(line
|
|
(h1
|
|
- (word)
|
|
+ (delimiter)
|
|
+ (heading
|
|
+ (word))
|
|
(tag
|
|
(word))))
|
|
(line
|
|
@@ -191,7 +193,9 @@ H3 HEADLINE *foo*
|
|
(line))))
|
|
(line
|
|
(h2
|
|
- (word)
|
|
+ (delimiter)
|
|
+ (heading
|
|
+ (word))
|
|
(tag
|
|
(word)))))
|
|
(block
|
|
@@ -202,7 +206,7 @@ H3 HEADLINE *foo*
|
|
(line))))
|
|
(line
|
|
(h3
|
|
- (uppercase_name)
|
|
+ (heading)
|
|
(tag
|
|
(word))))))
|
|
|
|
diff --git a/test/corpus/heading1_2.txt b/test/corpus/heading1_2.txt
|
|
index e3d08ed..23fb261 100644
|
|
--- a/test/corpus/heading1_2.txt
|
|
+++ b/test/corpus/heading1_2.txt
|
|
@@ -19,7 +19,9 @@ Text2
|
|
(block
|
|
(line
|
|
(h1
|
|
- (word)
|
|
+ (delimiter)
|
|
+ (heading
|
|
+ (word))
|
|
(tag
|
|
(word)))))
|
|
(block
|
|
@@ -28,8 +30,10 @@ Text2
|
|
(block
|
|
(line
|
|
(h2
|
|
- (word)
|
|
- (word)
|
|
+ (delimiter)
|
|
+ (heading
|
|
+ (word)
|
|
+ (word))
|
|
(tag
|
|
(word))
|
|
(tag
|
|
@@ -59,20 +63,24 @@ Text
|
|
(block
|
|
(line
|
|
(h1
|
|
- (tag
|
|
- (word))
|
|
- (word)
|
|
- (word))))
|
|
+ (delimiter)
|
|
+ (heading
|
|
+ (tag
|
|
+ (word))
|
|
+ (word)
|
|
+ (word)))))
|
|
(block
|
|
(line
|
|
(word)))
|
|
(block
|
|
(line
|
|
(h2
|
|
- (tag
|
|
- (word))
|
|
- (word)
|
|
- (word))))
|
|
+ (delimiter)
|
|
+ (heading
|
|
+ (tag
|
|
+ (word))
|
|
+ (word)
|
|
+ (word)))))
|
|
(block
|
|
(line
|
|
(word))))
|
|
--
|
|
2.46.2
|
|
|