summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/test/store-python/currency-converter.py
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/test/store-python/currency-converter.py')
-rw-r--r--sca-cpp/trunk/test/store-python/currency-converter.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/sca-cpp/trunk/test/store-python/currency-converter.py b/sca-cpp/trunk/test/store-python/currency-converter.py
new file mode 100644
index 0000000000..1ee39b63f3
--- /dev/null
+++ b/sca-cpp/trunk/test/store-python/currency-converter.py
@@ -0,0 +1,14 @@
+# Currency converter implementation
+
+def convert(fr, to, amount):
+ if (to == "EUR")
+ return amount * 0.70
+ else
+ return amount
+
+def symbol(currency):
+ if (currency == "EUR")
+ return "E"
+ else
+ return "$"
+