Skip to content

Commit 0c690bf

Browse files
committed
lint-test
1 parent 0527cfd commit 0c690bf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/TestSubprocess.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,13 @@ function test_env_run(tc)
119119
methods (Test, TestTags={'java_exe'})
120120

121121
function test_Java_stdout_stderr(tc, lang_out)
122-
import matlab.unittest.constraints.IsFile
123122

124123
cwd = fileparts(mfilename('fullpath'));
125124
exe = cwd + "/stdout_stderr_" + lang_out + ".exe";
126125

127126
switch lang_out
128-
case "fortran", tc.assumeThat(exe, IsFile)
129-
case {"c", "cpp"}, tc.assertThat(exe, IsFile)
127+
case "fortran", tc.assumeThat(exe, matlab.unittest.constraints.IsFile)
128+
case {"c", "cpp"}, tc.assertThat(exe, matlab.unittest.constraints.IsFile)
130129
otherwise, tc.assertTrue(false, "Unknown language: " + lang_out)
131130
end
132131

@@ -143,14 +142,13 @@ function test_Java_stdout_stderr(tc, lang_out)
143142

144143

145144
function test_java_stdin(tc, lang_in)
146-
import matlab.unittest.constraints.IsFile
147145

148146
cwd = fileparts(mfilename('fullpath'));
149147
exe = cwd + "/stdin_" + lang_in + ".exe";
150148

151149
switch lang_in
152-
case "fortran", tc.assumeThat(exe, IsFile)
153-
case {"c", "cpp"}, tc.assertThat(exe, IsFile)
150+
case "fortran", tc.assumeThat(exe, matlab.unittest.constraints.IsFile)
151+
case {"c", "cpp"}, tc.assertThat(exe, matlab.unittest.constraints.IsFile)
154152
otherwise, tc.assertTrue(false, "Unknown language: " + lang_in)
155153
end
156154

0 commit comments

Comments
 (0)