00001 # This file is Copyright 2003, 2006, 2007, 2009 Dean Hall. 00002 # 00003 # This file is part of the Python-on-a-Chip program. 00004 # Python-on-a-Chip is free software: you can redistribute it and/or modify 00005 # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1. 00006 # 00007 # Python-on-a-Chip is distributed in the hope that it will be useful, 00008 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00010 # A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 00011 # is seen in the file COPYING up one directory from this. 00012 00013 # 00014 # System Test 003 Unrelated to issue #3. 00015 # A module that has two simple functions, and calls them via main(). 00016 # 00017 00018 00019 def a(a1, a2): 00020 """ 00021 Return the sum of a1 and a2. 00022 """ 00023 return a1 + a2 00024 00025 00026 def b(b1, b2): 00027 """ 00028 Return the difference between b1 and b2. 00029 """ 00030 return b1 - b2 00031 00032 00033 def main(): 00034 a(2, 5) 00035 b(2, 6) 00036 return 00037 00038 00039 main()