Test a function: Difference between revisions
Content added Content deleted
m (→{{header|Go}}: updated output for current tool) |
|||
Line 464: | Line 464: | ||
=={{header|Go}}== |
=={{header|Go}}== |
||
Using Go's standard command, |
Using Go's standard command, go test. |
||
<lang go>package pal |
<lang go>package pal |
||
Line 496: | Line 496: | ||
} |
} |
||
}</lang> |
}</lang> |
||
Output of |
Output of go test: |
||
<pre> |
<pre> |
||
rm -f _test/pal.a |
|||
6g -p pal -o _gotest_.6 pal.go pal_test.go |
|||
rm -f _test/pal.a |
|||
gopack grc _test/pal.a _gotest_.6 |
|||
PASS |
PASS |
||
ok pal 0.002s |
|||
</pre> |
</pre> |
||