anchor.diff:       ?_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])),
  
positive.code: 
  safe_minimum([]) -> null;
  safe_minimum(Values) ->
      safe_minimum(Values, 0).
  
  safe_minimum([], Min) -> Min;
  safe_minimum([{_TS, null} | Vs], Min) ->
      safe_minimum(Vs, Min);
  safe_minimum([{_TS, Value} | Vs], Min) ->
      safe_minimum(Vs, min(Min, Value));
  safe_minimum([null | Vs], Min) ->
      safe_minimum(Vs, Min);
  safe_minimum([Value | Vs], Min) ->
      safe_minimum(Vs, min(Min, Value)).
  
  
  square_sum([]) -> 0;
  
negative.code:      ?_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([]))
      ].
  
  