From a87e8a7fd115961512ab7a713e2aefecf96c29d3 Mon Sep 17 00:00:00 2001 From: Sebastien Binet <binet@cern.ch> Date: Wed, 27 Sep 2017 18:38:08 +0200 Subject: [PATCH] gopy: add test for issue-147 --- _examples/named/named.go | 4 ++++ _examples/named/test.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/_examples/named/named.go b/_examples/named/named.go index d6813bb2..545fb4e0 100644 --- a/_examples/named/named.go +++ b/_examples/named/named.go @@ -44,3 +44,7 @@ type T int func (t T) PublicMethod() {} func (t T) privateMethod() {} + +func Xs() []X { + return []X{1, 2, 3} +} diff --git a/_examples/named/test.py b/_examples/named/test.py index 19293b09..a7f51ea7 100644 --- a/_examples/named/test.py +++ b/_examples/named/test.py @@ -125,3 +125,7 @@ print("s = named.Slice(xrange(10))") s = named.Slice(xrange(10)) print("s = %s" % (s,)) + +print("xs = named.Xs()") +xs = named.Xs() +print("xs = %s" % (xs,))