Generate multiple fresh constants in a loop.
(self)
| 1616 | assert c._ast.name.startswith("var!") |
| 1617 | |
| 1618 | def test_fresh_in_loop(self): |
| 1619 | """Generate multiple fresh constants in a loop.""" |
| 1620 | consts = [FreshInt() for _ in range(5)] |
| 1621 | names = [c._ast.name for c in consts] |
| 1622 | assert len(set(names)) == 5 # All unique |
| 1623 | |
| 1624 | |
| 1625 | # =================================================================== |
nothing calls this directly
no test coverage detected