mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
2f7acf00e5
Create test.rs Delete test.rs Fixed compile error. Trying a possible fix on an arithmetic overflow another try at the test failure... passed all tests. Added tests and cleaned up logic as per nrc's critiques Delete string.rs.old Delete string.rs.bk Made changes as per nrc's requests. Update string_punctuation.rs Update string_punctuation.rs fixed logical redundancy
15 lines
647 B
Rust
15 lines
647 B
Rust
fn main() {
|
|
println!("ThisIsAReallyLongStringWithNoSpaces.It_should_prefer_to_break_onpunctuation:\
|
|
Likethisssssssssssss");
|
|
format!("{}__{}__{}ItShouldOnlyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyNoticeSemicolonsPeriodsColo\
|
|
nsAndCommasAndResortToMid-CharBreaksAfterPunctuation{}{}",
|
|
x,
|
|
y,
|
|
z,
|
|
a,
|
|
b);
|
|
println!("aaaaaaaaaaaaaaaaaaaaaaaaaaaaalhijalfhiigjapdighjapdigjapdighdapighapdighpaidhg;\
|
|
adopgihadoguaadbadgad,qeoihapethae8t0aet8haetadbjtaeg;\
|
|
ooeouthaoeutgadlgajduabgoiuadogabudogubaodugbadgadgadga;adoughaoeugbaouea");
|
|
}
|