summaryrefslogtreecommitdiff
path: root/tests/plugins/kaitai
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-09 22:49:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-09 22:49:59 (GMT)
commit7c6fe94c90d320813d0d78a9dbef707696f31505 (patch)
tree912b5c51469c02e6ef680c0c60739787ccff4891 /tests/plugins/kaitai
parentcb05b99a8c451ff80d88f988e2654c794b0f3750 (diff)
Support some last missing features from Kaitai: bit fields, instance search order and stream EOF.
Diffstat (limited to 'tests/plugins/kaitai')
-rw-r--r--tests/plugins/kaitai/language.py4
-rw-r--r--tests/plugins/kaitai/rost.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/kaitai/language.py b/tests/plugins/kaitai/language.py
index b1e8881..43b6185 100644
--- a/tests/plugins/kaitai/language.py
+++ b/tests/plugins/kaitai/language.py
@@ -1312,8 +1312,8 @@ instances:
self.assertEqual(parsed.result_0.value.value, b'\x01\x02\x03\x04\x05\x06\x07\x08\x09')
- self.assertEqual(type(parsed.result_1).__name__, 'RecordValue') # result_1
- self.assertEqual(type(parsed.result_1.value).__name__, 'RecordValue') # result_1.ref
+ self.assertEqual(type(parsed.result_1).__name__, 'RecordDelayed') # result_1
+ self.assertEqual(type(parsed.result_1.value).__name__, 'RecordDelayed') # result_1.ref
self.assertEqual(type(parsed.result_1.value.value).__name__, 'RecordList') # result_1.ref.table
self.assertEqual(parsed.result_1.value.value[3].value, 0x04)
diff --git a/tests/plugins/kaitai/rost.py b/tests/plugins/kaitai/rost.py
index 1950222..4a29ef8 100644
--- a/tests/plugins/kaitai/rost.py
+++ b/tests/plugins/kaitai/rost.py
@@ -25,7 +25,7 @@ class TestScansWithKaitai(ChrysalideTestCase):
cls._options.backend_for_data = AcismBackend
- def ZZZtestSimpleKaitaiDefinitionForScanning(self):
+ def testSimpleKaitaiDefinitionForScanning(self):
"""Rely on basic Kaitai simple definition for scanning."""
definitions = '''