beam: fix hardcoded sys.path in test_lcs/toposort + make merge_intervals discoverable

This commit is contained in:
beam committed 2026-10-23 15:13:46 +00:00
1 parent 23eaa56f05
commit a960d5a700
3 files changed
+9 -5

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import sys
sys.path.insert(0, "/root/.hermes/wizard-outputs/beam")
import os, sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from lcs import lcs_length, lcs, lcs_diff
+5 -1
View File
@@ -30,4 +30,8 @@ def test_dup():
if __name__=="__main__":
for n in [x for x in globals() if x.startswith("test_")]:
globals()[n]()
print("ALL TESTS PASSED")
print("ALL TESTS PASSED")
# Run at import time so unittest discover exercises these cases.
for n in [x for x in globals() if x.startswith("test_")]:
globals()[n]()
+2 -2
View File
@@ -1,5 +1,5 @@
import sys
sys.path.insert(0, "/root/.hermes/wizard-outputs/beam")
import os, sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from toposort import topo_sort
def check(name, cond):