Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

geecach项目的测试文件BUG反馈 #91

Open
SaltedFish555 opened this issue Jan 17, 2025 · 1 comment
Open

geecach项目的测试文件BUG反馈 #91

SaltedFish555 opened this issue Jan 17, 2025 · 1 comment

Comments

@SaltedFish555
Copy link

gee-cache/day1-lru/geecache/lru/lru_test.go中的 20-21 行,
if _, ok := lru.Get("key2"); ok {
t.Fatalf("cache miss key2 failed")
}
这里应该是!ok吧?返回false才代表没命中缓存。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@SaltedFish555 and others