Skip to content

Commit 1b4875f

Browse files
authored
Merge pull request #134 from gdt050579/github_flow_true_colors
GitHub flows TRUE_COLOR feature
2 parents bf3443c + ed2a0e9 commit 1b4875f

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ jobs:
2323
run: cargo test -- --test-threads=1
2424
#- name: Clippy
2525
# run: cargo clippy --verbose -- -D warnings
26+
- name: Run tests TRUE_COLOR
27+
run: cargo test --features TRUE_COLORS -- --test-threads=1
2628
- name: Audit
2729
run: cargo audit

.github/workflows/macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ jobs:
2323
run: cargo test -- --test-threads=1
2424
#- name: Clippy
2525
# run: cargo clippy --verbose -- -D warnings
26+
- name: Run tests TRUE_COLOR
27+
run: cargo test --features TRUE_COLORS -- --test-threads=1
2628
- name: Audit
2729
run: cargo audit

.github/workflows/windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ jobs:
2323
run: cargo test -- --test-threads=1
2424
#- name: Clippy
2525
# run: cargo clippy --verbose -- -D warnings
26+
- name: Run tests TRUE_COLOR
27+
run: cargo test --features TRUE_COLORS -- --test-threads=1
2628
- name: Audit
2729
run: cargo audit

appcui/src/graphics/tests.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -916,23 +916,23 @@ fn check_charattr_macro() {
916916
Color::Red,
917917
CharFlags::Bold | CharFlags::DoubleUnderline | CharFlags::StrikeThrough
918918
)
919-
);
919+
);
920920
assert_eq!(
921921
charattr!("?,r,attr: Bold+CurlyUnderline+StrikeThrough"),
922922
CharAttribute::new(
923923
Color::Transparent,
924924
Color::Red,
925925
CharFlags::Bold | CharFlags::CurlyUnderline | CharFlags::StrikeThrough
926926
)
927-
);
927+
);
928928
assert_eq!(
929929
charattr!("aqua,pink,attr: Bold+DottedUnderline+StrikeThrough"),
930930
CharAttribute::new(
931931
Color::Aqua,
932932
Color::Pink,
933933
CharFlags::Bold | CharFlags::DottedUnderline | CharFlags::StrikeThrough
934934
)
935-
);
935+
);
936936
}
937937

938938
#[test]
@@ -1019,7 +1019,7 @@ fn check_serialization_to_buffer() {
10191019
const RESULT: [u8; 92] = [
10201020
// Magic
10211021
83, 82, 70, // Version
1022-
1, // Width and Height
1022+
1, // Width and Height
10231023
5, 0, 0, 0, 2, 0, 0, 0, // Character data
10241024
72, 0, 0, 0, 0, 0, 15, 4, 101, 0, 0, 0, 0, 0, 15, 4, 108, 0, 0, 0, 0, 0, 15, 4, 108, 0, 0, 0, 0, 0, 15, 4, 111, 0, 0, 0, 0, 0, 15, 4, 87, 0,
10251025
0, 0, 1, 0, 10, 4, 111, 0, 0, 0, 1, 0, 10, 4, 114, 0, 0, 0, 1, 0, 10, 4, 108, 0, 0, 0, 1, 0, 10, 4, 100, 0, 0, 0, 1, 0, 10, 4,
@@ -1102,8 +1102,8 @@ fn check_color_contrast() {
11021102
assert_eq!(Color::Transparent.contrast_color(), Color::Transparent);
11031103
#[cfg(feature = "TRUE_COLORS")]
11041104
{
1105-
assert_eq!(Color::RGB(1, 1, 1).contrast_color(), Color::Black);
1106-
assert_eq!(Color::RGB(254, 254, 254).contrast_color(), Color::White);
1105+
assert_eq!(Color::RGB(1, 1, 1).contrast_color(), Color::White);
1106+
assert_eq!(Color::RGB(254, 254, 254).contrast_color(), Color::Black);
11071107
}
11081108
}
11091109

0 commit comments

Comments
 (0)