Skip to content

test: add edge case tests (empty input, nesting, unicode)#36

Merged
luojiyin1987 merged 2 commits into
masterfrom
test/edge-cases
Jul 1, 2026
Merged

test: add edge case tests (empty input, nesting, unicode)#36
luojiyin1987 merged 2 commits into
masterfrom
test/edge-cases

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Closes #32

Changes

  • Add __tests__/edge-cases.spec.ts with 11 test cases covering:
    • Empty input
    • Pure whitespace
    • Pure punctuation
    • Long line (100000 chars)
    • Deep blockquote (4 levels)
    • Nested list (5 levels)
    • Emoji
    • Zero-width characters
    • CJK mixed text
    • Image with alt, url, and title
    • Inline HTML

Verification

pnpm run build && pnpm test

All 36 tests pass.

@luojiyin1987 luojiyin1987 merged commit 37aca24 into master Jul 1, 2026
13 checks passed
@luojiyin1987 luojiyin1987 deleted the test/edge-cases branch July 1, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: 补充边界 case 测试(空输入、深嵌套、Unicode)

1 participant