anchor.diff:    }
   }
   
  +void testGetDirections(DirectionSystem directionSystem, List directions, List<Map> expectedDirections) {
  +  for (int i = 0; i < directions.length; i++) {
  +    testDirection(directionSystem.getDirection(directions[i]), expectedDirections[i]["x"], expectedDirections[i]["y"]);
  +  }
  +}
  +
   num _makeRadians(num angles) => angles * (PI / 180);
  
positive.code:     });
    });
  
    group("GetDirection", () {});
  
    group("NullMainDirection", () {
      DirectionSystem directionSystem;
  
negative.code:     tearDown(() {
        directionSystem = null;
      });
      test("Rotate 45 angles diagonal directions", () {
        directionSystem.rotateDirectionsAngles(45);
        testDirection(directionSystem.upLeftDirection, -1, 0);
        testDirection(directionSystem.upRightDirection, 1, 0);
        testDirection(directionSystem.downLeftDirection, 0, -1);
        testDirection(directionSystem.downRightDirection, 0, 1);
      });
      test("Rotate 90 angles main directions", () {
        directionSystem.rotateDirectionsAngles(90);
        testDirection(directionSystem.upDirection, 1, 0);
        testDirection(directionSystem.downDirection, -1, 0);
        testDirection(directionSystem.leftDirection, 0, -1);
        testDirection(directionSystem.rightDirection, 0, 1);
      });
    });
  
  