Skip to content

Commit

Permalink
lzlib: Use language-specific heredoc delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Oct 21, 2024
1 parent 78cbe28 commit 15fce29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/l/lzlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ def install
end

test do
(testpath/"test.c").write <<~EOS
(testpath/"test.c").write <<~C
#include <stdio.h>
#include <stdint.h>
#include "lzlib.h"
int main (void) {
printf ("%s", LZ_version());
}
EOS
C
system ENV.cc, "test.c", "-L#{lib}", "-I#{include}", "-llz",
"-o", "test"
assert_equal version.to_s, shell_output("./test")
Expand Down

0 comments on commit 15fce29

Please sign in to comment.