docs: drop the predecessor comparisons from comments and tests

This commit is contained in:
randogoth 2026-10-06 10:27:46 +03:00
parent 36faa4fb93
commit 19e7cfaca3
19 changed files with 65 additions and 73 deletions

View file

@ -348,7 +348,7 @@ fn spartan_serves_gemtext() {
}
#[test]
fn spartan_routes_by_the_host_field_smolweb_discards() {
fn spartan_routes_by_the_host_field() {
let server = Server::start();
assert!(server.send("spartan", b"one.test / 0\r\n").contains("# One"));
assert!(server.send("spartan", b"two.test / 0\r\n").contains("# Two"));
@ -560,8 +560,8 @@ fn nothing_outside_the_root_is_reachable_over_any_protocol() {
// -- Gopher --------------------------------------------------------------
//
// Ported from smolweb's tests/test_gopher.py, where the exact wire bytes are the
// assertion: Gopher has no status line, so framing is all a client has.
// The exact wire bytes are the assertion here: Gopher has no status line, so
// framing is all a client has.
#[test]
fn an_empty_selector_gets_a_one_item_menu() {
@ -591,9 +591,8 @@ fn a_text_item_ends_with_the_lone_dot_terminator() {
#[test]
fn a_missing_selector_is_a_well_formed_text_item() {
// No status to report with, so the error is the item's content. smolweb says
// "Not found." here and "Not found" over HTTP and Nex; one wording is used
// across every protocol instead.
// No status to report with, so the error is the item's content. One wording
// is used across every protocol, so this matches the HTTP and Nex bodies.
let server = Server::start();
assert_eq!(server.send("gopher", b"/nope\r\n"), "Not found\n.\r\n");
}