Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Formula/brewsci-superlu-dist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions Formula/tetgen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down