harness: ajieval checkpoint (M checkpoint / P6A-9 rows; n/a for fields a record lacks)
This commit is contained in:
1 parent
c1391eb3c5
commit
4aa9183e78
4 files changed
+151
No files matched your search
@@ -264,6 +264,17 @@ class NativeTest(unittest.TestCase):
|
||||
self.assertEqual(native.normalize_usage({"input": 40, "cache_read": 60, "cache_creation": 0, "output": 5})["input"], 100)
|
||||
|
||||
|
||||
class CheckpointTest(unittest.TestCase):
|
||||
def test_diagnostic_buckets(self):
|
||||
b = report._diagnostic_buckets({"E0001": 2, "E0006": 1, "E5001": 3, "E5002": 1, "E1001": 4, "E7005": 2, "E7003": 1,
|
||||
"E2001": 1, "E2101": 2, "E2104": 1, "E3002": 1, "E4304": 1, "T0001": 1, "E3101": 5})
|
||||
self.assertEqual(b["E0001-E0006"], 3)
|
||||
self.assertEqual(b["ir_form_total"], 7)
|
||||
self.assertEqual((b["E1001"], b["E7005"], b["other_E7xxx"]), (4, 2, 1))
|
||||
self.assertEqual((b["ownership"], b["borrow"], b["resource"], b["concurrency"], b["runtime_traps"]), (1, 3, 1, 1, 1))
|
||||
self.assertEqual(b["other"], 5) # effects and capabilities are not dropped
|
||||
|
||||
|
||||
class CyclesTest(unittest.TestCase):
|
||||
def test_repair_cycles_from_commands(self):
|
||||
from ajieval import native
|
||||
|
||||
Reference in new issue
Block a user