You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expected_outcome_message<-'^(Preparing to download the file `.+\\.jpg`\\.|.+; name=".+\\.jpg" successfully downloaded in \\d+(\\.\\d+\\W|\\W)seconds\\, and saved as .+\\.jpg)'
@@ -382,6 +383,40 @@ test_that("file in repeating instrument", {
382
383
expect_true(start_time<=info_actual_1_1$atime, label="The downloaded file's last access time should not precede this function's start time.")
383
384
384
385
# ---- first record, second instance --------------------------
expect_equal(returned_object_1_2$file_name, "mugshot-1.jpg", label="The name of the downloaded file should be correct.")
411
+
412
+
#Test the values of the file.
413
+
expect_equal(info_actual_1_2$size, expected=info_expected_1_2$size, label="The size of the downloaded file should match.")
414
+
expect_false(info_actual_1_2$isdir, "The downloaded file should not be a directory.")
415
+
# expect_equal(as.character(info_actual_1_2$mode), expected=as.character(info_expected$mode), label="The mode/permissions of the downloaded file should match.")
416
+
expect_true(start_time<=info_actual_1_2$mtime, label="The downloaded file's modification time should not precede this function's start time.")
417
+
# expect_true(start_time <= info_actual_1_2$ctime, label="The downloaded file's last change time should not precede this function's start time.")
418
+
expect_true(start_time<=info_actual_1_2$atime, label="The downloaded file's last access time should not precede this function's start time.")
419
+
385
420
386
421
# ---- second record, first instance --------------------------
0 commit comments