mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Add test for TW #2581
This commit is contained in:
parent
a464324617
commit
1f76856579
1 changed files with 14 additions and 0 deletions
14
test/tw-2581.t
Executable file
14
test/tw-2581.t
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
# Test setting configuration variable with a trailing comment works
|
||||
. bash_tap_tw.sh
|
||||
|
||||
# Add configuration variable with a trailing comment into taskrc
|
||||
echo 'weekstart=Monday # Europe standard' >> taskrc
|
||||
cat taskrc
|
||||
|
||||
# Use config the change the value to "Sunday"
|
||||
task config weekstart Sunday
|
||||
|
||||
# Ensure the comment was preserved and value changed
|
||||
cat taskrc | grep weekstart=Sunday
|
||||
[[ `cat taskrc | grep weekstart=Sunday` == 'weekstart=Sunday # Europe standard' ]]
|
Loading…
Add table
Add a link
Reference in a new issue