Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audit fixes #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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