future-install-scripts/test/test_mangle
Emil Velikov 0c848b83b5 common: split genfstab only helpers
v2: drop warning and msg from fstab-helpers

v3: drop m4 -> sed conversion

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2023-05-03 13:46:15 +01:00

9 lines
245 B
Bash
Executable File

#!/bin/bash
. "${1:-./fstab-helpers}"
. ./test/common
ASSERT_streq ' deleted' "$(unmangle "$(mangle ' deleted')")"
ASSERT_streq '\040deleted' "$(mangle "$(unmangle '\040deleted')")"
ASSERT_streq 'foo\011\040\011bar' "$(mangle $'foo\t \tbar')"