Skip to content

Commit

Permalink
tests(pm4py): added unit tests for RUSTXES
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Oct 31, 2023
1 parent d06e2d3 commit cfda2c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/xes_impexp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ def test_importXESfromGZIP_imp2(self):
log = xes_importer.apply(os.path.join(COMPRESSED_INPUT_DATA, "01_running-example.xes.gz"))
del log

def test_rustxes_xes_import(self):
log = xes_importer.apply(os.path.join(INPUT_DATA_DIR, "receipt.xes"), variant=xes_importer.Variants.RUSTXES)
self.assertEqual(len(log), 1434)

def test_rustxes_xesgz_import(self):
log = xes_importer.apply(os.path.join(INPUT_DATA_DIR, "bpic2012.xes.gz"), variant=xes_importer.Variants.RUSTXES)
self.assertEqual(len(log), 13087)


if __name__ == "__main__":
unittest.main()

0 comments on commit cfda2c2

Please sign in to comment.