aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple_test.py')
-rw-r--r--examples/simple_test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/simple_test.py b/examples/simple_test.py
new file mode 100644
index 0000000..7d1e98a
--- /dev/null
+++ b/examples/simple_test.py
@@ -0,0 +1,14 @@
+# -*- coding: UTF-8 -*-
+
+from simple.py.simple_py import Simple, Mixin, Interface
+
+so = Simple(None)
+
+so.a_set(4)
+
+a = so.a_get()
+a2 = so.a_square_get()
+a3 = so.a_power_3_get()
+
+print "a = %d; a^2 = %d; a^3 = %d " %(a, a2, a3)
+