Ramkumar Ramachandra writes:
> A couple of quick nits.
>
> Tanay Abhra wrote:
>> +test_expect_success 'clear default config' '
>> + rm -f .git/config
>> +'
>
> Unnecessary; a fresh temporary directory is created for each test run.
Hmm, fresh, but not empty.
Anyway, the next test does a ca
A couple of quick nits.
Tanay Abhra wrote:
> +test_expect_success 'clear default config' '
> + rm -f .git/config
> +'
Unnecessary; a fresh temporary directory is created for each test run.
> +test_expect_success 'initialize default config' '
You might want to mark this as "setup".
--
To u
Tanay Abhra writes:
> diff --git a/test-config.c b/test-config.c
> new file mode 100644
> index 000..45ccd0a
> --- /dev/null
> +++ b/test-config.c
> @@ -0,0 +1,127 @@
> +#include "cache.h"
> +#include "hashmap.h"
Useless include, you're not using the hashmap directly.
> +int main(int argc,
Tanay Abhra writes:
> +test_expect_success 'get value for a simple key' '
> + echo "very blue" >expect &&
> + test-config get_value core.penguin >actual &&
> + test_cmp expect actual
> +'
All these tests would greatly benefit from a helper like
test_expect_config () {
echo "
4 matches
Mail list logo