anchor.diff:       ?_assertEqual(error, highest_precision_archive(300 * 1000 + 1, [Archive, Archive2]))
       ].
   
  +distribute_points_test_() ->
  +    Archive0 = make_archive_header(0, 10, 360),
  +    Archive1 = make_archive_header(0, 60, 1440),
  +    Archives = [Archive0, Archive1],
  +
  +    [?_assertEqual([{Archive0, [{100, 3}, {110, 2}, {120, 1}]}],
  +                   distribute_points(150, [{120, 1}, {110, 2}, {100, 3}], Archives)),
  +
  +     ?_assertEqual([{Archive0, []}, {Archive1, [{100, 3}, {110, 2}, {120, 1}]}],
  +                   distribute_points(4000, [{120, 1}, {110, 2}, {100, 3}], Archives)),
  +
  +     ?_assertEqual([{Archive0, [{1000, 2}, {1010, 1}]}, {Archive1, [{100, 3}]}],
  +                   distribute_points(4000, [{1010, 1}, {1000, 2}, {100, 3}], Archives)),
  +
  +     ?_assertEqual([{Archive0, []}, {Archive1, []}],
  +                   distribute_points(100000, [{1010, 1}, {1000, 2}, {100, 3}], Archives))
  +    ].
  +
  +sort_by_newest_test_() ->
  +    [?_assertEqual([{120, 3}, {110, 235}, {100, -3.34}],
  +                  sort_by_newest([{110, 235}, {120, 3}, {100, -3.34}]))
  +    ].
  +
  +build_consecutive_points_test_() ->
  +    [?_assertEqual([[{130, 0}, {120, 34623}], [{100, 225}]],
  +                   build_consecutive_points(10, [{100, 225}, {120, 34623}, {130, 0}])),
  +
  +     ?_assertEqual([[{130, 0}, {120, 34623}, {110, 225}]],
  +                   build_consecutive_points(10, [{110, 225}, {120, 34623}, {130, 0}]))
  +    ].
  +
  +
   get_data_point_offset_test_() ->
       Now = erlang:system_time(second),
       Offset = 28,
  
positive.code:     Archive#whisper_archive.offset + (mod(ByteDistance, Archive#whisper_archive.size)).
  
  
  -spec update_point(binary(), number(), integer()) -> tuple().
  update_point(File, Value, TimeStamp) ->
      case file:open(File, [write, read, binary]) of
  
negative.code:          aggregation_value/1,
           fetch/3,
           fetch/4,
           update_point/3,
           update_points/2]).
  
  
  -spec aggregation_type(integer()) -> aggregation().
  