Add more tests

This commit is contained in:
Seiichi Uchida 2017-12-05 17:45:19 +09:00
parent 04449c6622
commit 9ed05410a3
2 changed files with 39 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);
}