more fuzzed fixes

This commit is contained in:
2024-03-30 20:10:41 -04:00
parent 6aa1219f2e
commit 377c3b02b7
12 changed files with 152 additions and 33 deletions

12
testdata/dragon.cow vendored
View File

@@ -1,10 +1,8 @@
_____________________________________
/ this is a long block of text. \
| |
| |
| It goes over many lines! It'll even |
\ word-wrap for us. /
-------------------------------------
_______________________________________
/ this is a long block of text. It goes \
| over many lines! It'll even word-wrap |
\ for us. /
---------------------------------------
\ ^ /^
\ / \ // \
\ |\___/| / \// .\

11
testdata/fortune.cow vendored Normal file
View File

@@ -0,0 +1,11 @@
_____________________________________
/ Most people eat as though they were \
| fattening themselves for market. |
| |
\ -- E.W. Howe /
-------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

View File

@@ -0,0 +1,2 @@
go test fuzz v1
string("0 \n0")

View File

@@ -0,0 +1,2 @@
go test fuzz v1
string("0000000000000000000000000000000000000000000000000000000000000000000000000000000")

View File

@@ -0,0 +1,2 @@
go test fuzz v1
string("0 \n 0")

View File

@@ -0,0 +1,2 @@
go test fuzz v1
string("0\r0")

View File

@@ -1,10 +1,8 @@
_____________________________________
/ this is a long block of text. \
| |
| |
| It goes over many lines! It'll even |
\ word-wrap for us. /
-------------------------------------
_______________________________________
/ this is a long block of text. It goes \
| over many lines! It'll even word-wrap |
\ for us. /
---------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\

8
testdata/one_paragraph.cow vendored Normal file
View File

@@ -0,0 +1,8 @@
___________
< test text >
-----------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

View File

@@ -1,7 +1,6 @@
______
/ test \
\ text /
------
_______
< test >
-------
\ ^__^
\ (oo)\_______
(__)\ )\/\

11
testdata/two_paragraph_multiline.cow vendored Normal file
View File

@@ -0,0 +1,11 @@
_____________________________________
/ this is a long block of text. \
| |
| It goes over many lines! It'll even |
\ word-wrap for us. /
-------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||