From 08799919c9b9d93f695d56c5e8846f589785ac08 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Fri, 14 Aug 2015 13:29:41 +0200 Subject: [PATCH] bind: test func taking pointers Change-Id: Ib281c5e8b88930a5e9515cabe5f8a414911a2240 --- _examples/pointers/test.py | 16 ++++++++++++++++ main_test.go | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/_examples/pointers/test.py b/_examples/pointers/test.py index de7e024..93e713f 100644 --- a/_examples/pointers/test.py +++ b/_examples/pointers/test.py @@ -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,)) + diff --git a/main_test.go b/main_test.go index 03c3998..0c3fd2f 100644 --- a/main_test.go +++ b/main_test.go @@ -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 `), })