Example #1
0
def test_map_none():
    def fn(x):
        return x

    assert core.map_none(None, fn) == None
    assert core.map_none("not none", fn) == "not none"
Example #2
0
def test_map_none():
  def fn(x): return x
  assert core.map_none(None, fn) == None
  assert core.map_none("not none", fn) == "not none"