Skip to content

Commit e45a26c

Browse files
committed
Update fmt estimated capacity tests.
1 parent df2a56a commit e45a26c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/core/tests/fmt/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ fn test_estimated_capacity() {
2424
assert_eq!(format_args!("").estimated_capacity(), 0);
2525
assert_eq!(format_args!("{}", "").estimated_capacity(), 0);
2626
assert_eq!(format_args!("Hello").estimated_capacity(), 5);
27-
assert_eq!(format_args!("Hello, {}!", "").estimated_capacity(), 16);
27+
#[cfg(not(bootstrap))]
28+
assert_eq!(format_args!("Hello, {}!", "").estimated_capacity(), 0);
2829
assert_eq!(format_args!("{}, hello!", "World").estimated_capacity(), 0);
29-
assert_eq!(format_args!("{}. 16-bytes piece", "World").estimated_capacity(), 32);
30+
#[cfg(not(bootstrap))]
31+
assert_eq!(format_args!("{}. 16-bytes piece", "World").estimated_capacity(), 0);
3032
}
3133

3234
#[test]

0 commit comments

Comments
 (0)