summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_char.test.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/tests/__sf_section_char.test.fish')
-rw-r--r--.config/fisher/github.com/matchai/spacefish/tests/__sf_section_char.test.fish88
1 files changed, 0 insertions, 88 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_char.test.fish b/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_char.test.fish
deleted file mode 100644
index 8ebf76b8..00000000
--- a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_char.test.fish
+++ /dev/null
@@ -1,88 +0,0 @@
-source $DIRNAME/spacefish_test_setup.fish
-
-function setup
- spacefish_test_setup
-end
-
-test "Displays default char with status code 0"
- (
- set sf_exit_code 0
-
- set_color --bold
- echo -n ""
- set_color normal
- set_color --bold green
- echo -n "➜"
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_char)
-end
-
-test "Displays default char with status code 1"
- (
- set sf_exit_code 1
-
- set_color --bold
- echo -n ""
- set_color normal
- set_color --bold red
- echo -n "➜"
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_char)
-end
-
-test "Changing SPACEFISH_CHAR_SYMBOL changes the displayed character"
- (
- set sf_exit_code 0
- set SPACEFISH_CHAR_SYMBOL ·
-
- set_color --bold
- echo -n ""
- set_color normal
- set_color --bold green
- echo -n "·"
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_char)
-end
-
-test "Changing SPACEFISH_CHAR_PREFIX changes the character prefix"
- (
- set sf_exit_code 0
- set SPACEFISH_CHAR_PREFIX ·
-
- set_color --bold
- echo -n "·"
- set_color normal
- set_color --bold green
- echo -n "➜"
- set_color normal
- set_color --bold
- echo -n " "
- set_color normal
- ) = (__sf_section_char)
-end
-
-test "Changing SPACEFISH_CHAR_SYMBOL changes the character suffix"
- (
- set sf_exit_code 0
- set SPACEFISH_CHAR_SUFFIX ·
-
- set_color --bold
- echo -n ""
- set_color normal
- set_color --bold green
- echo -n "➜"
- set_color normal
- set_color --bold
- echo -n "·"
- set_color normal
- ) = (__sf_section_char)
-end