future-install-scripts/test/test_mangle

9 lines
245 B
Plaintext
Raw Normal View History

2013-12-09 01:16:58 +08:00
#!/bin/bash
. "${1:-./fstab-helpers}"
2013-12-09 01:16:58 +08:00
. ./test/common
ASSERT_streq ' deleted' "$(unmangle "$(mangle ' deleted')")"
ASSERT_streq '\040deleted' "$(mangle "$(unmangle '\040deleted')")"
ASSERT_streq 'foo\011\040\011bar' "$(mangle $'foo\t \tbar')"