summaryrefslogtreecommitdiff
path: root/doc/core/howto/listings/trial/calculus/base_2.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/core/howto/listings/trial/calculus/base_2.py')
-rw-r--r--doc/core/howto/listings/trial/calculus/base_2.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/core/howto/listings/trial/calculus/base_2.py b/doc/core/howto/listings/trial/calculus/base_2.py
new file mode 100644
index 0000000..9644912
--- /dev/null
+++ b/doc/core/howto/listings/trial/calculus/base_2.py
@@ -0,0 +1,14 @@
+# -*- test-case-name: calculus.test.test_base_2 -*-
+
+class Calculation(object):
+ def add(self, a, b):
+ return a + b
+
+ def subtract(self, a, b):
+ return a - b
+
+ def multiply(self, a, b):
+ return a * b
+
+ def divide(self, a, b):
+ return a / b