diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
commit | 9fe9310ccf4971f0d1976f9bdaafd04a68ea314b (patch) | |
tree | ff1d5d677d5b3c33ac7eb6252029f2a9d165d9b3 /.config/fisher/github.com/matchai/spacefish/tests/__sf_section_time.test.fish | |
parent | 743caecfc68bb6d28f8de2e80bce671e42601c6a (diff) |
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/tests/__sf_section_time.test.fish')
-rw-r--r-- | .config/fisher/github.com/matchai/spacefish/tests/__sf_section_time.test.fish | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_time.test.fish b/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_time.test.fish deleted file mode 100644 index fe7ce215..00000000 --- a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_time.test.fish +++ /dev/null @@ -1,109 +0,0 @@ -source $DIRNAME/spacefish_test_setup.fish - -function setup - spacefish_test_setup - - function date -a time_format - command date --version >/dev/null 2>/dev/null - switch $status - case 0 # GNU Coreutil - command date "-u" "-d @1536116421" "$time_format" - case '*' # MacOS + BSD Compatibility (Lacks --version) - command date "-u" "-r 1536116421" "$time_format" - end - end -end - -function teardown - functions --erase date -end - -test "Time is disabled by default?" - () = (__sf_section_time) -end - -test "Enabling time! 24-hour by default" - ( - set SPACEFISH_TIME_SHOW true - - set_color --bold - echo -n "at " - set_color normal - set_color --bold yellow - echo -n "03:00:21" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_time) -end - -test "Enabling time with 12-hour instead" - ( - set SPACEFISH_TIME_SHOW true - set SPACEFISH_TIME_12HR true - - set_color --bold - echo -n "at " - set_color normal - set_color --bold yellow - echo -n "03:00:21" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_time) -end - -test "Show the date too" - ( - set SPACEFISH_TIME_SHOW true - set SPACEFISH_DATE_SHOW true - - set_color --bold - echo -n "at " - set_color normal - set_color --bold yellow - echo -n "2018-09-05" - echo -n " " - echo -n "03:00:21" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_time) -end - -test "Custom date/time format" - ( - set SPACEFISH_TIME_SHOW true - set SPACEFISH_TIME_FORMAT (date '+%H') # Unix timestamp - set SPACEFISH_TIME_PREFIX "" # Get rid of "at " prefix. - - set_color --bold - set_color normal - set_color --bold yellow - echo -n "03" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_time) -end - -test "What is the time? Purple?!" - ( - set SPACEFISH_TIME_SHOW true - set SPACEFISH_TIME_COLOR purple - - set_color --bold - echo -n "at " - set_color normal - set_color --bold purple - echo -n "03:00:21" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_time) -end |