anchor.diff:       ?_assertEqual(0, safe_minimum([23, 0, 1, null])),
        ?_assertEqual(-1, safe_minimum([null, 0, -1, null])),
        ?_assertEqual(-1, safe_minimum(pseudo_values([null, 0, -1, null]))),
  +     ?_assertEqual(5, safe_minimum(pseudo_values([null, 101, 5, null, 32]))),
        ?_assertEqual(null, safe_minimum([]))
       ].
   
  
positive.code:                       S#series{values=process_series_values(S#series.values, fun(X) -> X + Offset end)}
                end, Series);
  
  % removeAboveValue
  evaluate_call(<<"removeAboveValue">>, [Series, Val], _From, _Until, _Now) when is_number(Val) ->
      lists:map(fun(S) ->
  
negative.code:      ?_assertEqual(S3, evaluate_call(<<"mostDeviant">>, [Series, 1], 0, 0, 0))
      ].
  
  offset_to_zero_test_() ->
      Series = pseudo_series([102, 101, 104, 101, 100, 111]),
      Expected = pseudo_series([2, 1, 4, 1, 0, 11]),
      [?_assertEqual(Expected, evaluate_call(<<"offsetToZero">>, [Series], 0, 0, 0))].
  
  sort_non_null_test_() ->
      [?_assertEqual({[], 0}, sort_non_null([])),
       ?_assertEqual({[], 0}, sort_non_null([null, null])),
  