Skip to content

Commit e9d3111

Browse files
committed
fixing build by adapting test to take into account boldness #96
1 parent 405937b commit e9d3111

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: src/ascii_art.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -258,36 +258,36 @@ mod test {
258258
#[test]
259259
fn truncate() {
260260
let colors_shim = Vec::new();
261-
assert_eq!(Tokens("").render(&colors_shim, 0, 0), "\u{1b}[37m\u{1b}[0m");
261+
assert_eq!(Tokens("").render(&colors_shim, 0, 0), "\u{1b}[1;37m\u{1b}[0m");
262262

263263
assert_eq!(
264264
Tokens(" ").render(&colors_shim, 0, 0),
265-
"\u{1b}[37m\u{1b}[0m"
265+
"\u{1b}[1;37m\u{1b}[0m"
266266
);
267267
assert_eq!(
268268
Tokens(" ").render(&colors_shim, 0, 5),
269-
"\u{1b}[37m \u{1b}[0m"
269+
"\u{1b}[1;37m \u{1b}[0m"
270270
);
271271
assert_eq!(
272272
Tokens(" ").render(&colors_shim, 1, 5),
273-
"\u{1b}[37m \u{1b}[0m"
273+
"\u{1b}[1;37m \u{1b}[0m"
274274
);
275275
assert_eq!(
276276
Tokens(" ").render(&colors_shim, 3, 5),
277-
"\u{1b}[37m \u{1b}[0m"
277+
"\u{1b}[1;37m \u{1b}[0m"
278278
);
279279
assert_eq!(
280280
Tokens(" ").render(&colors_shim, 0, 4),
281-
"\u{1b}[37m \u{1b}[0m"
281+
"\u{1b}[1;37m \u{1b}[0m"
282282
);
283283
assert_eq!(
284284
Tokens(" ").render(&colors_shim, 0, 3),
285-
"\u{1b}[37m \u{1b}[0m"
285+
"\u{1b}[1;37m \u{1b}[0m"
286286
);
287287

288288
assert_eq!(
289289
Tokens(" {1} {5} {9} a").render(&colors_shim, 4, 10),
290-
"\u{1b}[37m\u{1b}[0m\u{1b}[37m\u{1b}[0m\u{1b}[37m \u{1b}[0m\u{1b}[37m a\u{1b}[0m "
290+
"\u{1b}[1;37m\u{1b}[0m\u{1b}[1;37m\u{1b}[0m\u{1b}[1;37m \u{1b}[0m\u{1b}[1;37m a\u{1b}[0m "
291291
);
292292
}
293293
}

0 commit comments

Comments
 (0)