-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92ba4af
commit 4196b44
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
source $DIRNAME/../fish_right_prompt.fish | ||
|
||
set --local empty '' | ||
|
||
test "fish_right_prompt: succeed" | ||
( | ||
fish_right_prompt 2>&1 >/dev/null | ||
) $status -eq 0 | ||
end | ||
|
||
test "fish_right_prompt: prints $pure_color_right_prompt" | ||
( | ||
set pure_right_prompt "🐙" # U+1F419 OCTOPUS | ||
set pure_color_right_prompt $empty | ||
set pure_color_normal $empty | ||
|
||
fish_right_prompt | ||
) = '🐙' | ||
end | ||
|
||
test "fish_right_prompt: prints colorful right_prompt" | ||
( | ||
set pure_right_prompt "🐬" # U+1F42C DOLPHIN | ||
set pure_color_right_prompt (set_color blue) | ||
set pure_color_normal (set_color normal) | ||
|
||
fish_right_prompt | ||
) = (set_color blue)'🐬'(set_color normal) | ||
end |