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