Test get_numeric_values returns all numeric values.
(self, manager)
| 168 | assert binding.aliases.count("sigma") == 1 |
| 169 | |
| 170 | def test_get_numeric_values(self, manager): |
| 171 | """Test get_numeric_values returns all numeric values.""" |
| 172 | manager.bind("sqrt", {"x": 18}, 4.2426) |
| 173 | manager.bind("multiply", {"a": 2, "b": 3}, 6) |
| 174 | manager.bind("echo", {"msg": "hello"}, "hello") # non-numeric |
| 175 | values = manager.get_numeric_values() |
| 176 | assert 4.2426 in values |
| 177 | assert 6.0 in values |
| 178 | assert len(values) == 2 |
| 179 | |
| 180 | def test_get_numeric_values_empty(self, manager): |
| 181 | """Test get_numeric_values with no bindings.""" |
nothing calls this directly
no outgoing calls
no test coverage detected