Skip to content

Commit c78178c

Browse files
authored
Merge pull request #78 from chainsawriot/correct_tests
Correct the tests introduced #77
2 parents c9f89e8 + 693f4a2 commit c78178c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/testthat/test-java_unpack.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ test_that("bad java_distrib_path", {
33
expect_error(java_unpack(bad_path))
44

55
bad_path <- "/home/johndoe/.cache/R/rJavaEnv/distrib/amazon-corretto-21-x64-linux-jdk.tar.7z"
6-
expect_error(java_unpack(fake_path, "Unsupported file format"))
6+
expect_error(java_unpack(bad_path), "Unsupported file format")
77

88
bad_path <- "/home/johndoe/.cache/R/rJavaEnv/distrib/amazon-corretto-x64-linux-jdk.tar.zip"
9-
expect_error(java_unpack(fake_path, "Java version"))
9+
expect_error(java_unpack(bad_path), "Java version")
1010

11-
bad_path <- "/home/johndoe/.cache/R/rJavaEnv/distrib/amazon-corretto-linux-jdk.tar.zip"
12-
expect_error(java_unpack(fake_path, "architecture"))
11+
bad_path <- "/home/johndoe/.cache/R/rJavaEnv/distrib/amazon-corretto-21-linux-jdk.tar.zip"
12+
expect_error(java_unpack(bad_path), "architecture")
1313

1414
bad_path <- "/home/johndoe/.cache/R/rJavaEnv/distrib/amazon-corretto-21-x64-msdos-jdk.tar.zip"
15-
expect_error(java_unpack(fake_path, "platform"))
15+
expect_error(java_unpack(bad_path), "platform")
1616

1717
})

0 commit comments

Comments
 (0)