mirror of https://github.com/go-python/gopy.git
bind: test func taking pointers
Change-Id: Ib281c5e8b88930a5e9515cabe5f8a414911a2240
This commit is contained in:
parent
44026ff053
commit
08799919c9
|
@ -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,))
|
||||
|
||||
|
|
|
@ -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
|
||||
`),
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue