Skip to content

Commit

Permalink
testing character with different fish_key_bindings and fish_bind_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Veio committed Feb 4, 2024
1 parent 9f71d80 commit f35461a
Showing 1 changed file with 145 additions and 0 deletions.
145 changes: 145 additions & 0 deletions tests/_tide_item_character.test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,67 @@ end

set -lx tide_character_icon_failure ✘

# Check icons while fish_key_bindings is fish_default_key_bindings
set -lx fish_key_bindings fish_default_key_bindings

true
_character # CHECK: ❯

false
_character # CHECK: ✘

true | false
_character # CHECK: ✘

true | true
_character # CHECK: ❯

false | true
_character # CHECK: ❯

false | false
_character # CHECK: ✘

# Check that not command works
not true | false
_character # CHECK: ❯

not false | true
_character # CHECK: ✘

# Check icons while fish_key_bindings isn't fish_default_key_bindings
set -lx fish_key_bindings something_else
# Check icons while fish_bind_mode is default
set -lx fish_bind_mode default

true
_character # CHECK: ❮

false
_character # CHECK: ❮

true | false
_character # CHECK: ❮

true | true
_character # CHECK: ❮

false | true
_character # CHECK: ❮

false | false
_character # CHECK: ❮

# Check that not command works
not true | false
_character # CHECK: ❮

not false | true
_character # CHECK: ❮

# Check icons while fish_bind_mode is insert
set -lx fish_bind_mode insert

true
_character # CHECK: ❯

Expand All @@ -33,3 +94,87 @@ _character # CHECK: ❯

not false | true
_character # CHECK: ✘

# Check icons while fish_bind_mode is replace
set -lx fish_bind_mode replace

true
_character # CHECK: ▶

false
_character # CHECK: ▶

true | false
_character # CHECK: ▶

true | true
_character # CHECK: ▶

false | true
_character # CHECK: ▶

false | false
_character # CHECK: ▶

# Check that not command works
not true | false
_character # CHECK: ▶

not false | true
_character # CHECK: ▶

# Check icons while fish_bind_mode is replace_one
set -lx fish_bind_mode replace_one

true
_character # CHECK: ▶

false
_character # CHECK: ▶

true | false
_character # CHECK: ▶

true | true
_character # CHECK: ▶

false | true
_character # CHECK: ▶

false | false
_character # CHECK: ▶

# Check that not command works
not true | false
_character # CHECK: ▶

not false | true
_character # CHECK: ▶

# Check icons while fish_bind_mode is visual
set -lx fish_bind_mode visual

true
_character # CHECK: V

false
_character # CHECK: V

true | false
_character # CHECK: V

true | true
_character # CHECK: V

false | true
_character # CHECK: V

false | false
_character # CHECK: V

# Check that not command works
not true | false
_character # CHECK: V

not false | true
_character # CHECK: V

0 comments on commit f35461a

Please sign in to comment.