Skip to content

Commit b831df5

Browse files
authored
Merge pull request #1817 from topecongiro/file-lines-tests
Restore comments in file-lines tests
2 parents 7634bd3 + 66703e3 commit b831df5

8 files changed

+8
-0
lines changed

tests/source/file-lines-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fn floaters() {
1717
{
1818
match x {
1919
PushParam => {
20+
// comment
2021
stack.push(mparams[match cur.to_digit(10) {
2122
Some(d) => d as usize - 1,
2223
None => return Err("bad param number".to_owned()),

tests/source/file-lines-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fn floaters() {
1717
{
1818
match x {
1919
PushParam => {
20+
// comment
2021
stack.push(mparams[match cur.to_digit(10) {
2122
Some(d) => d as usize - 1,
2223
None => return Err("bad param number".to_owned()),

tests/source/file-lines-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn floaters() {
1818
{
1919
match x {
2020
PushParam => {
21+
// comment
2122
stack.push(mparams[match cur.to_digit(10) {
2223
Some(d) => d as usize - 1,
2324
None => return Err("bad param number".to_owned()),

tests/source/file-lines-4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn floaters() {
1818
{
1919
match x {
2020
PushParam => {
21+
// comment
2122
stack.push(mparams[match cur.to_digit(10) {
2223
Some(d) => d as usize - 1,
2324
None => return Err("bad param number".to_owned()),

tests/target/file-lines-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fn floaters() {
1717
{
1818
match x {
1919
PushParam => {
20+
// comment
2021
stack.push(mparams[match cur.to_digit(10) {
2122
Some(d) => d as usize - 1,
2223
None => return Err("bad param number".to_owned()),

tests/target/file-lines-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fn floaters() {
1212
{
1313
match x {
1414
PushParam => {
15+
// comment
1516
stack.push(mparams[match cur.to_digit(10) {
1617
Some(d) => d as usize - 1,
1718
None => return Err("bad param number".to_owned()),

tests/target/file-lines-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ fn floaters() {
1313
{
1414
match x {
1515
PushParam => {
16+
// comment
1617
stack.push(mparams[match cur.to_digit(10) {
1718
Some(d) => d as usize - 1,
1819
None => return Err("bad param number".to_owned()),

tests/target/file-lines-4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn floaters() {
1818
{
1919
match x {
2020
PushParam => {
21+
// comment
2122
stack.push(mparams[match cur.to_digit(10) {
2223
Some(d) => d as usize - 1,
2324
None => return Err("bad param number".to_owned()),

0 commit comments

Comments
 (0)