mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-13 18:30:39 +01:00
6427d1efde
This also adds the ability to testrunner.sh to pipe the output through xxd for binary comparisons.
75 lines
4.3 KiB
Plaintext
75 lines
4.3 KiB
Plaintext
:DESC
|
|
Test that the line terminator can be forced to CRLF in the design details output.
|
|
|
|
:ENV
|
|
export BOXES_TEST_XXD=1
|
|
:ARGS
|
|
-f ../boxes-config -l -d c -e crlf
|
|
:INPUT
|
|
:OUTPUT-FILTER
|
|
s/^.*([0-9a-fA-F]{4}):/0000\1:/
|
|
:EXPECTED
|
|
00000000: 436f 6d70 6c65 7465 2044 6573 6967 6e20 Complete Design
|
|
00000010: 496e 666f 726d 6174 696f 6e20 666f 7220 Information for
|
|
00000020: 2263 223a 0d0a 2d2d 2d2d 2d2d 2d2d 2d2d "c":..----------
|
|
00000030: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------
|
|
00000040: 2d2d 2d2d 2d2d 2d2d 2d2d 0d0a 416c 6961 ----------..Alia
|
|
00000050: 7320 4e61 6d65 733a 2020 2020 2020 2020 s Names:
|
|
00000060: 2020 2020 6e6f 6e65 0d0a 4175 7468 6f72 none..Author
|
|
00000070: 3a20 2020 2020 2020 2020 2020 2020 2020 :
|
|
00000080: 2020 5468 6f6d 6173 204a 656e 7365 6e0d Thomas Jensen.
|
|
00000090: 0a4f 7269 6769 6e61 6c20 4465 7369 676e .Original Design
|
|
000000a0: 6572 3a20 2020 2020 2028 7075 626c 6963 er: (public
|
|
000000b0: 2064 6f6d 6169 6e29 0d0a 4372 6561 7469 domain)..Creati
|
|
000000c0: 6f6e 2044 6174 653a 2020 2020 2020 2020 on Date:
|
|
000000d0: 2020 4d61 7263 6820 3138 2c20 3139 3939 March 18, 1999
|
|
000000e0: 2028 5468 7572 7364 6179 2c20 3135 3a32 (Thursday, 15:2
|
|
000000f0: 3568 290d 0a43 7572 7265 6e74 2052 6576 5h)..Current Rev
|
|
00000100: 6973 696f 6e3a 2020 2020 2020 2031 2e30 ision: 1.0
|
|
00000110: 2061 7320 6f66 204d 6172 6368 2031 382c as of March 18,
|
|
00000120: 2031 3939 3920 2854 6875 7273 6461 792c 1999 (Thursday,
|
|
00000130: 2031 353a 3235 6829 0d0a 436f 6e66 6967 15:25h)..Config
|
|
00000140: 7572 6174 696f 6e20 4669 6c65 3a20 2020 uration File:
|
|
00000150: 2020 2e2e 2f62 6f78 6573 2d63 6f6e 6669 ../boxes-confi
|
|
00000160: 670d 0a49 6e64 656e 7461 7469 6f6e 204d g..Indentation M
|
|
00000170: 6f64 653a 2020 2020 2020 2062 6f78 2028 ode: box (
|
|
00000180: 696e 6465 6e74 2062 6f78 290d 0a52 6570 indent box)..Rep
|
|
00000190: 6c61 6365 6d65 6e74 2052 756c 6573 3a20 lacement Rules:
|
|
000001a0: 2020 2020 2031 2e20 2867 6c6f 6229 2022 1. (glob) "
|
|
000001b0: 5c2a 2f22 2057 4954 4820 222a 5c5c 2f22 \*/" WITH "*\\/"
|
|
000001c0: 0d0a 5265 7665 7273 696f 6e20 5275 6c65 ..Reversion Rule
|
|
000001d0: 733a 2020 2020 2020 2020 312e 2028 676c s: 1. (gl
|
|
000001e0: 6f62 2920 225c 2a5c 5c2f 2220 544f 2022 ob) "\*\\/" TO "
|
|
000001f0: 2a2f 220d 0a4d 696e 696d 756d 2042 6f78 */"..Minimum Box
|
|
00000200: 2044 696d 656e 7369 6f6e 733a 2035 2078 Dimensions: 5 x
|
|
00000210: 2033 2020 2877 6964 7468 2078 2068 6569 3 (width x hei
|
|
00000220: 6768 7429 0d0a 4465 6661 756c 7420 5061 ght)..Default Pa
|
|
00000230: 6464 696e 673a 2020 2020 2020 2020 6c65 dding: le
|
|
00000240: 6674 2031 2c20 7269 6768 7420 310d 0a44 ft 1, right 1..D
|
|
00000250: 6566 6175 6c74 204b 696c 6c62 6c61 6e6b efault Killblank
|
|
00000260: 3a20 2020 2020 2079 6573 0d0a 5461 6773 : yes..Tags
|
|
00000270: 3a20 2020 2020 2020 2020 2020 2020 2020 :
|
|
00000280: 2020 2020 7369 6d70 6c65 2c20 7072 6f67 simple, prog
|
|
00000290: 7261 6d6d 696e 672c 2062 6f78 0d0a 456c ramming, box..El
|
|
000002a0: 6173 7469 6320 5368 6170 6573 3a20 2020 astic Shapes:
|
|
000002b0: 2020 2020 2020 4e2c 2045 2c20 532c 2057 N, E, S, W
|
|
000002c0: 0d0a 4465 6669 6e65 6420 5368 6170 6573 ..Defined Shapes
|
|
000002d0: 3a20 2020 2020 2020 2020 204e 573a 2022 : NW: "
|
|
000002e0: 2f2a 2220 0d0a 2020 2020 2020 2020 2020 /*" ..
|
|
000002f0: 2020 2020 2020 2020 2020 2020 2020 2020
|
|
00000300: 4e3a 2022 2a22 200d 0a20 2020 2020 2020 N: "*" ..
|
|
00000310: 2020 2020 2020 2020 2020 2020 2020 2020
|
|
00000320: 2020 4e45 3a20 222a 2f22 200d 0a20 2020 NE: "*/" ..
|
|
00000330: 2020 2020 2020 2020 2020 2020 2020 2020
|
|
00000340: 2020 2020 2020 2045 3a20 222a 2f22 200d E: "*/" .
|
|
00000350: 0a20 2020 2020 2020 2020 2020 2020 2020 .
|
|
00000360: 2020 2020 2020 2020 2020 5345 3a20 222a SE: "*
|
|
00000370: 2f22 200d 0a20 2020 2020 2020 2020 2020 /" ..
|
|
00000380: 2020 2020 2020 2020 2020 2020 2020 2053 S
|
|
00000390: 3a20 222a 2220 0d0a 2020 2020 2020 2020 : "*" ..
|
|
000003a0: 2020 2020 2020 2020 2020 2020 2020 2020
|
|
000003b0: 2053 573a 2022 2f2a 2220 0d0a 2020 2020 SW: "/*" ..
|
|
000003c0: 2020 2020 2020 2020 2020 2020 2020 2020
|
|
000003d0: 2020 2020 2020 573a 2022 2f2a 2220 0d0a W: "/*" ..
|
|
:EOF
|