## Goal Add unit tests for the `slugify()` pure function in `api/src/notes.rs:63`. ## File to edit `api/src/notes.rs` ## How to run ```bash cd api && cargo test slugify ``` ## Sub-issues (pick one) - [ ] #41 test: slugify("Hello World") returns "hello-world" - [ ] #42 test: slugify special chars like "Note: A/B Test!" returns "note-a-b-test" - [ ] #43 test: slugify empty string returns "untitled" - [ ] #44 test: slugify only symbols like "!@#$%" returns "untitled" - [ ] #45 test: slugify with leading and trailing spaces like " hello " returns "hello" - [ ] #46 test: slugify consecutive spaces like "foo bar" returns "foo-bar" - [ ] #47 test: slugify numbers like "Section 2.1" returns "section-2-1" - [ ] #48 test: slugify underscores like "my_note" returns "my-note" - [ ] #49 test: slugify already valid slug like "my-note-slug" stays unchanged
Goal
Add unit tests for the
slugify()pure function inapi/src/notes.rs:63.File to edit
api/src/notes.rsHow to run
Sub-issues (pick one)