mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-12 09:51:10 +01:00
Test cases for ANSI
This commit is contained in:
parent
c9db55ae88
commit
a253fe105a
9
test/095_ansi_basic.txt
Normal file
9
test/095_ansi_basic.txt
Normal file
@ -0,0 +1,9 @@
|
||||
:ARGS
|
||||
:INPUT
|
||||
[31mabcdef[0m
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/**********/
|
||||
/* [31mabcdef[0m */
|
||||
/**********/
|
||||
:EOF
|
9
test/096_ansi_within.txt
Normal file
9
test/096_ansi_within.txt
Normal file
@ -0,0 +1,9 @@
|
||||
:ARGS
|
||||
:INPUT
|
||||
ab[31mcd[0mef
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/**********/
|
||||
/* ab[31mcd[0mef */
|
||||
/**********/
|
||||
:EOF
|
17
test/097_ansi_mixed.txt
Normal file
17
test/097_ansi_mixed.txt
Normal file
@ -0,0 +1,17 @@
|
||||
:ARGS
|
||||
:INPUT
|
||||
normal
|
||||
with [31msome[0m formating
|
||||
formating past [1mline end
|
||||
and into[22m next
|
||||
normal again
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/***************************/
|
||||
/* normal */
|
||||
/* with [31msome[0m formating */
|
||||
/* formating past [1mline end */
|
||||
/* and into[22m next */
|
||||
/* normal again */
|
||||
/***************************/
|
||||
:EOF
|
17
test/098_ansi_mixed_indent.txt
Normal file
17
test/098_ansi_mixed_indent.txt
Normal file
@ -0,0 +1,17 @@
|
||||
:ARGS
|
||||
:INPUT
|
||||
normal
|
||||
with [31msome[0m formating
|
||||
formating past [1mline end
|
||||
and into[22m next
|
||||
normal again
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/***************************/
|
||||
/* normal */
|
||||
/* with [31msome[0m formating */
|
||||
/* formating past [1mline end */
|
||||
/* and into[22m next */
|
||||
/* normal again */
|
||||
/***************************/
|
||||
:EOF
|
18
test/099_ansi_align_left.txt
Normal file
18
test/099_ansi_align_left.txt
Normal file
@ -0,0 +1,18 @@
|
||||
:ARGS
|
||||
-al
|
||||
:INPUT
|
||||
normal
|
||||
with [31msome[0m formating
|
||||
formating past [1mline end
|
||||
and into[22m next
|
||||
normal again
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/***************************/
|
||||
/* normal */
|
||||
/* with [31msome[0m formating */
|
||||
/* formating past [1mline end */
|
||||
/* and into[22m next */
|
||||
/* normal again */
|
||||
/***************************/
|
||||
:EOF
|
18
test/100_ansi_align_center.txt
Normal file
18
test/100_ansi_align_center.txt
Normal file
@ -0,0 +1,18 @@
|
||||
:ARGS
|
||||
-ac
|
||||
:INPUT
|
||||
normal
|
||||
with [31msome[0m formating
|
||||
formating past [1mline end
|
||||
and into[22m next
|
||||
normal again
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/***************************/
|
||||
/* normal */
|
||||
/* with [31msome[0m formating */
|
||||
/* formating past [1mline end */
|
||||
/* and into[22m next */
|
||||
/* normal again */
|
||||
/***************************/
|
||||
:EOF
|
18
test/101_ansi_align_right.txt
Normal file
18
test/101_ansi_align_right.txt
Normal file
@ -0,0 +1,18 @@
|
||||
:ARGS
|
||||
-ar
|
||||
:INPUT
|
||||
normal
|
||||
with [31msome[0m formating
|
||||
formating past [1mline end
|
||||
and into[22m next
|
||||
normal again
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/***************************/
|
||||
/* normal */
|
||||
/* with [31msome[0m formating */
|
||||
/* formating past [1mline end */
|
||||
/* and into[22m next */
|
||||
/* normal again */
|
||||
/***************************/
|
||||
:EOF
|
21
test/102_ansi_size.txt
Normal file
21
test/102_ansi_size.txt
Normal file
@ -0,0 +1,21 @@
|
||||
:ARGS
|
||||
-s35x10
|
||||
:INPUT
|
||||
normal
|
||||
with [31msome[0m formating
|
||||
formating past [1mline end
|
||||
and into[22m next
|
||||
normal again
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/*********************************/
|
||||
/* normal */
|
||||
/* with [31msome[0m formating */
|
||||
/* formating past [1mline end */
|
||||
/* and into[22m next */
|
||||
/* normal again */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/*********************************/
|
||||
:EOF
|
28
test/103_ansi_pad.txt
Normal file
28
test/103_ansi_pad.txt
Normal file
@ -0,0 +1,28 @@
|
||||
:ARGS
|
||||
-pa5
|
||||
:INPUT
|
||||
normal
|
||||
with [31msome[0m formating
|
||||
formating past [1mline end
|
||||
and into[22m next
|
||||
normal again
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/***********************************/
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* normal */
|
||||
/* with [31msome[0m formating */
|
||||
/* formating past [1mline end */
|
||||
/* and into[22m next */
|
||||
/* normal again */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/***********************************/
|
||||
:EOF
|
12
test/104_ansi_lolcat.txt
Normal file
12
test/104_ansi_lolcat.txt
Normal file
@ -0,0 +1,12 @@
|
||||
:ARGS
|
||||
-ar
|
||||
:INPUT
|
||||
[38;5;214m[0m[38;5;214mT[0m[38;5;208mh[0m[38;5;203me[0m[38;5;203mr[0m[38;5;198me[0m[38;5;199m [0m[38;5;163mi[0m[38;5;164ms[0m[38;5;129m [0m[38;5;129mn[0m[38;5;93mo[0m[38;5;63m [0m[38;5;63mc[0m[38;5;33mo[0m[38;5;39mm[0m[38;5;38mp[0m[38;5;44ml[0m[38;5;49me[0m[38;5;49mt[0m[38;5;48me[0m[38;5;83m [0m[38;5;83mt[0m[38;5;118mh[0m[38;5;154me[0m[38;5;148mo[0m[38;5;184mr[0m[38;5;214my[0m[38;5;214m [0m[38;5;208mo[0m[38;5;203mf[0m[38;5;203m [0m[38;5;198ma[0m[38;5;199mn[0m[38;5;163my[0m[38;5;164mt[0m[38;5;129mh[0m[38;5;129mi[0m[38;5;93mn[0m[38;5;63mg[0m[38;5;63m.[0m[38;5;33m[0m
|
||||
[34;2;3m Robert Anton Wilson[0m
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
/********************************************/
|
||||
/* [38;5;214m[0m[38;5;214mT[0m[38;5;208mh[0m[38;5;203me[0m[38;5;203mr[0m[38;5;198me[0m[38;5;199m [0m[38;5;163mi[0m[38;5;164ms[0m[38;5;129m [0m[38;5;129mn[0m[38;5;93mo[0m[38;5;63m [0m[38;5;63mc[0m[38;5;33mo[0m[38;5;39mm[0m[38;5;38mp[0m[38;5;44ml[0m[38;5;49me[0m[38;5;49mt[0m[38;5;48me[0m[38;5;83m [0m[38;5;83mt[0m[38;5;118mh[0m[38;5;154me[0m[38;5;148mo[0m[38;5;184mr[0m[38;5;214my[0m[38;5;214m [0m[38;5;208mo[0m[38;5;203mf[0m[38;5;203m [0m[38;5;198ma[0m[38;5;199mn[0m[38;5;163my[0m[38;5;164mt[0m[38;5;129mh[0m[38;5;129mi[0m[38;5;93mn[0m[38;5;63mg[0m[38;5;63m.[0m[38;5;33m[0m */
|
||||
/* [34;2;3m Robert Anton Wilson[0m */
|
||||
/********************************************/
|
||||
:EOF
|
Loading…
Reference in New Issue
Block a user