@@ -564,37 +564,37 @@ def test_numericIntExp(self):
564
564
def test_numericIntFrcExp (self ):
565
565
input = "1.337E40"
566
566
output = ujson .decode (input )
567
- self .assertEquals (output , json .loads (input ))
567
+ self .assertAlmostEqual (output , json .loads (input ))
568
568
569
569
def test_decodeNumericIntExpEPLUS (self ):
570
570
input = "1337E+40"
571
571
output = ujson .decode (input )
572
- self .assertEquals (output , json .loads (input ))
572
+ self .assertAlmostEqual (output , json .loads (input ))
573
573
574
574
def test_decodeNumericIntExpePLUS (self ):
575
575
input = "1.337e+40"
576
576
output = ujson .decode (input )
577
- self .assertEquals (output , json .loads (input ))
577
+ self .assertAlmostEqual (output , json .loads (input ))
578
578
579
579
def test_decodeNumericIntExpE (self ):
580
580
input = "1337E40"
581
581
output = ujson .decode (input )
582
- self .assertEquals (output , json .loads (input ))
582
+ self .assertAlmostEqual (output , json .loads (input ))
583
583
584
584
def test_decodeNumericIntExpe (self ):
585
585
input = "1337e40"
586
586
output = ujson .decode (input )
587
- self .assertEquals (output , json .loads (input ))
587
+ self .assertAlmostEqual (output , json .loads (input ))
588
588
589
589
def test_decodeNumericIntExpEMinus (self ):
590
590
input = "1.337E-4"
591
591
output = ujson .decode (input )
592
- self .assertEquals (output , json .loads (input ))
592
+ self .assertAlmostEqual (output , json .loads (input ))
593
593
594
594
def test_decodeNumericIntExpeMinus (self ):
595
595
input = "1.337e-4"
596
596
output = ujson .decode (input )
597
- self .assertEquals (output , json .loads (input ))
597
+ self .assertAlmostEqual (output , json .loads (input ))
598
598
599
599
def test_dumpToFile (self ):
600
600
f = StringIO .StringIO ()
0 commit comments