feat(package): hemar: some stages of parsing
This commit is contained in:
32
test/package/hemar/test/first.sh
Normal file
32
test/package/hemar/test/first.sh
Normal 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"
|
||||
Reference in New Issue
Block a user