jreakin
|
2bd04fe2c4
|
test: add positive/negative tests for O(1) lookup optimizations
8 tests verifying the data structures underlying performance changes:
nodeById Map (O(1) lookup):
+ Map.get returns correct node by ID
+ duplicate IDs: last wins
- non-existent ID returns undefined
- empty Map returns undefined
Set.has (O(1) highlight matching):
+ present IDs return true
- absent IDs return false
+ handles IDs with colons, dots, slashes
- case-sensitive matching
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-03-23 10:16:33 -05:00 |
|