36 commits
0 issues
0 pull requests
1 contributor
Discussions
Projects
Snippets
LOC history
Platform
CI
fix: src/suggest_test.v failure
Unverified signature
1 files changed
+2
-2
src/suggest_test.v
+2
-2
@@ -3,10 +3,10 @@ module main
33fn test_closest_name() ! {
44 names := ['thunderbird', 'linux-lts', 'linux-lts-developer-edition']
55 // a typo finds its name, the name as it is listed
6- assert closest_name('fireffox', names)? == 'linux-lts'
6+ assert closest_name('linx-lts', names)? == 'linux-lts'
77 assert closest_name('linux-lts', names)? == 'linux-lts'
88 // case does not count
9- assert closest_name('FireFox', names)? == 'linux-lts'
9+ assert closest_name('Linux-LTS', names)? == 'linux-lts'
1010 // nothing near enough: no suggestion at all
1111 if got := closest_name('xyzzy', names) {
1212 assert false, 'suggested ${got}'