Add test case for listing of designs with UTF-8 metadata

This commit is contained in:
Thomas Jensen 2023-05-05 21:54:23 +02:00
parent 1845d1ebb1
commit 357ea9d788
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
2 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,74 @@
# This config contains UTF-8-encoded elements used correctly, and a simple colored box design.
BOX designA
author "沐宸" # in a value
designer "John Doe"
𝕂𝕖𝕪𝕨𝕠𝕣𝕕 "value" # in a keyword
Mix𝕖𝕕 "value"
sample
┏━ 沐宸 若汐 ━┓
┗━━━━━━━━━━━━━┛
ends
# Monochrome sample (with UTF-8):
# ┏━ 沐宸 若汐 ━┓
# ┃
# ┃
# ┗━━━━━━━━━━━━━┛
shapes {
n (" 沐宸 若汐 ")
nw ("┏")
nnw ("━")
nne ("━")
ne ("┓")
e ("┃")
w ("", "")
se ("┗")
s ("━")
sw ("┛")
}
elastic (
nnw, nne, e, w, s
)
padding {
horiz 1
}
replace "ä" with "ö"
reverse "ö" to "ä"
END designA
BOX designB
author "John Doe"
designer "沐宸"
revision "1.0.4-RC1"
revdate "May 4, 2023 (Pondělí 20:16h)"
sample
shape
ends
shapes {
w ("shape")
}
elastic (
n, e, w, s
)
END designB

View File

@ -0,0 +1,24 @@
:ARGS
-f 176_utf8_design_list.cfg -l
:INPUT
:OUTPUT-FILTER
:EXPECTED
2 Available Styles in "176_utf8_design_list.cfg":
-------------------------------------------------
designA
John Doe, coded by 沐宸:
┏━ 沐宸 若汐 ━┓
┗━━━━━━━━━━━━━┛
designB
沐宸, coded by John Doe:
shape
:EOF