aclai-lab / aclai-lab/SoleLogics.jl
Equality relation for TruthDicts
- Vorherrschende Sprache
- Julia
- Sterne
- 20
- Forks
- 7
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
The following code is wrong.
```julia
my_model = randmodel(42, 5, 10, [Atom("p"), Atom("q")], BooleanAlgebra())
my_model.assignment == deepcopy(my_model.assignment)
```
The assignment within `my_model::KripkeModel` is a `TruthDict`, but it happens that a truth dict is never equal to itself.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Look at the TruthDict type definition and its equality method (likely == or isequal). The issue shows a failing equality test between a TruthDict and its deep copy. Start by finding where TruthDict is defined (search in src/), examine the current equality implementation, and write a test to reproduce the problem. Check if the issue is in how the dict's internal structure or keys are compared.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- julia
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Aktiv
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 70/100