Coverage for hdl_registers/test/test_register_modes.py: 100%
4 statements
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-01 20:50 +0000
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-01 20:50 +0000
1# --------------------------------------------------------------------------------------------------
2# Copyright (c) Lukas Vik. All rights reserved.
3#
4# This file is part of the hdl-registers project, an HDL register generator fast enough to run
5# in real time.
6# https://hdl-registers.com
7# https://github.com/hdl-registers/hdl-registers
8# --------------------------------------------------------------------------------------------------
10# First party libraries
11from hdl_registers.register_modes import REGISTER_MODES
14def test_dictionary_key_is_equal_to_shorthand():
15 for key, mode in REGISTER_MODES.items():
16 assert key == mode.shorthand