Skip to content

Commit

Permalink
Test for added to close a pr; space removed from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-milella committed Nov 3, 2024
1 parent 23bcc61 commit cd5d899
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/algebras/worlds.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Some worlds (dimensional worlds) can be interpreted on dimensional data,
that is, n-dimensional arrays. The compatibility of a given world with respect of a
that is, n-dimensional arrays. The compatibility of a given world with respect of a
structure of a given dimensionality must be specified via the following trait:
goeswithdim(w::AbstractWorld, d) = goeswithdim(typeof(w), d)
Expand Down
2 changes: 1 addition & 1 deletion test/check/propositional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ t2 = @test_nowarn TruthDict(Pair{Real,Bool}[1.0 => true, 2 => true, 3 => true])
@test interpret(Atom("r"), DefaultedTruthDict(["p", "q"])) |> isbot


# normalization: negations compression ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# normalization: negations compression ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@test syntaxstring(normalize(parseformula("¬¬ p"))) == "p"
@test syntaxstring(normalize(parseformula("¬¬¬ p"))) == "¬p"
Expand Down
3 changes: 3 additions & 0 deletions test/normalize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ end
@test_nowarn normalize(parseformula("(⟨G⟩A ∧ ¬⟨G⟩(A ∧ ⟨A̅⟩C))"), prefer_implications = true)
@test_nowarn normalize(parseformula("(⟨G⟩A ∧ ¬⟨G⟩(A ∧ ⟨A̅⟩C))"), prefer_implications = true)

@test "(b∧a)∨(d∧c)" |> parseformula |> normalize ==
"(d∧c)∨(a∧b)" |> parseformula |> normalize

# φ = parseformula("(¬((q → p) → (q ∨ q))) → ⊤")
# [check(φ, K, w; perform_normalization = false) for w in worlds]
# φ = parseformula("¬(¬(¬(¬q ∨ p) ∨ (q ∨ q))) ∨ ⊤")
Expand Down

0 comments on commit cd5d899

Please sign in to comment.