File size: 442 Bytes
db6c8f1
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations

import inspect

from ouroboros_replay.replay import KERNEL_NAMES, compute_all

def test_derivation_inventory_is_exact() -> None:
    assert len(KERNEL_NAMES) == 49
    assert len(set(KERNEL_NAMES)) == 49

def test_compute_path_cannot_read_expected_answers() -> None:
    source = inspect.getsource(compute_all).lower()
    assert "reference" not in source
    assert "expected" not in source