diff --git a/Formula/brewsci-superlu-dist.rb b/Formula/brewsci-superlu-dist.rb index 2aea525..52ed093 100644 --- a/Formula/brewsci-superlu-dist.rb +++ b/Formula/brewsci-superlu-dist.rb @@ -69,7 +69,7 @@ def install return if OS.linux? && ENV["GITHUB_ACTIONS"] output = shell_output("mpirun -np 4 ./pddrive -r 2 -c 2 g20.rua") - accuracy = ((output.lines.grep /Sol 0/)[-1]).to_f + accuracy = ((output.lines.grep(/Sol 0/))[-1]).to_f assert accuracy < 1.0e-8 end end diff --git a/Formula/tetgen.rb b/Formula/tetgen.rb index 4652e4b..5e027d2 100644 --- a/Formula/tetgen.rb +++ b/Formula/tetgen.rb @@ -34,9 +34,9 @@ def install test do cp pkgshare/"example.poly", testpath output = shell_output("#{bin}/tetgen -pq1.2V example.poly") - assert_match /[Ss]tatistics/, output, "Missing statistics in output" - assert_match /[Hh]istogram/, output, "Missing histogram in output" - assert_match /seconds/, output, "Missing timings in output" + assert_match(/[Ss]tatistics/, output, "Missing statistics in output") + assert_match(/[Hh]istogram/, output, "Missing histogram in output") + assert_match(/seconds/, output, "Missing timings in output") outfile_suffixes = %w[node ele face edge] outfile_suffixes.each do |suff| assert_predicate testpath/"example.1.#{suff}", :exist?