Implement tests.
This commit is contained in:
27
tests/test_iec.py
Normal file
27
tests/test_iec.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
AuDaGe IEC tests
|
||||
|
||||
name: test_iec.py
|
||||
by: Josh Lucas
|
||||
date: 2026-09-14
|
||||
|
||||
desc: Unit tests for the AuDaGe IEC module.
|
||||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
from AuDaGe import iec
|
||||
|
||||
class TestIEC(unittest.TestCase):
|
||||
""""""
|
||||
|
||||
def test_iec_definitions(self):
|
||||
iec_definitions = iec.iec_definitions()
|
||||
self.assertTrue(iec_definitions.is_valid())
|
||||
self.assertEqual(
|
||||
iec_definitions.shape,
|
||||
(len(iec.DataTypes.__members__), 7)
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main(failfast=True)
|
||||
Reference in New Issue
Block a user