bind: test func taking pointers

Change-Id: Ib281c5e8b88930a5e9515cabe5f8a414911a2240
This commit is contained in:
Sebastien Binet 2015-08-14 13:29:41 +02:00
parent 44026ff053
commit 08799919c9
2 changed files with 16 additions and 3 deletions

View File

@ -13,4 +13,20 @@ print("s = %s" % (s,))
print("s.Value = %s" % (s.Value,))
print("pointers.Inc(s)")
pointers.Inc(s)
print("s.Value = %s" % (s.Value,))
## FIXME(sbinet)
#i = int(42)
#print("i = %s" % (i,))
#print("pointers.IncInt(i)")
#pointers.IncInt(i)
#print("i = %s" % (i,))
## FIXME(sbinet)
#i = pointers.MyInt(3)
#print("i = %s" % (i,))
#print("pointers.IncMyInt(i)")
#pointers.IncMyInt(i)
#print("i = %s" % (i,))

View File

@ -277,7 +277,6 @@ doc(pkg):
}
func TestBindPointers(t *testing.T) {
t.Skip("not ready yet")
t.Parallel()
testPkg(t, pkg{
path: "_examples/pointers",
@ -285,8 +284,6 @@ func TestBindPointers(t *testing.T) {
s = pointers.S{Value:2}
s.Value = 2
pointers.Inc(s)
==> go: s.Value==2
<== go: s.Value==3
s.Value = 3
`),
})