This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 163
./two-sum_test.go:48:20: undefined: twoSum #1
Comments
请使用 go test 命令 |
另外,不要直接下载整个目录,请按照这个方法使用。 https://github.com/aQuaYi/LeetCode-in-Go#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95 |
非常感谢您耐心细致的指导! |
@pioneerlfn 不用客气。 |
不造为啥,这个问题一直存在,按您说的方法测试也还是会以同样的原因失败。 |
@pioneerlfn 什么问题一直存在,请上图或说明细节。 |
@aQuaYi 用go get获取到您的源码,然后go test 运行的时候,还是会提示two-sum_test.go 中twoSum函数未定义。(不好意思用github没多久,提问方式可能不太好,还请谅解。) |
aQuaYi
added a commit
that referenced
this issue
Jan 11, 2020
Merge pull request #1 from aQuaYi/master
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
在ide或者终端go run 的时候,都会提示./two-sum_test.go:48:20: undefined: twoSum。
但是明明two-sum_test.go 跟two-sum.go在同一个包啊,请问是什么原因呢?
The text was updated successfully, but these errors were encountered: