There are a bunch of unit tests to ensure a decent quality of asn1tools.
Below is a short description of each test suite.
Codec specific encoding and decoding tests, as the codecs have different sets of visible constraints which affects the encoding. PER/UPER/OER uses constraints to make a compact encoding, while XER/JER/BER/DER/GSER does not. The idea is to test relevant constructs for each codec.
Tests that all codecs have a common behaviour. Lately common/basic ASN.1 constructs are encoded and decoded for all codecs in the same file. The plan is to create a new file, test_all_codecs.py, and move the encoding/decoding tests there.
This file tests the frontend parser module, and verifies that the ASN.1-files are correctly converted to the internal Python format.
Tests the pre processing compilation step and various compilation errors that are codec independent.
Tests the command line interface.
Tests the constraints checker module.
Tests the type checker module.
Tests various utility functions in the codecs module.