Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Coding in the AI era
/
Executable specifications
Which executable property rules out both too few and unnecessarily many pages?
from Executable specifications
Node 24
intermediate
3 min
Which executable property rules out both too few and unnecessarily many pages?
pages × pageSize >= total, and when pages > 0, (pages - 1) × pageSize < total
pages is non-negative
pages is an integer
pageSize is no larger than total
Check
Ask AI about this kata
Report an error
previous kata
Which pair best specifies the phrase “standard shipping is free at €50 or more”?
Quiz
next kata
What does this boundary check print?
Predict the output
A new version is available
Reload