from phovea_server.util import jsonify


class TestCustomEncoders:
  # def test_sets(self):
  #  assert jsonify(set()) == []

  def test_nan_values():
    test_var = float('nan')
    assert jsonify([test_var, 'This', 'is', 'a', 'very', 'complex', 'test', 'case', test_var]) == [null, "This", "is", "a", "very", "complex", "test", "case", null]

from phovea_server.util import jsonify


class TestCustomEncoders:
  # def test_sets(self):
  #  assert jsonify(set()) == []

  def test_nan_values():
    test_var = float('nan')
    assert jsonify([test_var, 'This', 'is', 'a', 'very', 'complex', 'test', 'case', test_var]) == [None, "This", "is", "a", "very", "complex", "test", "case", None]

change null to None