str_strip_postfix_str and str_strip_postfix_cstr were comparing one byte too early
test: test.c:38: main: Assertion `str_eq(str_strip_postfix(str_from_cstr("ok!"), str_from_cstr("!")), str_from_cstr("ok"))' failed.
zsh: IOT instruction (core dumped) ./bin/test
remove both -1 to fix this
str_strip_postfix_str and str_strip_postfix_cstr were comparing one byte too early
test: test.c:38: main: Assertion `str_eq(str_strip_postfix(str_from_cstr("ok!"), str_from_cstr("!")), str_from_cstr("ok"))' failed.
zsh: IOT instruction (core dumped) ./bin/test
remove both -1 to fix this