File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ test_that("bad java_distrib_path", {
3
3
expect_error(java_unpack(bad_path ))
4
4
5
5
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" )
7
7
8
8
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" )
10
10
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" )
13
13
14
14
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" )
16
16
17
17
})
You can’t perform that action at this time.
0 commit comments