path: root/tests
diff options
authorBoris Faure <billiob@gmail.com>2018-11-26 21:36:56 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commitc104ad38e06848709d233e8e6a5eed6addd99dbb (patch)
treeff1e8ce1c7ea6790a7d06831828d88899624e388 /tests
parenttests: add test on invalid DECFRA/DECERA and absent parameters (diff)
tests: add tests on fonts: normal/italic/blod/bolditalic/fraktur/encircled
Diffstat (limited to 'tests')
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/fonts.sh b/tests/fonts.sh
new file mode 100755
index 0000000..8a6bc48
--- /dev/null
+++ b/tests/fonts.sh
@@ -0,0 +1,24 @@
+printf 'normal\n'
+printf '\033[0mabcdefghijklmnopqrstuvwxyz\n\033[0m'
+printf '\033[0mABCDEFGHIJKLMNOPQRSTUVWXYZ\n\033[0m'
+printf '\nbold\n'
+printf '\033[1mabcdefghijklmnopqrstuvwxyz\n\033[0m'
+printf '\033[1mABCDEFGHIJKLMNOPQRSTUVWXYZ\n\033[0m'
+printf '\nitalic\n'
+printf '\033[3mabcdefghijklmnopqrstuvwxyz\n\033[0m'
+printf '\033[3mABCDEFGHIJKLMNOPQRSTUVWXYZ\n\033[0m'
+printf '\nbolditalic\n'
+printf '\033[3;1mabcdefghijklmnopqrstuvwxyz\n\033[0m'
+printf '\033[3;1mABCDEFGHIJKLMNOPQRSTUVWXYZ\n\033[0m'
+printf '\nfraktur\n'
+printf '\033[20mabcdefghijklmnopqrstuvwxyz\n\033[0m'
+printf '\033[20mABCDEFGHIJKLMNOPQRSTUVWXYZ\n\033[0m'
+printf '\nencircled\n'
+printf '\033[52ma b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4\n\033[0m'
+printf '\033[52mA B C D E F G H I J K L M N O P Q R S T U V W X Y Z 5 6 7 8 9\n\033[0m'
diff --git a/tests/tests.results b/tests/tests.results
index 092adab..fa5a886 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -4,3 +4,4 @@ decera-no-restrict-cursor.sh d92d38dfe6fd6b4100e3f0dac0e0a405
decera-restrict-cursor.sh baae3f0eef7e6f0032ba74f11ee306f6
decera-decfra-extra.sh 53d28f0d90c30aefd0b9176572c47f63
cursor-movements.sh 7ebb03610346e8fa56e171c55e7e2ec5
+fonts.sh be86e6ee87f551928a9783fa1a216aea