Fix single article NNTP overview ranges

This commit is contained in:
Phuc Nguyen 2026-06-15 10:08:49 +07:00
parent 7a90c50242
commit 5a2a9dcc2d
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,10 @@
package nntpd
import "testing"
func TestParseRangeSingleArticle(t *testing.T) {
low, high := parseRange("5")
if low != 5 || high != 5 {
t.Fatalf(`parseRange("5") = %d, %d; want 5, 5`, low, high)
}
}