File: test_segment_mapper.py

package info (click to toggle)
luma.emulator 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,228 kB
  • sloc: python: 690; makefile: 204
file content (16 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017-2020 Richard Hull and contributors
# See LICENSE.rst for details.

"""
Tests for :py:class:`luma.emulator.segment_mapper`.
"""

from luma.emulator.segment_mapper import regular


def test_regular():
    result = [48, 109, 121, 51, 0, 127, 15, 78]
    for index, val in enumerate(regular('1234 BTC')):
        assert val == result[index]