mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-18 22:12:32 +01:00
Fix tests
This commit is contained in:
parent
8e966e3636
commit
df0c2198a0
37 changed files with 207 additions and 207 deletions
|
|
@ -17,7 +17,7 @@ function testCustomDirectOutputSegment() {
|
|||
# Load Powerlevel9k
|
||||
source powerlevel9k.zsh-theme
|
||||
|
||||
assertEquals "%K{015} %F{000}world %k%F{015}%f " "$(build_left_prompt)"
|
||||
assertEquals "%K{007} %F{000}world %k%F{007}%f " "$(build_left_prompt)"
|
||||
}
|
||||
|
||||
function testCustomClosureSegment() {
|
||||
|
|
@ -31,7 +31,7 @@ function testCustomClosureSegment() {
|
|||
# Load Powerlevel9k
|
||||
source powerlevel9k.zsh-theme
|
||||
|
||||
assertEquals "%K{015} %F{000}world %k%F{015}%f " "$(build_left_prompt)"
|
||||
assertEquals "%K{007} %F{000}world %k%F{007}%f " "$(build_left_prompt)"
|
||||
}
|
||||
|
||||
function testSettingBackgroundForCustomSegment() {
|
||||
|
|
@ -43,7 +43,7 @@ function testSettingBackgroundForCustomSegment() {
|
|||
# Load Powerlevel9k
|
||||
source powerlevel9k.zsh-theme
|
||||
|
||||
assertEquals "%K{011} %F{000}world %k%F{011}%f " "$(build_left_prompt)"
|
||||
assertEquals "%K{003} %F{000}world %k%F{003}%f " "$(build_left_prompt)"
|
||||
}
|
||||
|
||||
function testSettingForegroundForCustomSegment() {
|
||||
|
|
@ -55,7 +55,7 @@ function testSettingForegroundForCustomSegment() {
|
|||
# Load Powerlevel9k
|
||||
source powerlevel9k.zsh-theme
|
||||
|
||||
assertEquals "%K{015} %F{009}world %k%F{015}%f " "$(build_left_prompt)"
|
||||
assertEquals "%K{007} %F{001}world %k%F{007}%f " "$(build_left_prompt)"
|
||||
}
|
||||
|
||||
function testSettingVisualIdentifierForCustomSegment() {
|
||||
|
|
@ -67,7 +67,7 @@ function testSettingVisualIdentifierForCustomSegment() {
|
|||
# Load Powerlevel9k
|
||||
source powerlevel9k.zsh-theme
|
||||
|
||||
assertEquals "%K{015} %F{000}hw %f%F{000}world %k%F{015}%f " "$(build_left_prompt)"
|
||||
assertEquals "%K{007} %F{000}hw %f%F{000}world %k%F{007}%f " "$(build_left_prompt)"
|
||||
}
|
||||
|
||||
function testSettingVisualIdentifierForegroundColorForCustomSegment() {
|
||||
|
|
@ -80,7 +80,7 @@ function testSettingVisualIdentifierForegroundColorForCustomSegment() {
|
|||
# Load Powerlevel9k
|
||||
source powerlevel9k.zsh-theme
|
||||
|
||||
assertEquals "%K{015} %F{009}hw %f%F{000}world %k%F{015}%f " "$(build_left_prompt)"
|
||||
assertEquals "%K{007} %F{001}hw %f%F{000}world %k%F{007}%f " "$(build_left_prompt)"
|
||||
}
|
||||
|
||||
source shunit2/shunit2
|
||||
Loading…
Add table
Add a link
Reference in a new issue