t281.py

00001 #
00002 # PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
00003 # Copyright 2010 Dean Hall.  All rights reserved.
00004 # PyMite is offered through one of two licenses: commercial or open-source.
00005 # See the LICENSE file at the root of this package for licensing details.
00006 #
00007 
00008 #
00009 # System Test 281
00010 # Fix float comparisons
00011 #
00012 
00013 a = 3.4e-15
00014 b = 3.5e-15
00015 print "a == b ?", a == b
00016 assert not (a == b)
00017 assert a != b

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