mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-14 06:47:28 +00:00
Merge pull request #22 from phucnguyen1707/fix-over-single-article
Fix single article NNTP overview ranges
This commit is contained in:
parent
336ff00fa3
commit
0944fa2cb4
2 changed files with 12 additions and 1 deletions
10
internal/news/nntpd/range_test.go
Normal file
10
internal/news/nntpd/range_test.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue