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

Go-koans 无法 test 通过

  •  
  •   livc ·
    livc · 2016-08-21 22:30:28 +08:00 · 672 次点击
    这是一个创建于 2841 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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-08-21 22:47:25 +08:00
    这个项目类似小题目集,让你自己理解代码吧结果写上去
    所以并不是直接能通过的
    livc
        2
    livc  
    OP
       2016-08-21 22:53:27 +08:00
    @kotokz 原来是这个意思,我还以为先 test 通过才写代码,谢谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2100 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:40 · PVG 09:40 · LAX 18:40 · JFK 21:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.