MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / test_is_expr_various

Method test_is_expr_various

tests/test_z3_ported.py:1520–1526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1518 """All is_* predicates from z3py."""
1519
1520 def test_is_expr_various(self):
1521 assert is_expr(Int("x"))
1522 assert is_expr(Bool("b"))
1523 assert is_expr(BitVec("v", 8))
1524 assert is_expr(StringVal("s"))
1525 assert not is_expr(42)
1526 assert not is_expr("hello")
1527
1528 def test_is_true_false(self):
1529 assert is_true(BoolVal(True))

Callers

nothing calls this directly

Calls 5

is_exprFunction · 0.90
IntFunction · 0.90
BoolFunction · 0.90
BitVecFunction · 0.90
StringValFunction · 0.90

Tested by

no test coverage detected