about summary refs log tree commit diff
path: root/tests/data
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2022-08-06 07:45:19 +0300
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2022-08-06 07:47:16 +0300
commit809a26505b5ceaf488151ba859f1a986d757b582 (patch)
treee80768b6b1ba630ac5e674366f98c46df11617d8 /tests/data
parent1c2b508720e3918dbf814b584f7adae00b901a10 (diff)
downloadcorrelation_rust-809a26505b5ceaf488151ba859f1a986d757b582.tar.gz
Remove unnecessary parsing
JSON already has a way to denote an array of objects, so there is no
need to manually parse such arrays from strings.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/sample_json_file.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/data/sample_json_file.json b/tests/data/sample_json_file.json
index 355124a..85f9b9d 100644
--- a/tests/data/sample_json_file.json
+++ b/tests/data/sample_json_file.json
@@ -1,6 +1,8 @@
 {
     "file_path":"/home/kabui/correlation_rust/tests/data/db300.txt",
-    "x_vals":"25.08439, 72.02225, 47.56293, 22.87893, 14.28721, 71.84655, 87.81991, 84.86824, 6.72478, 5.72373, 73.47078, 63.74703",
+    "x_vals": [
+	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":"bxd1",
     "method":"pearson",
     "file_delimiter":",",