t049.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 # System Test 049
00015 # Tests implementation of obj_isFalse() for Tuple, List and Dict.
00016 #
00017 
00018 
00019 t1 = ()
00020 if t1:
00021     assert 0
00022 
00023 t2 = (2,)
00024 if not t2:
00025     assert 0
00026 
00027 l1 = []
00028 if l1:
00029     assert 0
00030 
00031 l2 = [2,]
00032 if not l2:
00033     assert 0
00034 
00035 d1 = {}
00036 if d1:
00037     assert 0
00038     
00039 d2 = {2:2}
00040 if not d2:
00041     assert 0

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