Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsik-sus committed Nov 15, 2023
1 parent 8c86e94 commit 9bdbf03
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
17 changes: 10 additions & 7 deletions module/test/a/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
pub fn add(left: usize, right: usize) -> usize {
pub fn add( left : usize, right : usize ) -> usize
{
left + right
}

#[cfg(test)]
mod tests {
#[ cfg( test ) ]
mod tests
{
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
#[ test ]
fn it_works()
{
let result = add( 2, 2 );
assert_eq!( result, 4 );
}
}
17 changes: 10 additions & 7 deletions module/test/b/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
pub fn add(left: usize, right: usize) -> usize {
pub fn add( left : usize, right : usize ) -> usize
{
left + right
}

#[cfg(test)]
mod tests {
#[ cfg( test ) ]
mod tests
{
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
#[ test ]
fn it_works()
{
let result = add( 2, 2 );
assert_eq!( result, 4 );
}
}
17 changes: 10 additions & 7 deletions module/test/c/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
pub fn add(left: usize, right: usize) -> usize {
pub fn add( left : usize, right : usize ) -> usize
{
left + right
}

#[cfg(test)]
mod tests {
#[ cfg( test ) ]
mod tests
{
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
#[ test ]
fn it_works()
{
let result = add( 2, 2 );
assert_eq!( result, 4 );
}
}

0 comments on commit 9bdbf03

Please sign in to comment.