@@ -3,7 +3,7 @@ use rustell::encode;
33use rustell:: * ;
44
55#[ test]
6- fn module ( ) {
6+ fn mod_declaration ( ) {
77 let lhs = "mod hello;" ;
88 let rhs = vec ! [ Expr :: Mod ( "hello" ) ] ;
99 assert_eq ! ( decode( lhs) , rhs) ;
@@ -12,7 +12,7 @@ fn module() {
1212}
1313
1414#[ test]
15- fn module_then_use ( ) {
15+ fn mod_then_use_statement ( ) {
1616 let lhs = "mod hello; use std::io;" ;
1717 let rhs = vec ! [
1818 Expr :: Mod ( "hello" ) ,
@@ -33,7 +33,7 @@ fn module_then_use() {
3333}
3434
3535#[ test]
36- fn raw_then_module ( ) {
36+ fn raw_code_then_mod ( ) {
3737 let lhs = r#"
3838 fn test() {
3939 println!("Hello")
@@ -55,7 +55,7 @@ fn raw_then_module() {
5555}
5656
5757#[ test]
58- fn module_then_raw ( ) {
58+ fn mod_then_raw_code ( ) {
5959 let lhs = "mod hello;
6060fn test() {
6161 println!(\" Hello\" )
@@ -75,7 +75,7 @@ fn test() {
7575}
7676
7777#[ test]
78- fn simple ( ) {
78+ fn simple_use_statement ( ) {
7979 let lhs = "use std::io::Read;" ;
8080 let rhs = vec ! [ Expr :: Use ( ExprUse :: Item {
8181 module: "std" ,
@@ -96,7 +96,7 @@ fn simple() {
9696}
9797
9898#[ test]
99- fn many ( ) {
99+ fn multiple_use_items ( ) {
100100 let lhs = "use std::{io::Read, fs::File};" ;
101101 let rhs = vec ! [ Expr :: Use ( ExprUse :: Item {
102102 module: "std" ,
@@ -128,7 +128,7 @@ fn many() {
128128}
129129
130130#[ test]
131- fn glob ( ) {
131+ fn use_glob_pattern ( ) {
132132 let lhs = "use std::io::*;" ;
133133 let rhs = vec ! [ Expr :: Use ( ExprUse :: Item {
134134 module: "std" ,
@@ -145,7 +145,7 @@ fn glob() {
145145}
146146
147147#[ test]
148- fn rename ( ) {
148+ fn use_with_rename ( ) {
149149 let lhs = "use std::io::Read as Readable;" ;
150150 let rhs = vec ! [ Expr :: Use ( ExprUse :: Item {
151151 module: "std" ,
@@ -166,7 +166,7 @@ fn rename() {
166166}
167167
168168#[ test]
169- fn complex ( ) {
169+ fn complex_use_statement ( ) {
170170 let lhs = "use std::{io::Read as Readable, fs::*};" ;
171171 let rhs = vec ! [ Expr :: Use ( ExprUse :: Item {
172172 module: "std" ,
@@ -194,7 +194,7 @@ fn complex() {
194194}
195195
196196#[ test]
197- fn use_crate ( ) {
197+ fn use_crate_path ( ) {
198198 let lhs = "use crate::module::Type;" ;
199199 let rhs = vec ! [ Expr :: Use ( ExprUse :: Item {
200200 module: "crate" ,
@@ -215,7 +215,7 @@ fn use_crate() {
215215}
216216
217217#[ test]
218- fn raw_then_use ( ) {
218+ fn raw_code_then_use ( ) {
219219 let lhs = r#"
220220 fn test() {
221221 println!("Hello")
@@ -249,7 +249,7 @@ fn raw_then_use() {
249249}
250250
251251#[ test]
252- fn multiple ( ) {
252+ fn multiple_separate_uses ( ) {
253253 let lhs = r#"
254254 use std::io;
255255 use std::fs;
@@ -283,7 +283,7 @@ fn multiple() {
283283}
284284
285285#[ test]
286- fn multiple_with_raw ( ) {
286+ fn multiple_uses_with_raw_code ( ) {
287287 let lhs = r#"
288288 use std::io;
289289 fn test() {
@@ -326,7 +326,7 @@ fn multiple_with_raw() {
326326}
327327
328328#[ test]
329- fn mixed_all_cases ( ) {
329+ fn mixed_use_and_raw_cases ( ) {
330330 let lhs = r#"
331331 use std::{
332332 io::{self, Read as R},
@@ -398,7 +398,7 @@ fn mixed_all_cases() {
398398}
399399
400400#[ test]
401- fn roundtrip_own_sources ( ) {
401+ fn roundtrip_source_files ( ) {
402402 get_rust_files ( "./" ) . into_iter ( ) . for_each ( |path| {
403403 let lhs = std:: fs:: read_to_string ( & path) . unwrap ( ) ;
404404 let rhs = decode ( & lhs) ;
0 commit comments