Skip to content

Commit

Permalink
Modify rule 5 to use context
Browse files Browse the repository at this point in the history
Co-authored-by: Nikolai Kudasov <[email protected]>
  • Loading branch information
aabounegm and fizruk committed Feb 7, 2024
1 parent 4d68a2f commit 067109d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions eo-phi-normalizer/test/eo/phi/rules/yegor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ rules:
result: |
⟦ σ ↦ Φ, !B ⟧.!a
when: []
tests:
- name: Should match
input: Φ.a
output: ⟦ σ ↦ Φ ⟧.a
matches: true
tests: []

- name: Rule 5
description: "ξ-dispatch"
context:
current_object: ⟦ !a ↦ ξ.!b, !B ⟧
pattern: |
⟦ !a ↦ ξ.!b, !B ⟧
ξ
result: |
⟦ !a ↦ ⟦ !B ⟧.!b, !B ⟧
⟦ !B ⟧
when: []
tests: []

Expand Down

0 comments on commit 067109d

Please sign in to comment.