Test cases for ANSI

This commit is contained in:
Ben Dimbeck 2020-07-13 21:38:39 +02:00 committed by Thomas Jensen
parent c9db55ae88
commit a253fe105a
10 changed files with 167 additions and 0 deletions

9
test/095_ansi_basic.txt Normal file
View File

@ -0,0 +1,9 @@
:ARGS
:INPUT
abcdef
:OUTPUT-FILTER
:EXPECTED
/**********/
/* abcdef */
/**********/
:EOF

9
test/096_ansi_within.txt Normal file
View File

@ -0,0 +1,9 @@
:ARGS
:INPUT
abcdef
:OUTPUT-FILTER
:EXPECTED
/**********/
/* abcdef */
/**********/
:EOF

17
test/097_ansi_mixed.txt Normal file
View File

@ -0,0 +1,17 @@
:ARGS
:INPUT
normal
with some formating
formating past line end
and into next
normal again
:OUTPUT-FILTER
:EXPECTED
/***************************/
/* normal */
/* with some formating */
/* formating past line end */
/* and into next */
/* normal again */
/***************************/
:EOF

View File

@ -0,0 +1,17 @@
:ARGS
:INPUT
normal
with some formating
formating past line end
and into next
normal again
:OUTPUT-FILTER
:EXPECTED
/***************************/
/* normal */
/* with some formating */
/* formating past line end */
/* and into next */
/* normal again */
/***************************/
:EOF

View File

@ -0,0 +1,18 @@
:ARGS
-al
:INPUT
normal
with some formating
formating past line end
and into next
normal again
:OUTPUT-FILTER
:EXPECTED
/***************************/
/* normal */
/* with some formating */
/* formating past line end */
/* and into next */
/* normal again */
/***************************/
:EOF

View File

@ -0,0 +1,18 @@
:ARGS
-ac
:INPUT
normal
with some formating
formating past line end
and into next
normal again
:OUTPUT-FILTER
:EXPECTED
/***************************/
/* normal */
/* with some formating */
/* formating past line end */
/* and into next */
/* normal again */
/***************************/
:EOF

View File

@ -0,0 +1,18 @@
:ARGS
-ar
:INPUT
normal
with some formating
formating past line end
and into next
normal again
:OUTPUT-FILTER
:EXPECTED
/***************************/
/* normal */
/* with some formating */
/* formating past line end */
/* and into next */
/* normal again */
/***************************/
:EOF

21
test/102_ansi_size.txt Normal file
View File

@ -0,0 +1,21 @@
:ARGS
-s35x10
:INPUT
normal
with some formating
formating past line end
and into next
normal again
:OUTPUT-FILTER
:EXPECTED
/*********************************/
/* normal */
/* with some formating */
/* formating past line end */
/* and into next */
/* normal again */
/* */
/* */
/* */
/*********************************/
:EOF

28
test/103_ansi_pad.txt Normal file
View File

@ -0,0 +1,28 @@
:ARGS
-pa5
:INPUT
normal
with some formating
formating past line end
and into next
normal again
:OUTPUT-FILTER
:EXPECTED
/***********************************/
/* */
/* */
/* */
/* */
/* */
/* normal */
/* with some formating */
/* formating past line end */
/* and into next */
/* normal again */
/* */
/* */
/* */
/* */
/* */
/***********************************/
:EOF

12
test/104_ansi_lolcat.txt Normal file
View File

@ -0,0 +1,12 @@
:ARGS
-ar
:INPUT
There is no complete theory of anything.
 Robert Anton Wilson
:OUTPUT-FILTER
:EXPECTED
/********************************************/
/* There is no complete theory of anything. */
/*  Robert Anton Wilson */
/********************************************/
:EOF