mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-04 22:11:07 +01:00
Add test case for listing of designs with UTF-8 metadata
This commit is contained in:
parent
1845d1ebb1
commit
357ea9d788
74
test/176_utf8_design_list.cfg
Normal file
74
test/176_utf8_design_list.cfg
Normal 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
|
||||
┏━ [38;5;154m沐[0m[38;5;184m宸[0m[38;5;184m [0m[38;5;184m若[0m[38;5;214m汐[0m ━┓
|
||||
┃ ⧹
|
||||
┃ ╱
|
||||
┗━━━━━━━━━━━━━┛
|
||||
ends
|
||||
|
||||
# Monochrome sample (with UTF-8):
|
||||
# ┏━ 沐宸 若汐 ━┓
|
||||
# ┃ ⧹
|
||||
# ┃ ╱
|
||||
# ┗━━━━━━━━━━━━━┛
|
||||
|
||||
shapes {
|
||||
n (" [38;5;154m沐[0m[38;5;184m宸[0m[38;5;184m [0m[38;5;184m若[0m[38;5;214m汐[0m ")
|
||||
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
|
24
test/176_utf8_design_list.txt
Normal file
24
test/176_utf8_design_list.txt
Normal 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 沐宸:
|
||||
|
||||
┏━ [38;5;154m沐[0m[38;5;184m宸[0m[38;5;184m [0m[38;5;184m若[0m[38;5;214m汐[0m ━┓
|
||||
┃ ⧹
|
||||
┃ ╱
|
||||
┗━━━━━━━━━━━━━┛
|
||||
|
||||
|
||||
designB
|
||||
沐宸, coded by John Doe:
|
||||
|
||||
shape
|
||||
|
||||
|
||||
:EOF
|
Loading…
Reference in New Issue
Block a user