diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ctags.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/ctags.rb b/Library/Formula/ctags.rb index 8bb775ed3..899e5a8eb 100644 --- a/Library/Formula/ctags.rb +++ b/Library/Formula/ctags.rb @@ -36,6 +36,26 @@ class Ctags < Formula link. EOS end + + test do + (testpath/"test.c").write <<-EOS.undent + #include <stdio.h> + #include <stdlib.h> + + void func() + { + printf("Hello World!"); + } + + int main() + { + func(); + return 0; + } + EOS + system "#{bin}/ctags", "-R", "." + assert_match /func.*test\.c/, File.read("tags") + end end __END__ |
