Thread (8 messages) flat view 8 messages, 2 authors, 2016-06-15

Re: [PATCH/RFC v2 3/4] rev-parse: add tests for git rev-parse --flags.

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:49:37

+test_expect_success 'git rev-parse --flags -> ""' \
+'
+       output=$(git rev-parse --flags) &&
+       expected="" &&
+       test "${output}" = "${expected}"
+'
+
+test_expect_success 'git rev-parse --flags X -> ""' \
+'
+       output=$(git rev-parse --flags X) &&
+       expected="" &&
+       test "${output}" = "${expected}"
+'
+
Please use test_cmp throughout the test instead:

    >expect &&
    git rev-parse --flags >actual &&
    test_cmp expect actual

etc.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help