feat(package): hemar: some stages of parsing

This commit is contained in:
2025-11-25 13:19:45 +00:00
parent f5d412997e
commit 4729770b59
9 changed files with 359 additions and 60 deletions

View File

@@ -0,0 +1,32 @@
answer="$(echo 'some text' | hemar -c)"
expected="$(printf '[
{
"type": "text",
"value": "some text"
}
]')"
json_diff "$answer" "$expected"
answer="$(echo 'some [] {} text' | hemar -c)"
expected="$(printf '[
{
"type": "text",
"value": "some [] {} text"
}
]')"
json_diff "$answer" "$expected"
answer="$(echo 'some {' | hemar -c)"
expected="$(printf '[
{
"type": "text",
"value": "some {"
}
]')"
json_diff "$answer" "$expected"