Beispiel #1
0
def test_sparkline_nan():
    assert sparkline.sparkify([float("nan"), 2, 3]) == u" ▁█"
Beispiel #2
0
def test_sparkline_empty():
    assert sparkline.sparkify([]) == u""
Beispiel #3
0
def test_sparkline():
    assert sparkline.sparkify([1, 2, 3]) == u"▁▅█"
Beispiel #4
0
def test_sparkline_1finite():
    assert sparkline.sparkify([float("inf"), 2, float("-inf")]) == u" ▁ "
Beispiel #5
0
def test_sparkline_0finite():
    assert sparkline.sparkify([float("inf"),
                               float("nan"),
                               float("-inf")]) == u""
Beispiel #6
0
def test_sparkline_inf():
    assert sparkline.sparkify([float("inf"), 2, 3]) == u" ▁█"
Beispiel #7
0
def test_sparkline_nan():
    assert sparkline.sparkify([float('nan'), 2, 3]) == u' ▁█'
Beispiel #8
0
def test_sparkline_0finite():
    assert sparkline.sparkify([float('inf'),
                               float('nan'),
                               float('-inf')]) == u''
Beispiel #9
0
def test_sparkline_1finite():
    assert sparkline.sparkify([float('inf'), 2, float('-inf')]) == u' ▁ '
Beispiel #10
0
def test_sparkline_inf():
    assert sparkline.sparkify([float('inf'), 2, 3]) == u' ▁█'