1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-19 13:22:14 +03:00
bash-ini-parser/t/t0001-parse.sh
albfan 389ef3f00f whitespace use case
relates to #4
2015-05-16 20:43:48 +02:00

20 lines
355 B
Bash
Executable File

#!/bin/sh
SHARNESS_TEST_EXTENSION="sh"
test_description="check parse"
. sharness/sharness.sh
. ../../bash-ini-parser
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0001
test_expect_success "Whitespace parse" "
cfg_parser $DIR_TEST/whitespace.ini &&
cfg_writer > whitespace.out &&
diff -u whitespace.out $DIR_TEST/whitespace.out.correct
"
test_done