Sebastien Binet
6d80c41494
bind: add test script for interfaces
...
Change-Id: Iba3902544ebf5e1d0a7846803bcb628518334f7b
2015-08-14 13:31:28 +02:00
Sebastien Binet
c1d3b45735
bind: first stab at a gopy object model
2015-08-14 13:04:35 +02:00
Sebastien Binet
c8ce550bd3
examples/iface: expand test
...
Change-Id: Ibe437b2af33ec9adcf136e51acf50bbc5f4e18b7
2015-08-14 13:01:21 +02:00
Sebastien Binet
14b9cb2dba
bind: test for sq_inplace_concat
...
Change-Id: I4f25f62647cc99a7397afbb5f5bba1dee5484e3d
2015-08-12 19:07:09 +02:00
Sebastien Binet
e4d704fa3f
bind: fix typo in named-test
...
Change-Id: I761a1bd9b72e38f41198e681cb830766258a681e
2015-08-12 18:53:28 +02:00
Sebastien Binet
4c77c90e70
bind: test ctors for arrays+slices
...
Change-Id: I35a72f532713fa0a2668ec98080b715f01dbcae1
2015-08-12 18:13:32 +02:00
Sebastien Binet
41f904d5cc
bind: add test for pointers
...
(but disabled for now)
Updates #45
Change-Id: I0c8a2cce45f99d36ffb62b1f8f85f20703c00acb
2015-08-12 11:30:47 +02:00
Sebastien Binet
f6940af31c
bind: test typed constants and typenamed vars
2015-08-12 11:25:23 +02:00
Sebastien Binet
4db01df52d
bind: test docstrings of named types' methods
...
Change-Id: Ib625a14a09f9ce83bc814b9b8c0d431bddbce639
2015-08-12 08:49:06 +02:00
Sebastien Binet
5c74378c29
examples/cpkg: fix c-compilation warning
...
Compiling with `-Wformat-security` resulted in:
```sh
gopy/_examples/cpkg/cpkg.go: In function ‘cpkg_printf’:
gopy/_examples/cpkg/cpkg.go:11:2: warning: format not a string literal and no format arguments [-Wformat-security]
```
This CL is an attempted at fixing that.
2015-08-11 21:12:19 +02:00
Sebastien Binet
7852de8d4b
bind: test empty structs
...
Change-Id: I9d30488e9dbc6244fa891a6a43725db775fe9ab1
2015-08-11 19:04:15 +02:00
Sebastien Binet
536b44dd2a
bind: test more basic named types ctor
...
Change-Id: Ibc519364561f464c2d00fd3836b3d01a4ce29a92
2015-08-11 18:55:57 +02:00
Sebastien Binet
90fb7cc80b
bind: test for ctors of named (basic) types
...
Change-Id: I8905392331546aa730652cee0a2192449964ef6d
2015-08-11 18:43:08 +02:00
Sebastien Binet
5d2cebb740
bind: test methods on named types
...
Change-Id: I054630e4973db94c132e17e99a1a8ff084fcea0f
2015-08-11 17:47:23 +02:00
Sebastien Binet
81520d13a5
bind: test type-check for struct-setters
...
Change-Id: Ic5a1afd53f60e5295e20cb4e4d0358fe87b1efc3
2015-08-10 19:23:16 +02:00
Sebastien Binet
8beaac7ff9
bind: test for kwargs for {hi.Couple,hi.People}.__init__
...
Change-Id: Idc35c979e4e67e26a8106aa05666e332834567d4
2015-08-10 18:02:49 +02:00
Sebastien Binet
8b6833f2ee
bind: test for empty packages
...
Change-Id: Iae1409084727254055e922e931df414dbd7db64d
2015-08-10 16:32:31 +02:00
Sebastien Binet
73845d817e
bind: add test for 'simple' package
...
Change-Id: If0bd1c6ba29d4916990c756bec25e2e80da94c6d
2015-08-10 15:38:06 +02:00
Sebastien Binet
73f11b29bb
test: add copyrights
...
Change-Id: I7ec6c4926b2d1bc8ed10cbe290cd033cff7e489d
2015-08-10 15:28:26 +02:00
Sebastien Binet
e4c2aa347a
bind: test for tp_call
...
Change-Id: Ibd4db613a7ba2256a195e79ad66314cad1aea40a
2015-08-10 15:28:26 +02:00
Sebastien Binet
bcd5c2f64a
examples: make sure stdout is flushed
...
Change-Id: I95af7f5d5452a42b082d2226462ca946049c2a08
2015-08-10 10:00:57 +02:00
Sebastien Binet
e4cb25c2e4
all: use cpkg to print via C-stdio so outputs are sync'd with python's i/o layer
...
Change-Id: If1dfa6e3cbb74cf4cd4852ea6db850c3318b388b
2015-08-10 09:41:44 +02:00
Sebastien Binet
85958438a3
examples: add a cgo-based package
...
Change-Id: I602af8071eff4f38bdea1817acbcba98de2720c1
2015-08-10 09:26:06 +02:00
Sebastien Binet
811082d270
test: create different types of arrays of funcs
...
Change-Id: Iee24ba18e4d0bd376c2a72d7b9315fb3004ef554
2015-08-07 18:26:12 +02:00
Sebastien Binet
c8b2a0576b
test: typo
...
Change-Id: I3dc1c61faee5fa066c73dab7c65fe45caff51587
2015-08-07 09:53:39 +02:00
Sebastien Binet
5327900302
bind: extend funcs testcase
...
Change-Id: I1b3ddb93c41022ea255c00b61a0e371a120ac613
2015-08-07 09:28:29 +02:00
Sebastien Binet
983aa8195c
gopy: add focused examples (named,iface,funcs)
...
Change-Id: I635f215149888e356621992504620e283de5b37c
2015-08-07 09:23:09 +02:00
Sebastien Binet
df3502d45c
examples: add a very simple package for benchmarking
...
Change-Id: I23fd2b578a8c2217e96f9e3e2f879f2a43ece93d
2015-08-06 17:57:00 +02:00
Sebastien Binet
b8a602ce56
bind: minimal test of basic/named types
...
Change-Id: Ia268426cb8bd56a3884b4e970969002d7b849156
2015-08-06 16:49:27 +02:00
Sebastien Binet
806eaacb48
bind: test buffer protocol
...
Change-Id: I41744bf84a6dc87ee8a372e490068465c248ddd1
2015-08-06 10:01:00 +02:00
Sebastien Binet
ba12ccb5ef
bind: test __setitem__
...
Change-Id: I97c4d6f410b0995f0d34762918b58828da5ae94f
2015-08-05 19:42:24 +02:00
Sebastien Binet
631a4f7d59
bind: test __getitem__
...
Change-Id: Ic566ca370f15206288cf493e4a586e8e996a3b93
2015-08-05 17:49:42 +02:00
Sebastien Binet
45b32c5643
bind: test __len__
...
Change-Id: I17dbafd6014bcc2ca6faafd46a4bd50fb1693a33
2015-08-05 17:49:42 +02:00
Sebastien Binet
94f02af665
bind: first stab at supporting arrays
2015-08-05 09:22:56 +02:00
Sebastien Binet
d9a04c9f10
test: poor man's test of x-ref GC
...
Change-Id: I674eb89abd2bdc1b4f2505974b6223ec9a19f79d
2015-08-03 13:24:48 +02:00
Sebastien Binet
a1e9c1317a
bind: more tests for Couple
2015-07-31 17:13:45 +02:00
Sebastien Binet
64de09f092
bind: test top-level vars+consts
2015-07-31 16:54:24 +02:00
Sebastien Binet
6cd8c71b94
bind: groundwork+test for structs with struct values
2015-07-30 16:06:31 +02:00
Sebastien Binet
405ce0ee56
bind: test for exception type
2015-07-29 17:46:02 +02:00
Sebastien Binet
1d5a0689b9
bind: test ctors
2015-07-29 17:32:51 +02:00
Sebastien Binet
7fa9bcd9cd
test: add ctor with comma-err
2015-07-29 16:57:53 +02:00
Sebastien Binet
79e0e447cb
test: add another ctor for hi.Person
2015-07-29 16:54:44 +02:00
Sebastien Binet
b08c745bd9
bind: expose ctors at module level. fix ctors doc extraction
2015-07-29 16:54:26 +02:00
Sebastien Binet
a3bdde49c1
bind: test comma-err pythonization
2015-07-29 14:50:02 +02:00
Sebastien Binet
44abf5c71e
bind: test exception support
2015-07-29 14:15:31 +02:00
Sebastien Binet
59a16dec60
bind: test __repr__
2015-07-29 12:37:32 +02:00
Sebastien Binet
36d61b0c8e
test: add method returning an error
2015-07-29 11:57:51 +02:00
Sebastien Binet
d6d6d01ece
bind: test getter/setter
2015-07-29 11:44:37 +02:00
Sebastien Binet
b7b84b89bc
test: hi.Person.String
2015-07-28 10:08:27 +02:00
Sebastien Binet
63da525aa1
bind: test hi.Person.Greet + doc(hi.Person.Greet)
2015-07-27 18:57:27 +02:00