diff options
| author | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2022-08-06 07:45:19 +0300 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2022-08-06 07:47:16 +0300 |
| commit | 809a26505b5ceaf488151ba859f1a986d757b582 (patch) | |
| tree | e80768b6b1ba630ac5e674366f98c46df11617d8 /tests/data | |
| parent | 1c2b508720e3918dbf814b584f7adae00b901a10 (diff) | |
| download | correlation_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.json | 4 |
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":",", |
