t213.py

00001 # This file is Copyright 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 213
00015 # Add support for Python 2.6 bytecodes
00016 #
00017 
00018 # None of tests below are able to create the bytecodes new to Python 2.6.
00019 # So the tests are commented out.
00020 
00021 # Test the *_TRUE_DIVIDE bytecodes
00022 #n = 4
00023 #d = 5
00024 #z = 0
00025 
00026 #assert n/d == 0.8
00027 #assert n//d == 0
00028 
00029 # The following should result in a ZeroDivisionError
00030 #r = n/z
00031 
00032 # Test the STORE_MAP bytecode
00033 #d = {}
00034 #d[0] = 0
00035 #d = {0: 0}

Generated on Mon Oct 18 07:40:47 2010 for Python-on-a-chip by  doxygen 1.5.9