V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
livc
0D

Go-koans 无法 test 通过

  •  
  •   livc ·
    livc · 2016 年 8 月 21 日 · 1152 次点击
    这是一个创建于 3533 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 ……

    2 条回复    2016-08-21 22:53:27 +08:00
    kotokz
        1
    kotokz  
       2016 年 8 月 21 日
    这个项目类似小题目集,让你自己理解代码吧结果写上去
    所以并不是直接能通过的
    livc
        2
    livc  
    OP
       2016 年 8 月 21 日
    @kotokz 原来是这个意思,我还以为先 test 通过才写代码,谢谢!
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   886 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 20:08 · PVG 04:08 · LAX 13:08 · JFK 16:08
    ♥ Do have faith in what you're doing.