Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.14"
dependencies = ["pytest>=9.0.2", "pytest-html>=4.2.0", "pytest-sugar>=1.1.1"]
dependencies = [
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pytest-gremlins>=1.8.0",
"pytest-html>=4.2.0",
"pytest-sugar>=1.1.1",
]

[dependency-groups]
dev = ["ruff>=0.15.1"]
Expand All @@ -16,3 +22,4 @@ addopts = [
"--html=reports/pytest_html/index.html",
"--self-contained-html",
]
pythonpath = ["src"]
6 changes: 1 addition & 5 deletions src/tcas/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ def altitude_separation_test(state: State) -> int:
and (state.own_tracked_alt_rate <= 600)
and (state.current_vertical_sep > 600)
) and (
(
(state.other_capability == 1)
and (state.two_of_three_reports_valid and state.other_rac == 0)
)
or not (state.other_capability == 1)
((state.other_capability == 1)and (state.two_of_three_reports_valid and state.other_rac == 0)) or not (state.other_capability == 1)
):
need_upward_RA = non_crossing_biased_climb(state) and own_below_threat(state)
need_downward_RA = non_crossing_biased_descend(state) and own_above_threat(
Expand Down
Empty file added test/__init__.py
Empty file.
Empty file added test/clause/__init__.py
Empty file.
311 changes: 311 additions & 0 deletions test/clause/test_altitude_separation_test.py

Large diffs are not rendered by default.

Empty file added test/predicate/__init__.py
Empty file.
Loading