changeset 28:5689f7161462

More complete test1
author Илья Ефимов <inferrna@gmail.com>
date Thu, 10 Dec 2020 01:06:52 +0800
parents 36657c45bae5
children eccea761a854
files examples/test1.rs
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/examples/test1.rs	Thu Dec 10 00:57:33 2020 +0800
+++ b/examples/test1.rs	Thu Dec 10 01:06:52 2020 +0800
@@ -19,11 +19,16 @@
     }
 }
 
+
+
 fn main() {
     println!("result: {:?}", hello("ABC".to_string()));
     println!("result: {:?}", hello("DEF".to_string()));
     println!("result: {:?}", hello("ABC".to_string()));  //Same as first
     thread::sleep(Duration::from_millis(2100));
+    println!("result: {:?}", hello("EFG".to_string()));
     println!("result: {:?}", hello("ABC".to_string()));  //Refreshed
+    println!("result: {:?}", hello("EFG".to_string()));  //Same as first
+    println!("result: {:?}", hello("ABC".to_string()));  //Same as refreshed
     println!("result: {:?}", memoized_original_hello("ABC".to_string()));
 }