about summary refs log tree commit diff
path: root/src/parser.rs
diff options
context:
space:
mode:
authorAlexander <alexanderkabua@gmail.com>2022-05-18 18:17:38 +0300
committerAlexander <alexanderkabua@gmail.com>2022-05-18 18:17:38 +0300
commitef9b4a5d7439d0d23ae4dd6aa8fda54072c9960f (patch)
treeae68337d18c78e1ad060cfb6d4e13e5d5fb914eb /src/parser.rs
parentf26611bf20433ccf217447e466f3b79a773d6573 (diff)
downloadcorrelation_rust-ef9b4a5d7439d0d23ae4dd6aa8fda54072c9960f.tar.gz
mv test files to tests/data
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 57465a2..2d0be8e 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -178,9 +178,9 @@ mod tests{
 
     #[test]
     fn test_json_file_read(){
-        let json_struct = JsonData::new("/home/kabui/correlation_rust/src/sample_json_file.json");
+        let json_struct = JsonData::new("/home/kabui/correlation_rust/tests/data/sample_json_file.json");
 
-        let k = JsonData { file_path: String::from("/home/kabui/correlation_rust/src/matrix80.txt"), x_vals: String::from("25.08439, 72.02225, 47.56293, 22.87893, 14.28721, 71.84655, 87.81991, 84.86824, 6.72478, 5.72373, 73.47078, 63.74703"), sample_values: String::from("bxd1") };
+        let k = JsonData { file_path: String::from("/home/kabui/correlation_rust/tests/data/matrix_80.txt"), x_vals: String::from("25.08439, 72.02225, 47.56293, 22.87893, 14.28721, 71.84655, 87.81991, 84.86824, 6.72478, 5.72373, 73.47078, 63.74703"), sample_values: String::from("bxd1") };
 
         assert_eq!(k,json_struct)
     }