summaryrefslogtreecommitdiff
path: root/gopher/gophermap/testdata
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-09-07 15:14:11 -0600
committertjpcc <tjp@ctrl-c.club>2023-09-07 15:16:03 -0600
commit29e710836007c8946d636a68b7dfaea6ee44028b (patch)
treea1d0866bd844d384d7bade3b24bb237495f2d398 /gopher/gophermap/testdata
parentda5d3607c7e51043f425dac87ac723395e092551 (diff)
fix loop exit conditions on extended gophermap parsing
Diffstat (limited to 'gopher/gophermap/testdata')
-rw-r--r--gopher/gophermap/testdata/customlist_output.gophermap2
-rw-r--r--gopher/gophermap/testdata/uptime1
-rw-r--r--gopher/gophermap/testdata/uptime_output.gophermap3
3 files changed, 6 insertions, 0 deletions
diff --git a/gopher/gophermap/testdata/customlist_output.gophermap b/gopher/gophermap/testdata/customlist_output.gophermap
index e5cc99d..0b4e334 100644
--- a/gopher/gophermap/testdata/customlist_output.gophermap
+++ b/gopher/gophermap/testdata/customlist_output.gophermap
@@ -11,4 +11,6 @@ i /customlist.gophermap localhost.localdomain 70
0file4.txt /file4.txt localhost.localdomain 70
1subdir title /subdir localhost.localdomain 70
1subdir2 title /subdir2 localhost.localdomain 70
+9uptime /uptime localhost.localdomain 70
+1uptime_output.gophermap /uptime_output.gophermap localhost.localdomain 70
.
diff --git a/gopher/gophermap/testdata/uptime b/gopher/gophermap/testdata/uptime
new file mode 100644
index 0000000..29ecd64
--- /dev/null
+++ b/gopher/gophermap/testdata/uptime
@@ -0,0 +1 @@
+ 8:44PM up 110 days, 23:28, 1 user, load averages: 0.38, 0.54, 0.47
diff --git a/gopher/gophermap/testdata/uptime_output.gophermap b/gopher/gophermap/testdata/uptime_output.gophermap
new file mode 100644
index 0000000..b5cf09d
--- /dev/null
+++ b/gopher/gophermap/testdata/uptime_output.gophermap
@@ -0,0 +1,3 @@
+i 8:44PM up 110 days, 23:28, 1 user, load averages: 0.38, 0.54, 0.47 /customlist.gophermap localhost.localdomain 70
+i /customlist.gophermap localhost.localdomain 70
+.