Commits

vadimtsushko committed 3b5710c

Remove workaround for bug in ByteArray with negative integers.
It is now redundant.
All tests are passing currently

  • Participants
  • Parent commits 17f6764

Comments (0)

Files changed (3)

File lib/bson/binary.dart

     switch(bits) {
       case 32:
         byteArray.setInt32(position,value);        
-        if (value == -1){   
-        // That is temporary workaround on Uint8List broken functionality on negative ints
-        //TODO Remove this, when Uint8List will be repaired         
-          byteList.setRange(position, 4, [255,255,255,255]);          
-        }           
         break;
       case 16: 
         byteArray.setInt16(position,value);

File tests/SelectorBuilderTest.dart

   ObjectId id = new ObjectId();
   SelectorBuilder selector = query().id(id);
   expect(selector is Map && selector.isEmpty()).isFalse();
-  print('Time elapsed: ${Statics.getElapsedTime()}');    
 }
 main(){  
   group("DbCollection tests:", (){

File tests/allTests.dart

 #import("bson/allBsonTests.dart",prefix:"bson");
 #import("SelectorBuilderTest.dart",prefix:"helper");
 main(){
-  Statics.startStopwatch();
   bson.main();
   connection.main();
   cursor.main();