From 36955972a1664d4c35889a4a87fad88a684c2048 Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Thu, 2 Sep 2021 10:41:22 +0200 Subject: [PATCH] STY: Style changes. --- test/cleanup.m | 4 ++-- test/test_files.m | 6 ------ test/test_query_retrieve.m | 5 ++--- test/test_transaction.m | 2 +- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/test/cleanup.m b/test/cleanup.m index 1f73825..b98266b 100644 --- a/test/cleanup.m +++ b/test/cleanup.m @@ -25,8 +25,8 @@ function cleanup() ids = caosdb_get_ids(c.query('FIND ENTITY WITH ID > 99')); result = c.delete_by_id(ids); -% -% If FILENAMES is given, it must be a cell string array with filenames to delete. + % + % If FILENAMES is given, it must be a cell string array with filenames to delete. % for filename = filenames % filename = filename{1}; % fsdelete(filename) % TODO diff --git a/test/test_files.m b/test/test_files.m index 657abe8..656c7db 100644 --- a/test/test_files.m +++ b/test/test_files.m @@ -76,11 +76,6 @@ function test_insert_file() end download_result = c.download_file_by_single_id(F1_id, outfilename_1); - disp(outfilename_1); - disp(download_result); - download_result.get_errors() - download_result.get_warnings() - fid_orig = fopen(filenames{1}, "r"); fid_retr = fopen(outfilename_1, "r"); [data_orig, count_orig] = fread(fid_orig, Inf, "*uint8"); @@ -94,7 +89,6 @@ function test_insert_file() % cleanup(); end - % Utility functions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% print the messages into a cell diff --git a/test/test_query_retrieve.m b/test/test_query_retrieve.m index 7d4b02b..0afdc4f 100644 --- a/test/test_query_retrieve.m +++ b/test/test_query_retrieve.m @@ -171,7 +171,6 @@ function test_execute_query_failure() assertTrue(isempty(results)); end - %% Utility functions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Return a struct with the IDs @@ -204,9 +203,9 @@ function ids = insert_data() ids.RT1 = c.insert({RT1}){1}.id; par = Parent(); - par.id =ids.RT1; + par.id = ids.RT1; - RT1.set_parents({par}) % self-inheritance RT1 <|- RT1 + RT1.set_parents({par}); % self-inheritance RT1 <|- RT1 RT1.id = ids.RT1; c.update({RT1}); diff --git a/test/test_transaction.m b/test/test_transaction.m index 2173c93..31de63b 100644 --- a/test/test_transaction.m +++ b/test/test_transaction.m @@ -179,7 +179,7 @@ function test_update_entity() %% TODO(dh) units % P1.unit = "Whales"; P1.set_datatype("INTEGER", false, true); - P1.value = int64([1, 2, 3, 4, 2^31-1, -2^31]); + P1.value = int64([1, 2, 3, 4, 2^31 - 1, -2^31]); P1_id = c.insert({P1}){1}.id; % disp(P1) -- GitLab