-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a30295f
commit 83ba192
Showing
12 changed files
with
302 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
crates/cairo-lang-formatter/test_data/cairo_files/sort_inner_use.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
use std::collections::HashMap; | ||
use crate::utils::{a, b, d, c}; | ||
use b::{d, c, b, a} | ||
use a::{d, b, a, c} |
16 changes: 16 additions & 0 deletions
16
crates/cairo-lang-formatter/test_data/cairo_files/sorted_mod_use.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mod zeta; | ||
mod alpha; | ||
mod gamma; | ||
|
||
use std::fs; | ||
use std::io::Write; | ||
use std::path::PathBuf; | ||
use std::collections::HashMap; | ||
use std::env; | ||
|
||
mod beta; | ||
|
||
fn main() { | ||
// Example function | ||
println!("Hello, world!"); | ||
} |
4 changes: 4 additions & 0 deletions
4
crates/cairo-lang-formatter/test_data/expected_results/sort_inner_use.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
use a::{a, b, c, d}; | ||
use b::{a, b, c, d}; | ||
use crate::utils::{a, b, c, d}; | ||
use std::collections::HashMap; |
16 changes: 16 additions & 0 deletions
16
crates/cairo-lang-formatter/test_data/expected_results/sorted_mod_use.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mod alpha; | ||
mod gamma; | ||
mod zeta; | ||
|
||
use std::collections::HashMap; | ||
use std::env; | ||
use std::fs; | ||
use std::io::Write; | ||
use std::path::PathBuf; | ||
|
||
mod beta; | ||
|
||
fn main() { | ||
// Example function | ||
println!("Hello, world!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.