Coverage for hdl_registers/generator/test/test_reserved_keywords.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.generator.reserved_keywords import RESERVED_KEYWORDS
14def test_is_all_lowercase():
15 # The check for reserved keywords is done with a lowercase argument, hence everything in the set
16 # of reserved keywords must also be lowercase for this mechanism to work.
17 for keyword in RESERVED_KEYWORDS:
18 assert keyword.islower(), keyword