Add more tests
This commit is contained in:
parent
04449c6622
commit
9ed05410a3
2 changed files with 39 additions and 0 deletions
|
@ -6,10 +6,16 @@ fn main() {
|
|||
let x = 1;
|
||||
|
||||
|
||||
let y = 2;
|
||||
|
||||
|
||||
println!("x + y = {}", x + y);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
fn foo() {
|
||||
|
||||
#![attribute]
|
||||
|
@ -20,3 +26,19 @@ fn foo() {
|
|||
|
||||
|
||||
}
|
||||
// comment after item
|
||||
|
||||
|
||||
// comment before item
|
||||
fn bar() {
|
||||
let x = 1;
|
||||
// comment after statement
|
||||
|
||||
|
||||
// comment before statment
|
||||
let y = 2;
|
||||
let z = 3;
|
||||
|
||||
|
||||
println!("x + y + z = {}", x + y + z);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
fn main() {
|
||||
let x = 1;
|
||||
|
||||
let y = 2;
|
||||
|
||||
println!("x + y = {}", x + y);
|
||||
}
|
||||
|
||||
fn foo() {
|
||||
|
@ -9,3 +13,16 @@ fn foo() {
|
|||
|
||||
// comment
|
||||
}
|
||||
// comment after item
|
||||
|
||||
// comment before item
|
||||
fn bar() {
|
||||
let x = 1;
|
||||
// comment after statement
|
||||
|
||||
// comment before statment
|
||||
let y = 2;
|
||||
let z = 3;
|
||||
|
||||
println!("x + y + z = {}", x + y + z);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue