diff options
Diffstat (limited to 'cpp/sca/test/store-script/currency-converter.scm')
-rw-r--r-- | cpp/sca/test/store-script/currency-converter.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/sca/test/store-script/currency-converter.scm b/cpp/sca/test/store-script/currency-converter.scm new file mode 100644 index 0000000000..7f58335951 --- /dev/null +++ b/cpp/sca/test/store-script/currency-converter.scm @@ -0,0 +1,9 @@ +; Currency converter implementation + +(define (convert from to amount) + (if (equal? to "EUR") (* amount 0.70) amount) +) + +(define (symbol currency) + (if (equal? currency "EUR") "E" "$") +) |