tests: shunit2: add test for _jshn_append leading space fix
authorPetr Štetiar <[email protected]>
Thu, 13 Nov 2025 10:38:41 +0000 (10:38 +0000)
committerPetr Štetiar <[email protected]>
Thu, 13 Nov 2025 10:47:22 +0000 (10:47 +0000)
commit240d2d5ef58b7d5637604c0f687d1efbff549f2e
tree0bd7e5cad9b2e860c6aba00afe06b6d2d9e05fda
parent82cb5fd66af910c71deef67d49a5c9e3d319bde9
tests: shunit2: add test for _jshn_append leading space fix

Verifies the fix in commit 2065c3909935 ("libubox: Drop extraneous space
when appending values to variable") that prevents leading spaces when
appending to empty variables.

 test_jshn_append_no_leading_space
 ASSERT:expected:<foo> but was:< foo>
 ASSERT:expected:<first second> but was:< first second>

References: #16
Signed-off-by: Petr Štetiar <[email protected]>
tests/shunit2/tests.sh