@@ -303,7 +303,7 @@ impl Environment {
303
303
304
304
#[ cfg( test) ]
305
305
mod tests {
306
- mod environment_val_tests {
306
+ mod environment_val {
307
307
use crate :: environment:: EnvironmentVal ;
308
308
use crate :: symbol:: Symbol ;
309
309
use crate :: value:: { Value } ;
@@ -316,7 +316,7 @@ mod tests {
316
316
////////////////////////////////////////////////////////////////////////////////
317
317
318
318
#[ test]
319
- fn test_get_current_namespace ( ) {
319
+ fn get_current_namespace ( ) {
320
320
let env_val = EnvironmentVal :: new_main_val ( ) ;
321
321
322
322
assert_eq ! ( Symbol :: intern( "user" ) , env_val. get_current_namespace( ) ) ;
@@ -339,7 +339,7 @@ mod tests {
339
339
//////////////////////////////////////////////////////////////////////////////
340
340
341
341
#[ test]
342
- fn test_get_from_namespace ( ) {
342
+ fn get_from_namespace ( ) {
343
343
let env_val = EnvironmentVal :: new_main_val ( ) ;
344
344
345
345
env_val. insert_into_namespace (
@@ -377,7 +377,7 @@ mod tests {
377
377
}
378
378
379
379
}
380
- mod environment_tests {
380
+ mod environment {
381
381
use crate :: environment:: Environment ;
382
382
use crate :: environment:: Environment :: * ;
383
383
use crate :: environment:: EnvironmentVal ;
@@ -392,7 +392,7 @@ mod tests {
392
392
//
393
393
////////////////////////////////////////////////////////////////////////
394
394
#[ test]
395
- fn test_get__plus ( ) {
395
+ fn get_plus ( ) {
396
396
let add_fn = rust_core:: AddFn { } ;
397
397
398
398
let environment = Rc :: new ( Environment :: new_main_environment ( ) ) ;
@@ -406,15 +406,15 @@ mod tests {
406
406
assert_eq ! ( 8 . to_value( ) , add_ifn. invoke( vec![ 3_i32 . to_rc_value( ) , 5_i32 . to_rc_value( ) ] ) ) ;
407
407
return ;
408
408
}
409
- panic ! ( "test_get_plus : plus is: {:#?}" , plus) ;
409
+ panic ! ( "get_plus : plus is: {:#?}" , plus) ;
410
410
}
411
411
/////////////////////////////////////////////////////////////////////////
412
412
//
413
413
// pub fn insert(&self, sym: Symbol, val: Rc<Value>) {
414
414
//
415
415
/////////////////////////////////////////////////////////////////////////
416
416
#[ test]
417
- fn test_insert__plus ( ) {
417
+ fn insert_plus ( ) {
418
418
let add_fn = rust_core:: AddFn { } ;
419
419
420
420
let environment = Rc :: new ( Environment :: new_main_environment ( ) ) ;
0 commit comments