t050.py

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 # Feature Test for Issue #50
00015 #
00016 # Integrate __LINE__ into PM_RAISE
00017 #
00018 # To check that PM_RAISE works, I made a simple code snippet below that
00019 # will exercise specific functions in int.c
00020 #
00021 
00022 n = 1
00023 
00024 n0 = +n
00025 assert n0 == 1
00026 
00027 n1 = ~n
00028 assert n1 == -2
00029 
00030 n2 = -n
00031 assert n2 == -1

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