MCPcopy Index your code
hub / github.com/github/spec-kit / test_float_truncates

Method test_float_truncates

tests/test_extensions.py:187–190  ·  view source on GitHub ↗

Test that float is truncated to int.

(self)

Source from the content-addressed store, hash-verified

185 assert normalize_priority("abc", default=5) == 5
186
187 def test_float_truncates(self):
188 """Test that float is truncated to int."""
189 assert normalize_priority(5.9) == 5
190 assert normalize_priority(3.1) == 3
191
192 def test_empty_string_returns_default(self):
193 """Test that empty string returns default."""

Callers

nothing calls this directly

Calls 1

normalize_priorityFunction · 0.90

Tested by

no test coverage detected