Go-koans 无法 test 通过

2016-08-21 22:30:28 +08:00
 livc

https://github.com/cdarwin/go-koans

这个项目。

➜  go-koans git:(master) go test

about_basics.go:4
assert(__bool__ == true)  // what is truth?

exit status 1
FAIL    _/root/go-koans 0.002s

官方的文档没看懂,他说

Make the failing tests pass, by replacing these types of __variables__ with real values.

是什么意思呀?而且这个 repo 也没有 issue ……

686 次点击
所在节点    Go 编程语言
2 条回复
kotokz
2016-08-21 22:47:25 +08:00
这个项目类似小题目集,让你自己理解代码吧结果写上去
所以并不是直接能通过的
livc
2016-08-21 22:53:27 +08:00
@kotokz 原来是这个意思,我还以为先 test 通过才写代码,谢谢!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/300829

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX