Skip to content

Commit

Permalink
Explain why (id_atom (+ 1 1)) gets reduced to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbogd committed Nov 25, 2024
1 parent b2c0d36 commit 190619e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tests/test_grounded_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def test_meta_types(self):
myAtom
untyp
'''))
# FIXME: why does it get reduced?
# FIXME: (id_atom (+ 1 1)) gets reduced because after id_atom returns
# (+ 1 1) it is evaluated further and becomes 2. We don't have a manner
# to prevent evaluation in MeTTa.
# self.assertEqual(metta.run("!(id_atom (+ 1 1))"), [metta.parse_all("(+ 1 1)")])
### Polymorphic without unwrapping
# Nothing is done with `$t` on the Grounded side, but we check that:
Expand Down

0 comments on commit 190619e

Please sign in to comment.