From a241a13d602415c9a652fc15dd62c410f471abeb Mon Sep 17 00:00:00 2001 From: Mikayla Date: Mon, 22 Jan 2024 19:35:23 -0800 Subject: [PATCH] fix test --- crates/gpui/src/platform/mac/text_system.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/gpui/src/platform/mac/text_system.rs b/crates/gpui/src/platform/mac/text_system.rs index 3233b6c436..e8c8b45311 100644 --- a/crates/gpui/src/platform/mac/text_system.rs +++ b/crates/gpui/src/platform/mac/text_system.rs @@ -651,7 +651,7 @@ mod lenient_font_attributes { #[cfg(test)] mod tests { - use crate::{font, px, FontRun, MacTextSystem, PlatformTextSystem}; + use crate::{font, px, FontRun, GlyphId, MacTextSystem, PlatformTextSystem}; #[test] fn test_wrap_line() { @@ -690,8 +690,8 @@ mod tests { assert_eq!(layout.len, line.len()); assert_eq!(layout.runs.len(), 1); assert_eq!(layout.runs[0].glyphs.len(), 2); - assert_eq!(layout.runs[0].glyphs[0].id, 68u32.into()); // a - // There's no glyph for \u{feff} - assert_eq!(layout.runs[0].glyphs[1].id, 69u32.into()); // b + assert_eq!(layout.runs[0].glyphs[0].id, GlyphId(68u32)); // a + // There's no glyph for \u{feff} + assert_eq!(layout.runs[0].glyphs[1].id, GlyphId(69u32)); // b } }