From 29e710836007c8946d636a68b7dfaea6ee44028b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Thu, 7 Sep 2023 15:14:11 -0600 Subject: fix loop exit conditions on extended gophermap parsing --- gopher/gophermap/testdata/customlist_output.gophermap | 2 ++ gopher/gophermap/testdata/uptime | 1 + gopher/gophermap/testdata/uptime_output.gophermap | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 gopher/gophermap/testdata/uptime create mode 100644 gopher/gophermap/testdata/uptime_output.gophermap (limited to 'gopher/gophermap/testdata') 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 +. -- cgit v1.2.3