Let's try testing for "is not quadratic" condition

This commit is contained in:
Aleksey Kladov 2021-04-06 21:59:47 +03:00
parent 00cdbceb9d
commit e012efca27
3 changed files with 100 additions and 1 deletions

View file

@ -8,7 +8,10 @@ use crate::project_root;
pub fn big_struct() -> String {
let n = 1_000;
big_struct_n(n)
}
pub fn big_struct_n(n: u32) -> String {
let mut buf = "pub struct RegisterBlock {".to_string();
for i in 0..n {
format_to!(buf, " /// Doc comment for {}.\n", i);