From 4df3199818403919e1245f12c2f3de7340b64760 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 7 Jun 2012 12:17:24 -0500 Subject: [PATCH] Reorg test fixtures --- test/fixtures/{ => apex}/ArrayUtils.cls | 0 .../{ => applescript}/center.applescript | 0 test/fixtures/{ => applescript}/center.scpt | 0 test/fixtures/{ => arduino}/hello.ino | 0 test/fixtures/{ => autohotkey}/hello.ahk | 0 test/fixtures/{ => binary}/dog.o | Bin test/fixtures/{ => binary}/foo bar.jar | Bin test/fixtures/{ => binary}/foo.bin | Bin test/fixtures/{ => binary}/foo.pdf | Bin test/fixtures/{ => binary}/foo.png | Bin test/fixtures/{ => binary}/git.deb | Bin test/fixtures/{ => binary}/git.exe | Bin test/fixtures/{ => binary}/github.po | 0 test/fixtures/{ => binary}/hello.pbc | Bin test/fixtures/{ => binary}/linguist.gem | Bin test/fixtures/{ => binary}/octocat.ai | 0 test/fixtures/{ => binary}/octocat.png | Bin test/fixtures/{ => binary}/octocat.psd | Bin test/fixtures/{ => binary}/zip | Bin test/fixtures/{ => c}/hello.c | 0 test/fixtures/{ => c}/hello.h | 0 test/fixtures/{ => coq}/interval_discr.v | 0 test/fixtures/{ => cpp}/bar.h | 0 test/fixtures/{ => cpp}/bar.hpp | 0 test/fixtures/{ => cpp}/cuda.cu | 0 test/fixtures/{ => cpp}/hello.cpp | 0 test/fixtures/{ => dart}/point.dart | 0 test/fixtures/{ => delphi}/program.dpr | 0 .../{ => diff}/dude-thing-okay--001.patch | 0 test/fixtures/{ => emacs}/dude.el | 0 test/fixtures/{ => gas}/hello.s | 0 test/fixtures/{ => gosu}/Hello.gst | 0 test/fixtures/{ => gosu}/Hello.gsx | 0 test/fixtures/{ => gosu}/Person.gs | 0 test/fixtures/{ => gosu}/hello.gsp | 0 test/fixtures/{ => gosu}/hello.vark | 0 test/fixtures/{ => groovy}/build.gradle | 0 test/fixtures/{ => groovy}/script.groovy | 0 test/fixtures/{ => gsp}/bar.gsp | 0 .../{ => gsp}/hello-pagedirective.gsp | 0 test/fixtures/{ => gsp}/hello-resources.gsp | 0 test/fixtures/{ => gsp}/hello-var.gsp | 0 test/fixtures/{ => haml}/hello.haml | 0 test/fixtures/{ => ini}/.gitconfig | 0 test/fixtures/{ => ioke}/hello.ik | 0 .../{coffee => javascript}/classes-old.js | 0 .../{coffee => javascript}/classes.js | 0 test/fixtures/{ => javascript}/dude.js | 0 test/fixtures/{coffee => javascript}/empty.js | 0 test/fixtures/{coffee => javascript}/hello.js | 0 .../{coffee => javascript}/intro-old.js | 0 test/fixtures/{coffee => javascript}/intro.js | 0 .../{ => javascript}/jquery-1.4.2.min.js | 0 .../fixtures/{ => javascript}/jquery-1.6.1.js | 0 .../{ => javascript}/jquery-1.6.1.min.js | 0 .../{ => javascript}/json2_backbone.js | 0 test/fixtures/{ => javascript}/script.js | 0 .../{ => javascript}/steelseries-min.js | 0 test/fixtures/{ => javascript}/uglify.js | 0 test/fixtures/{ => julia}/stockcorr.jl | 0 test/fixtures/{ => kotlin}/Foo.kt | 0 test/fixtures/{ => logtalk}/foo.lgt | 0 test/fixtures/{ => markdown}/tender.md | 0 test/fixtures/{ => matlab}/matlab_class.m | 0 test/fixtures/{ => matlab}/matlab_function.m | 0 test/fixtures/{ => matlab}/matlab_function2.m | 0 test/fixtures/{ => matlab}/matlab_script.m | 0 test/fixtures/{ => matlab}/matlab_script2.m | 0 test/fixtures/{ => nemerle}/hello.n | 0 test/fixtures/{ => nimrod}/foo.nim | 0 test/fixtures/{ => nu}/script.nu | 0 test/fixtures/{ => objective-c}/Foo.h | 0 test/fixtures/{ => objective-c}/Foo.m | 0 .../{ => objective-c}/FooAppDelegate.h | 0 .../{ => objective-c}/FooAppDelegate.m | 0 test/fixtures/{ => objective-c}/empty.m | 0 test/fixtures/{ => objective-c}/hello.m | 0 test/fixtures/{ => ocaml}/Foo.ml | 0 test/fixtures/{ => opa}/hello_syntax1.opa | 0 test/fixtures/{ => opa}/hello_syntax2.opa | 0 test/fixtures/{ => opencl}/fft.cl | 0 test/fixtures/{ => openedge-abl}/Email.cls | 0 test/fixtures/{ => openedge-abl}/openedge.p | 0 test/fixtures/{ => pasm}/hello.pasm | 0 test/fixtures/{ => perl}/perl-test.t | 0 test/fixtures/{ => perl}/script.pl | 0 test/fixtures/{ => perl}/test-perl.pl | 0 test/fixtures/{ => perl}/test-perl2.pl | 0 test/fixtures/{ => php}/drupal.module | 0 test/fixtures/{ => pir}/hello.pir | 0 test/fixtures/pkg/linguist.gem | Bin 3072 -> 0 bytes test/fixtures/{ => powershell}/hello.ps1 | 0 test/fixtures/{ => powershell}/hello.psm1 | 0 test/fixtures/{ => prolog}/test-prolog.pl | 0 test/fixtures/{ => python}/script.py | 0 test/fixtures/{ => r}/hello-r.R | 0 test/fixtures/{ => racket}/scribble.scrbl | 0 test/fixtures/{ => racket}/script.rkt | 0 test/fixtures/{ => rebol}/hello-rebol.r | 0 test/fixtures/{ => ruby}/Capfile | 0 test/fixtures/{ => ruby}/Rakefile | 0 test/fixtures/{ => ruby}/foo.rb | 0 test/fixtures/{ => ruby}/grit.rb | 0 .../{script.mrb => ruby/macruby-script} | 0 test/fixtures/{ => ruby}/script.rake | 0 test/fixtures/{ => ruby}/script.rb | 0 test/fixtures/{ => ruby}/script2.rb | 0 test/fixtures/{ => ruby}/wrong_shebang.rb | 0 test/fixtures/{ => rust}/hello.rs | 0 test/fixtures/{ => sass}/screen.sass | 0 test/fixtures/{ => scala}/build.sbt | 0 test/fixtures/{ => scala}/script.scala | 0 test/fixtures/{ => scheme}/asteroids.sps | 0 .../fixtures/{ => scilab}/scilab_function.sci | 0 test/fixtures/{ => scilab}/scilab_script.sce | 0 test/fixtures/{ => scilab}/scilab_test.tst | 0 test/fixtures/{ => scss}/screen.scss | 0 test/fixtures/{ => shell}/.bash_profile | 0 test/fixtures/{ => shell}/.bashrc | 0 test/fixtures/{ => shell}/.profile | 0 test/fixtures/{ => shell}/.zlogin | 0 test/fixtures/{ => shell}/.zshrc | 0 test/fixtures/{ => shell}/PKGBUILD | 0 test/fixtures/{ => shell}/script.bash | 0 test/fixtures/{ => shell}/script.sh | 0 test/fixtures/{ => shell}/script.zsh | 0 test/fixtures/{ => standard-ml}/Foo.sig | 0 test/fixtures/{ => standard-ml}/Foo.sml | 0 test/fixtures/subdir/Rakefile | 3 - test/fixtures/{ => supercollider}/BCR2000.sc | 0 test/fixtures/{ => tea}/foo.tea | 0 test/fixtures/{ => tex}/reedthesis.cls | 0 test/fixtures/{ => text}/README | 0 test/fixtures/{ => text}/blank | 0 test/fixtures/{ => text}/defu.nkt | 0 test/fixtures/{ => text}/dump.sql | 0 test/fixtures/{ => text}/file.json | 0 test/fixtures/{ => text}/file.txt | 0 test/fixtures/{ => text}/foo.txt | 0 test/fixtures/{ => text}/md | 0 test/fixtures/{ => text}/script.foo | 0 test/fixtures/{ => text}/txt | 0 test/fixtures/{ => turing}/turing.t | 0 .../{ => verilog}/sha-256-functions.v | 0 test/fixtures/{ => vhdl}/foo.vhd | 0 test/fixtures/{ => viml}/.gvimrc | 0 test/fixtures/{ => viml}/.vimrc | 0 .../{ => visual-basic}/cApplication.cls | 0 test/fixtures/{ => xml}/net_docfile.xml | 0 test/fixtures/{ => xquery}/xproc.xqm | 0 test/fixtures/{ => xslt}/test.xslt | 0 test/fixtures/{ => yaml}/.gemrc | 0 test/test_blob.rb | 441 ++++++------------ 153 files changed, 130 insertions(+), 314 deletions(-) rename test/fixtures/{ => apex}/ArrayUtils.cls (100%) rename test/fixtures/{ => applescript}/center.applescript (100%) rename test/fixtures/{ => applescript}/center.scpt (100%) rename test/fixtures/{ => arduino}/hello.ino (100%) rename test/fixtures/{ => autohotkey}/hello.ahk (100%) rename test/fixtures/{ => binary}/dog.o (100%) rename test/fixtures/{ => binary}/foo bar.jar (100%) rename test/fixtures/{ => binary}/foo.bin (100%) rename test/fixtures/{ => binary}/foo.pdf (100%) rename test/fixtures/{ => binary}/foo.png (100%) rename test/fixtures/{ => binary}/git.deb (100%) rename test/fixtures/{ => binary}/git.exe (100%) rename test/fixtures/{ => binary}/github.po (100%) rename test/fixtures/{ => binary}/hello.pbc (100%) rename test/fixtures/{ => binary}/linguist.gem (100%) rename test/fixtures/{ => binary}/octocat.ai (100%) rename test/fixtures/{ => binary}/octocat.png (100%) rename test/fixtures/{ => binary}/octocat.psd (100%) rename test/fixtures/{ => binary}/zip (100%) rename test/fixtures/{ => c}/hello.c (100%) rename test/fixtures/{ => c}/hello.h (100%) rename test/fixtures/{ => coq}/interval_discr.v (100%) rename test/fixtures/{ => cpp}/bar.h (100%) rename test/fixtures/{ => cpp}/bar.hpp (100%) rename test/fixtures/{ => cpp}/cuda.cu (100%) rename test/fixtures/{ => cpp}/hello.cpp (100%) rename test/fixtures/{ => dart}/point.dart (100%) rename test/fixtures/{ => delphi}/program.dpr (100%) rename test/fixtures/{ => diff}/dude-thing-okay--001.patch (100%) rename test/fixtures/{ => emacs}/dude.el (100%) rename test/fixtures/{ => gas}/hello.s (100%) rename test/fixtures/{ => gosu}/Hello.gst (100%) rename test/fixtures/{ => gosu}/Hello.gsx (100%) rename test/fixtures/{ => gosu}/Person.gs (100%) rename test/fixtures/{ => gosu}/hello.gsp (100%) rename test/fixtures/{ => gosu}/hello.vark (100%) rename test/fixtures/{ => groovy}/build.gradle (100%) rename test/fixtures/{ => groovy}/script.groovy (100%) rename test/fixtures/{ => gsp}/bar.gsp (100%) rename test/fixtures/{ => gsp}/hello-pagedirective.gsp (100%) rename test/fixtures/{ => gsp}/hello-resources.gsp (100%) rename test/fixtures/{ => gsp}/hello-var.gsp (100%) rename test/fixtures/{ => haml}/hello.haml (100%) rename test/fixtures/{ => ini}/.gitconfig (100%) rename test/fixtures/{ => ioke}/hello.ik (100%) rename test/fixtures/{coffee => javascript}/classes-old.js (100%) rename test/fixtures/{coffee => javascript}/classes.js (100%) rename test/fixtures/{ => javascript}/dude.js (100%) rename test/fixtures/{coffee => javascript}/empty.js (100%) rename test/fixtures/{coffee => javascript}/hello.js (100%) rename test/fixtures/{coffee => javascript}/intro-old.js (100%) rename test/fixtures/{coffee => javascript}/intro.js (100%) rename test/fixtures/{ => javascript}/jquery-1.4.2.min.js (100%) rename test/fixtures/{ => javascript}/jquery-1.6.1.js (100%) rename test/fixtures/{ => javascript}/jquery-1.6.1.min.js (100%) rename test/fixtures/{ => javascript}/json2_backbone.js (100%) rename test/fixtures/{ => javascript}/script.js (100%) rename test/fixtures/{ => javascript}/steelseries-min.js (100%) rename test/fixtures/{ => javascript}/uglify.js (100%) rename test/fixtures/{ => julia}/stockcorr.jl (100%) rename test/fixtures/{ => kotlin}/Foo.kt (100%) rename test/fixtures/{ => logtalk}/foo.lgt (100%) rename test/fixtures/{ => markdown}/tender.md (100%) rename test/fixtures/{ => matlab}/matlab_class.m (100%) rename test/fixtures/{ => matlab}/matlab_function.m (100%) rename test/fixtures/{ => matlab}/matlab_function2.m (100%) rename test/fixtures/{ => matlab}/matlab_script.m (100%) rename test/fixtures/{ => matlab}/matlab_script2.m (100%) rename test/fixtures/{ => nemerle}/hello.n (100%) rename test/fixtures/{ => nimrod}/foo.nim (100%) rename test/fixtures/{ => nu}/script.nu (100%) rename test/fixtures/{ => objective-c}/Foo.h (100%) rename test/fixtures/{ => objective-c}/Foo.m (100%) rename test/fixtures/{ => objective-c}/FooAppDelegate.h (100%) rename test/fixtures/{ => objective-c}/FooAppDelegate.m (100%) rename test/fixtures/{ => objective-c}/empty.m (100%) rename test/fixtures/{ => objective-c}/hello.m (100%) rename test/fixtures/{ => ocaml}/Foo.ml (100%) rename test/fixtures/{ => opa}/hello_syntax1.opa (100%) rename test/fixtures/{ => opa}/hello_syntax2.opa (100%) rename test/fixtures/{ => opencl}/fft.cl (100%) rename test/fixtures/{ => openedge-abl}/Email.cls (100%) rename test/fixtures/{ => openedge-abl}/openedge.p (100%) rename test/fixtures/{ => pasm}/hello.pasm (100%) rename test/fixtures/{ => perl}/perl-test.t (100%) rename test/fixtures/{ => perl}/script.pl (100%) rename test/fixtures/{ => perl}/test-perl.pl (100%) rename test/fixtures/{ => perl}/test-perl2.pl (100%) rename test/fixtures/{ => php}/drupal.module (100%) rename test/fixtures/{ => pir}/hello.pir (100%) delete mode 100644 test/fixtures/pkg/linguist.gem rename test/fixtures/{ => powershell}/hello.ps1 (100%) rename test/fixtures/{ => powershell}/hello.psm1 (100%) rename test/fixtures/{ => prolog}/test-prolog.pl (100%) rename test/fixtures/{ => python}/script.py (100%) rename test/fixtures/{ => r}/hello-r.R (100%) rename test/fixtures/{ => racket}/scribble.scrbl (100%) rename test/fixtures/{ => racket}/script.rkt (100%) rename test/fixtures/{ => rebol}/hello-rebol.r (100%) rename test/fixtures/{ => ruby}/Capfile (100%) rename test/fixtures/{ => ruby}/Rakefile (100%) rename test/fixtures/{ => ruby}/foo.rb (100%) rename test/fixtures/{ => ruby}/grit.rb (100%) rename test/fixtures/{script.mrb => ruby/macruby-script} (100%) rename test/fixtures/{ => ruby}/script.rake (100%) rename test/fixtures/{ => ruby}/script.rb (100%) rename test/fixtures/{ => ruby}/script2.rb (100%) rename test/fixtures/{ => ruby}/wrong_shebang.rb (100%) rename test/fixtures/{ => rust}/hello.rs (100%) rename test/fixtures/{ => sass}/screen.sass (100%) rename test/fixtures/{ => scala}/build.sbt (100%) rename test/fixtures/{ => scala}/script.scala (100%) rename test/fixtures/{ => scheme}/asteroids.sps (100%) rename test/fixtures/{ => scilab}/scilab_function.sci (100%) rename test/fixtures/{ => scilab}/scilab_script.sce (100%) rename test/fixtures/{ => scilab}/scilab_test.tst (100%) rename test/fixtures/{ => scss}/screen.scss (100%) rename test/fixtures/{ => shell}/.bash_profile (100%) rename test/fixtures/{ => shell}/.bashrc (100%) rename test/fixtures/{ => shell}/.profile (100%) rename test/fixtures/{ => shell}/.zlogin (100%) rename test/fixtures/{ => shell}/.zshrc (100%) rename test/fixtures/{ => shell}/PKGBUILD (100%) rename test/fixtures/{ => shell}/script.bash (100%) rename test/fixtures/{ => shell}/script.sh (100%) rename test/fixtures/{ => shell}/script.zsh (100%) rename test/fixtures/{ => standard-ml}/Foo.sig (100%) rename test/fixtures/{ => standard-ml}/Foo.sml (100%) delete mode 100644 test/fixtures/subdir/Rakefile rename test/fixtures/{ => supercollider}/BCR2000.sc (100%) rename test/fixtures/{ => tea}/foo.tea (100%) rename test/fixtures/{ => tex}/reedthesis.cls (100%) rename test/fixtures/{ => text}/README (100%) rename test/fixtures/{ => text}/blank (100%) rename test/fixtures/{ => text}/defu.nkt (100%) rename test/fixtures/{ => text}/dump.sql (100%) rename test/fixtures/{ => text}/file.json (100%) rename test/fixtures/{ => text}/file.txt (100%) rename test/fixtures/{ => text}/foo.txt (100%) rename test/fixtures/{ => text}/md (100%) rename test/fixtures/{ => text}/script.foo (100%) rename test/fixtures/{ => text}/txt (100%) rename test/fixtures/{ => turing}/turing.t (100%) rename test/fixtures/{ => verilog}/sha-256-functions.v (100%) rename test/fixtures/{ => vhdl}/foo.vhd (100%) rename test/fixtures/{ => viml}/.gvimrc (100%) rename test/fixtures/{ => viml}/.vimrc (100%) rename test/fixtures/{ => visual-basic}/cApplication.cls (100%) rename test/fixtures/{ => xml}/net_docfile.xml (100%) rename test/fixtures/{ => xquery}/xproc.xqm (100%) rename test/fixtures/{ => xslt}/test.xslt (100%) rename test/fixtures/{ => yaml}/.gemrc (100%) diff --git a/test/fixtures/ArrayUtils.cls b/test/fixtures/apex/ArrayUtils.cls similarity index 100% rename from test/fixtures/ArrayUtils.cls rename to test/fixtures/apex/ArrayUtils.cls diff --git a/test/fixtures/center.applescript b/test/fixtures/applescript/center.applescript similarity index 100% rename from test/fixtures/center.applescript rename to test/fixtures/applescript/center.applescript diff --git a/test/fixtures/center.scpt b/test/fixtures/applescript/center.scpt similarity index 100% rename from test/fixtures/center.scpt rename to test/fixtures/applescript/center.scpt diff --git a/test/fixtures/hello.ino b/test/fixtures/arduino/hello.ino similarity index 100% rename from test/fixtures/hello.ino rename to test/fixtures/arduino/hello.ino diff --git a/test/fixtures/hello.ahk b/test/fixtures/autohotkey/hello.ahk similarity index 100% rename from test/fixtures/hello.ahk rename to test/fixtures/autohotkey/hello.ahk diff --git a/test/fixtures/dog.o b/test/fixtures/binary/dog.o similarity index 100% rename from test/fixtures/dog.o rename to test/fixtures/binary/dog.o diff --git a/test/fixtures/foo bar.jar b/test/fixtures/binary/foo bar.jar similarity index 100% rename from test/fixtures/foo bar.jar rename to test/fixtures/binary/foo bar.jar diff --git a/test/fixtures/foo.bin b/test/fixtures/binary/foo.bin similarity index 100% rename from test/fixtures/foo.bin rename to test/fixtures/binary/foo.bin diff --git a/test/fixtures/foo.pdf b/test/fixtures/binary/foo.pdf similarity index 100% rename from test/fixtures/foo.pdf rename to test/fixtures/binary/foo.pdf diff --git a/test/fixtures/foo.png b/test/fixtures/binary/foo.png similarity index 100% rename from test/fixtures/foo.png rename to test/fixtures/binary/foo.png diff --git a/test/fixtures/git.deb b/test/fixtures/binary/git.deb similarity index 100% rename from test/fixtures/git.deb rename to test/fixtures/binary/git.deb diff --git a/test/fixtures/git.exe b/test/fixtures/binary/git.exe similarity index 100% rename from test/fixtures/git.exe rename to test/fixtures/binary/git.exe diff --git a/test/fixtures/github.po b/test/fixtures/binary/github.po similarity index 100% rename from test/fixtures/github.po rename to test/fixtures/binary/github.po diff --git a/test/fixtures/hello.pbc b/test/fixtures/binary/hello.pbc similarity index 100% rename from test/fixtures/hello.pbc rename to test/fixtures/binary/hello.pbc diff --git a/test/fixtures/linguist.gem b/test/fixtures/binary/linguist.gem similarity index 100% rename from test/fixtures/linguist.gem rename to test/fixtures/binary/linguist.gem diff --git a/test/fixtures/octocat.ai b/test/fixtures/binary/octocat.ai similarity index 100% rename from test/fixtures/octocat.ai rename to test/fixtures/binary/octocat.ai diff --git a/test/fixtures/octocat.png b/test/fixtures/binary/octocat.png similarity index 100% rename from test/fixtures/octocat.png rename to test/fixtures/binary/octocat.png diff --git a/test/fixtures/octocat.psd b/test/fixtures/binary/octocat.psd similarity index 100% rename from test/fixtures/octocat.psd rename to test/fixtures/binary/octocat.psd diff --git a/test/fixtures/zip b/test/fixtures/binary/zip similarity index 100% rename from test/fixtures/zip rename to test/fixtures/binary/zip diff --git a/test/fixtures/hello.c b/test/fixtures/c/hello.c similarity index 100% rename from test/fixtures/hello.c rename to test/fixtures/c/hello.c diff --git a/test/fixtures/hello.h b/test/fixtures/c/hello.h similarity index 100% rename from test/fixtures/hello.h rename to test/fixtures/c/hello.h diff --git a/test/fixtures/interval_discr.v b/test/fixtures/coq/interval_discr.v similarity index 100% rename from test/fixtures/interval_discr.v rename to test/fixtures/coq/interval_discr.v diff --git a/test/fixtures/bar.h b/test/fixtures/cpp/bar.h similarity index 100% rename from test/fixtures/bar.h rename to test/fixtures/cpp/bar.h diff --git a/test/fixtures/bar.hpp b/test/fixtures/cpp/bar.hpp similarity index 100% rename from test/fixtures/bar.hpp rename to test/fixtures/cpp/bar.hpp diff --git a/test/fixtures/cuda.cu b/test/fixtures/cpp/cuda.cu similarity index 100% rename from test/fixtures/cuda.cu rename to test/fixtures/cpp/cuda.cu diff --git a/test/fixtures/hello.cpp b/test/fixtures/cpp/hello.cpp similarity index 100% rename from test/fixtures/hello.cpp rename to test/fixtures/cpp/hello.cpp diff --git a/test/fixtures/point.dart b/test/fixtures/dart/point.dart similarity index 100% rename from test/fixtures/point.dart rename to test/fixtures/dart/point.dart diff --git a/test/fixtures/program.dpr b/test/fixtures/delphi/program.dpr similarity index 100% rename from test/fixtures/program.dpr rename to test/fixtures/delphi/program.dpr diff --git a/test/fixtures/dude-thing-okay--001.patch b/test/fixtures/diff/dude-thing-okay--001.patch similarity index 100% rename from test/fixtures/dude-thing-okay--001.patch rename to test/fixtures/diff/dude-thing-okay--001.patch diff --git a/test/fixtures/dude.el b/test/fixtures/emacs/dude.el similarity index 100% rename from test/fixtures/dude.el rename to test/fixtures/emacs/dude.el diff --git a/test/fixtures/hello.s b/test/fixtures/gas/hello.s similarity index 100% rename from test/fixtures/hello.s rename to test/fixtures/gas/hello.s diff --git a/test/fixtures/Hello.gst b/test/fixtures/gosu/Hello.gst similarity index 100% rename from test/fixtures/Hello.gst rename to test/fixtures/gosu/Hello.gst diff --git a/test/fixtures/Hello.gsx b/test/fixtures/gosu/Hello.gsx similarity index 100% rename from test/fixtures/Hello.gsx rename to test/fixtures/gosu/Hello.gsx diff --git a/test/fixtures/Person.gs b/test/fixtures/gosu/Person.gs similarity index 100% rename from test/fixtures/Person.gs rename to test/fixtures/gosu/Person.gs diff --git a/test/fixtures/hello.gsp b/test/fixtures/gosu/hello.gsp similarity index 100% rename from test/fixtures/hello.gsp rename to test/fixtures/gosu/hello.gsp diff --git a/test/fixtures/hello.vark b/test/fixtures/gosu/hello.vark similarity index 100% rename from test/fixtures/hello.vark rename to test/fixtures/gosu/hello.vark diff --git a/test/fixtures/build.gradle b/test/fixtures/groovy/build.gradle similarity index 100% rename from test/fixtures/build.gradle rename to test/fixtures/groovy/build.gradle diff --git a/test/fixtures/script.groovy b/test/fixtures/groovy/script.groovy similarity index 100% rename from test/fixtures/script.groovy rename to test/fixtures/groovy/script.groovy diff --git a/test/fixtures/bar.gsp b/test/fixtures/gsp/bar.gsp similarity index 100% rename from test/fixtures/bar.gsp rename to test/fixtures/gsp/bar.gsp diff --git a/test/fixtures/hello-pagedirective.gsp b/test/fixtures/gsp/hello-pagedirective.gsp similarity index 100% rename from test/fixtures/hello-pagedirective.gsp rename to test/fixtures/gsp/hello-pagedirective.gsp diff --git a/test/fixtures/hello-resources.gsp b/test/fixtures/gsp/hello-resources.gsp similarity index 100% rename from test/fixtures/hello-resources.gsp rename to test/fixtures/gsp/hello-resources.gsp diff --git a/test/fixtures/hello-var.gsp b/test/fixtures/gsp/hello-var.gsp similarity index 100% rename from test/fixtures/hello-var.gsp rename to test/fixtures/gsp/hello-var.gsp diff --git a/test/fixtures/hello.haml b/test/fixtures/haml/hello.haml similarity index 100% rename from test/fixtures/hello.haml rename to test/fixtures/haml/hello.haml diff --git a/test/fixtures/.gitconfig b/test/fixtures/ini/.gitconfig similarity index 100% rename from test/fixtures/.gitconfig rename to test/fixtures/ini/.gitconfig diff --git a/test/fixtures/hello.ik b/test/fixtures/ioke/hello.ik similarity index 100% rename from test/fixtures/hello.ik rename to test/fixtures/ioke/hello.ik diff --git a/test/fixtures/coffee/classes-old.js b/test/fixtures/javascript/classes-old.js similarity index 100% rename from test/fixtures/coffee/classes-old.js rename to test/fixtures/javascript/classes-old.js diff --git a/test/fixtures/coffee/classes.js b/test/fixtures/javascript/classes.js similarity index 100% rename from test/fixtures/coffee/classes.js rename to test/fixtures/javascript/classes.js diff --git a/test/fixtures/dude.js b/test/fixtures/javascript/dude.js similarity index 100% rename from test/fixtures/dude.js rename to test/fixtures/javascript/dude.js diff --git a/test/fixtures/coffee/empty.js b/test/fixtures/javascript/empty.js similarity index 100% rename from test/fixtures/coffee/empty.js rename to test/fixtures/javascript/empty.js diff --git a/test/fixtures/coffee/hello.js b/test/fixtures/javascript/hello.js similarity index 100% rename from test/fixtures/coffee/hello.js rename to test/fixtures/javascript/hello.js diff --git a/test/fixtures/coffee/intro-old.js b/test/fixtures/javascript/intro-old.js similarity index 100% rename from test/fixtures/coffee/intro-old.js rename to test/fixtures/javascript/intro-old.js diff --git a/test/fixtures/coffee/intro.js b/test/fixtures/javascript/intro.js similarity index 100% rename from test/fixtures/coffee/intro.js rename to test/fixtures/javascript/intro.js diff --git a/test/fixtures/jquery-1.4.2.min.js b/test/fixtures/javascript/jquery-1.4.2.min.js similarity index 100% rename from test/fixtures/jquery-1.4.2.min.js rename to test/fixtures/javascript/jquery-1.4.2.min.js diff --git a/test/fixtures/jquery-1.6.1.js b/test/fixtures/javascript/jquery-1.6.1.js similarity index 100% rename from test/fixtures/jquery-1.6.1.js rename to test/fixtures/javascript/jquery-1.6.1.js diff --git a/test/fixtures/jquery-1.6.1.min.js b/test/fixtures/javascript/jquery-1.6.1.min.js similarity index 100% rename from test/fixtures/jquery-1.6.1.min.js rename to test/fixtures/javascript/jquery-1.6.1.min.js diff --git a/test/fixtures/json2_backbone.js b/test/fixtures/javascript/json2_backbone.js similarity index 100% rename from test/fixtures/json2_backbone.js rename to test/fixtures/javascript/json2_backbone.js diff --git a/test/fixtures/script.js b/test/fixtures/javascript/script.js similarity index 100% rename from test/fixtures/script.js rename to test/fixtures/javascript/script.js diff --git a/test/fixtures/steelseries-min.js b/test/fixtures/javascript/steelseries-min.js similarity index 100% rename from test/fixtures/steelseries-min.js rename to test/fixtures/javascript/steelseries-min.js diff --git a/test/fixtures/uglify.js b/test/fixtures/javascript/uglify.js similarity index 100% rename from test/fixtures/uglify.js rename to test/fixtures/javascript/uglify.js diff --git a/test/fixtures/stockcorr.jl b/test/fixtures/julia/stockcorr.jl similarity index 100% rename from test/fixtures/stockcorr.jl rename to test/fixtures/julia/stockcorr.jl diff --git a/test/fixtures/Foo.kt b/test/fixtures/kotlin/Foo.kt similarity index 100% rename from test/fixtures/Foo.kt rename to test/fixtures/kotlin/Foo.kt diff --git a/test/fixtures/foo.lgt b/test/fixtures/logtalk/foo.lgt similarity index 100% rename from test/fixtures/foo.lgt rename to test/fixtures/logtalk/foo.lgt diff --git a/test/fixtures/tender.md b/test/fixtures/markdown/tender.md similarity index 100% rename from test/fixtures/tender.md rename to test/fixtures/markdown/tender.md diff --git a/test/fixtures/matlab_class.m b/test/fixtures/matlab/matlab_class.m similarity index 100% rename from test/fixtures/matlab_class.m rename to test/fixtures/matlab/matlab_class.m diff --git a/test/fixtures/matlab_function.m b/test/fixtures/matlab/matlab_function.m similarity index 100% rename from test/fixtures/matlab_function.m rename to test/fixtures/matlab/matlab_function.m diff --git a/test/fixtures/matlab_function2.m b/test/fixtures/matlab/matlab_function2.m similarity index 100% rename from test/fixtures/matlab_function2.m rename to test/fixtures/matlab/matlab_function2.m diff --git a/test/fixtures/matlab_script.m b/test/fixtures/matlab/matlab_script.m similarity index 100% rename from test/fixtures/matlab_script.m rename to test/fixtures/matlab/matlab_script.m diff --git a/test/fixtures/matlab_script2.m b/test/fixtures/matlab/matlab_script2.m similarity index 100% rename from test/fixtures/matlab_script2.m rename to test/fixtures/matlab/matlab_script2.m diff --git a/test/fixtures/hello.n b/test/fixtures/nemerle/hello.n similarity index 100% rename from test/fixtures/hello.n rename to test/fixtures/nemerle/hello.n diff --git a/test/fixtures/foo.nim b/test/fixtures/nimrod/foo.nim similarity index 100% rename from test/fixtures/foo.nim rename to test/fixtures/nimrod/foo.nim diff --git a/test/fixtures/script.nu b/test/fixtures/nu/script.nu similarity index 100% rename from test/fixtures/script.nu rename to test/fixtures/nu/script.nu diff --git a/test/fixtures/Foo.h b/test/fixtures/objective-c/Foo.h similarity index 100% rename from test/fixtures/Foo.h rename to test/fixtures/objective-c/Foo.h diff --git a/test/fixtures/Foo.m b/test/fixtures/objective-c/Foo.m similarity index 100% rename from test/fixtures/Foo.m rename to test/fixtures/objective-c/Foo.m diff --git a/test/fixtures/FooAppDelegate.h b/test/fixtures/objective-c/FooAppDelegate.h similarity index 100% rename from test/fixtures/FooAppDelegate.h rename to test/fixtures/objective-c/FooAppDelegate.h diff --git a/test/fixtures/FooAppDelegate.m b/test/fixtures/objective-c/FooAppDelegate.m similarity index 100% rename from test/fixtures/FooAppDelegate.m rename to test/fixtures/objective-c/FooAppDelegate.m diff --git a/test/fixtures/empty.m b/test/fixtures/objective-c/empty.m similarity index 100% rename from test/fixtures/empty.m rename to test/fixtures/objective-c/empty.m diff --git a/test/fixtures/hello.m b/test/fixtures/objective-c/hello.m similarity index 100% rename from test/fixtures/hello.m rename to test/fixtures/objective-c/hello.m diff --git a/test/fixtures/Foo.ml b/test/fixtures/ocaml/Foo.ml similarity index 100% rename from test/fixtures/Foo.ml rename to test/fixtures/ocaml/Foo.ml diff --git a/test/fixtures/hello_syntax1.opa b/test/fixtures/opa/hello_syntax1.opa similarity index 100% rename from test/fixtures/hello_syntax1.opa rename to test/fixtures/opa/hello_syntax1.opa diff --git a/test/fixtures/hello_syntax2.opa b/test/fixtures/opa/hello_syntax2.opa similarity index 100% rename from test/fixtures/hello_syntax2.opa rename to test/fixtures/opa/hello_syntax2.opa diff --git a/test/fixtures/fft.cl b/test/fixtures/opencl/fft.cl similarity index 100% rename from test/fixtures/fft.cl rename to test/fixtures/opencl/fft.cl diff --git a/test/fixtures/Email.cls b/test/fixtures/openedge-abl/Email.cls similarity index 100% rename from test/fixtures/Email.cls rename to test/fixtures/openedge-abl/Email.cls diff --git a/test/fixtures/openedge.p b/test/fixtures/openedge-abl/openedge.p similarity index 100% rename from test/fixtures/openedge.p rename to test/fixtures/openedge-abl/openedge.p diff --git a/test/fixtures/hello.pasm b/test/fixtures/pasm/hello.pasm similarity index 100% rename from test/fixtures/hello.pasm rename to test/fixtures/pasm/hello.pasm diff --git a/test/fixtures/perl-test.t b/test/fixtures/perl/perl-test.t similarity index 100% rename from test/fixtures/perl-test.t rename to test/fixtures/perl/perl-test.t diff --git a/test/fixtures/script.pl b/test/fixtures/perl/script.pl similarity index 100% rename from test/fixtures/script.pl rename to test/fixtures/perl/script.pl diff --git a/test/fixtures/test-perl.pl b/test/fixtures/perl/test-perl.pl similarity index 100% rename from test/fixtures/test-perl.pl rename to test/fixtures/perl/test-perl.pl diff --git a/test/fixtures/test-perl2.pl b/test/fixtures/perl/test-perl2.pl similarity index 100% rename from test/fixtures/test-perl2.pl rename to test/fixtures/perl/test-perl2.pl diff --git a/test/fixtures/drupal.module b/test/fixtures/php/drupal.module similarity index 100% rename from test/fixtures/drupal.module rename to test/fixtures/php/drupal.module diff --git a/test/fixtures/hello.pir b/test/fixtures/pir/hello.pir similarity index 100% rename from test/fixtures/hello.pir rename to test/fixtures/pir/hello.pir diff --git a/test/fixtures/pkg/linguist.gem b/test/fixtures/pkg/linguist.gem deleted file mode 100644 index 04cc759e6ae84341291ee465eabbc13450a81e5b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3072 zcmYdEEJ@TWNi5P!uVSDTFaQEG6B7my4Fu@4fq{uJObjA#Xl!g~!k}P4D+eK)TUreC zJ<$5{jMUT|WC=7jA$hRZkUWQ`eXw%nyEz!P*QWU~FefEQur5vz=?MWj_5Xin2EFxL z-!rfbR)>$eiz*?In_7~X0xAOrF#nqy7-HmqbMw*sPn8HJUvnSm-zT)Z|Y1f3q4{zLHS7fOVp7!r& z?z{R1*RLFbEA@>d>?^V_JUE$jXjet5m@sO0m>Dt-Sg&%=@pGvVH!6 zYs;@Kog&;S>9fKiZfD-S*&06{9{$Zd^K50P_}klC3b$A5f7xJo;_j}LiV5x0PxcGE zuCHp8-CfrCXu=NnSHUN7hAr^eqO}aJJ$&eDzj%uhaX8*d&uyg?>4E xJ=^~&FK$lq+QGbpp(Tk!Ws&s9zl@O5*?6kM0@l&enLzR$l^zX&(Gb8B0sv%386W@v diff --git a/test/fixtures/hello.ps1 b/test/fixtures/powershell/hello.ps1 similarity index 100% rename from test/fixtures/hello.ps1 rename to test/fixtures/powershell/hello.ps1 diff --git a/test/fixtures/hello.psm1 b/test/fixtures/powershell/hello.psm1 similarity index 100% rename from test/fixtures/hello.psm1 rename to test/fixtures/powershell/hello.psm1 diff --git a/test/fixtures/test-prolog.pl b/test/fixtures/prolog/test-prolog.pl similarity index 100% rename from test/fixtures/test-prolog.pl rename to test/fixtures/prolog/test-prolog.pl diff --git a/test/fixtures/script.py b/test/fixtures/python/script.py similarity index 100% rename from test/fixtures/script.py rename to test/fixtures/python/script.py diff --git a/test/fixtures/hello-r.R b/test/fixtures/r/hello-r.R similarity index 100% rename from test/fixtures/hello-r.R rename to test/fixtures/r/hello-r.R diff --git a/test/fixtures/scribble.scrbl b/test/fixtures/racket/scribble.scrbl similarity index 100% rename from test/fixtures/scribble.scrbl rename to test/fixtures/racket/scribble.scrbl diff --git a/test/fixtures/script.rkt b/test/fixtures/racket/script.rkt similarity index 100% rename from test/fixtures/script.rkt rename to test/fixtures/racket/script.rkt diff --git a/test/fixtures/hello-rebol.r b/test/fixtures/rebol/hello-rebol.r similarity index 100% rename from test/fixtures/hello-rebol.r rename to test/fixtures/rebol/hello-rebol.r diff --git a/test/fixtures/Capfile b/test/fixtures/ruby/Capfile similarity index 100% rename from test/fixtures/Capfile rename to test/fixtures/ruby/Capfile diff --git a/test/fixtures/Rakefile b/test/fixtures/ruby/Rakefile similarity index 100% rename from test/fixtures/Rakefile rename to test/fixtures/ruby/Rakefile diff --git a/test/fixtures/foo.rb b/test/fixtures/ruby/foo.rb similarity index 100% rename from test/fixtures/foo.rb rename to test/fixtures/ruby/foo.rb diff --git a/test/fixtures/grit.rb b/test/fixtures/ruby/grit.rb similarity index 100% rename from test/fixtures/grit.rb rename to test/fixtures/ruby/grit.rb diff --git a/test/fixtures/script.mrb b/test/fixtures/ruby/macruby-script similarity index 100% rename from test/fixtures/script.mrb rename to test/fixtures/ruby/macruby-script diff --git a/test/fixtures/script.rake b/test/fixtures/ruby/script.rake similarity index 100% rename from test/fixtures/script.rake rename to test/fixtures/ruby/script.rake diff --git a/test/fixtures/script.rb b/test/fixtures/ruby/script.rb similarity index 100% rename from test/fixtures/script.rb rename to test/fixtures/ruby/script.rb diff --git a/test/fixtures/script2.rb b/test/fixtures/ruby/script2.rb similarity index 100% rename from test/fixtures/script2.rb rename to test/fixtures/ruby/script2.rb diff --git a/test/fixtures/wrong_shebang.rb b/test/fixtures/ruby/wrong_shebang.rb similarity index 100% rename from test/fixtures/wrong_shebang.rb rename to test/fixtures/ruby/wrong_shebang.rb diff --git a/test/fixtures/hello.rs b/test/fixtures/rust/hello.rs similarity index 100% rename from test/fixtures/hello.rs rename to test/fixtures/rust/hello.rs diff --git a/test/fixtures/screen.sass b/test/fixtures/sass/screen.sass similarity index 100% rename from test/fixtures/screen.sass rename to test/fixtures/sass/screen.sass diff --git a/test/fixtures/build.sbt b/test/fixtures/scala/build.sbt similarity index 100% rename from test/fixtures/build.sbt rename to test/fixtures/scala/build.sbt diff --git a/test/fixtures/script.scala b/test/fixtures/scala/script.scala similarity index 100% rename from test/fixtures/script.scala rename to test/fixtures/scala/script.scala diff --git a/test/fixtures/asteroids.sps b/test/fixtures/scheme/asteroids.sps similarity index 100% rename from test/fixtures/asteroids.sps rename to test/fixtures/scheme/asteroids.sps diff --git a/test/fixtures/scilab_function.sci b/test/fixtures/scilab/scilab_function.sci similarity index 100% rename from test/fixtures/scilab_function.sci rename to test/fixtures/scilab/scilab_function.sci diff --git a/test/fixtures/scilab_script.sce b/test/fixtures/scilab/scilab_script.sce similarity index 100% rename from test/fixtures/scilab_script.sce rename to test/fixtures/scilab/scilab_script.sce diff --git a/test/fixtures/scilab_test.tst b/test/fixtures/scilab/scilab_test.tst similarity index 100% rename from test/fixtures/scilab_test.tst rename to test/fixtures/scilab/scilab_test.tst diff --git a/test/fixtures/screen.scss b/test/fixtures/scss/screen.scss similarity index 100% rename from test/fixtures/screen.scss rename to test/fixtures/scss/screen.scss diff --git a/test/fixtures/.bash_profile b/test/fixtures/shell/.bash_profile similarity index 100% rename from test/fixtures/.bash_profile rename to test/fixtures/shell/.bash_profile diff --git a/test/fixtures/.bashrc b/test/fixtures/shell/.bashrc similarity index 100% rename from test/fixtures/.bashrc rename to test/fixtures/shell/.bashrc diff --git a/test/fixtures/.profile b/test/fixtures/shell/.profile similarity index 100% rename from test/fixtures/.profile rename to test/fixtures/shell/.profile diff --git a/test/fixtures/.zlogin b/test/fixtures/shell/.zlogin similarity index 100% rename from test/fixtures/.zlogin rename to test/fixtures/shell/.zlogin diff --git a/test/fixtures/.zshrc b/test/fixtures/shell/.zshrc similarity index 100% rename from test/fixtures/.zshrc rename to test/fixtures/shell/.zshrc diff --git a/test/fixtures/PKGBUILD b/test/fixtures/shell/PKGBUILD similarity index 100% rename from test/fixtures/PKGBUILD rename to test/fixtures/shell/PKGBUILD diff --git a/test/fixtures/script.bash b/test/fixtures/shell/script.bash similarity index 100% rename from test/fixtures/script.bash rename to test/fixtures/shell/script.bash diff --git a/test/fixtures/script.sh b/test/fixtures/shell/script.sh similarity index 100% rename from test/fixtures/script.sh rename to test/fixtures/shell/script.sh diff --git a/test/fixtures/script.zsh b/test/fixtures/shell/script.zsh similarity index 100% rename from test/fixtures/script.zsh rename to test/fixtures/shell/script.zsh diff --git a/test/fixtures/Foo.sig b/test/fixtures/standard-ml/Foo.sig similarity index 100% rename from test/fixtures/Foo.sig rename to test/fixtures/standard-ml/Foo.sig diff --git a/test/fixtures/Foo.sml b/test/fixtures/standard-ml/Foo.sml similarity index 100% rename from test/fixtures/Foo.sml rename to test/fixtures/standard-ml/Foo.sml diff --git a/test/fixtures/subdir/Rakefile b/test/fixtures/subdir/Rakefile deleted file mode 100644 index 885ab4ab..00000000 --- a/test/fixtures/subdir/Rakefile +++ /dev/null @@ -1,3 +0,0 @@ -task :default do - puts "Rake (subdir)" -end diff --git a/test/fixtures/BCR2000.sc b/test/fixtures/supercollider/BCR2000.sc similarity index 100% rename from test/fixtures/BCR2000.sc rename to test/fixtures/supercollider/BCR2000.sc diff --git a/test/fixtures/foo.tea b/test/fixtures/tea/foo.tea similarity index 100% rename from test/fixtures/foo.tea rename to test/fixtures/tea/foo.tea diff --git a/test/fixtures/reedthesis.cls b/test/fixtures/tex/reedthesis.cls similarity index 100% rename from test/fixtures/reedthesis.cls rename to test/fixtures/tex/reedthesis.cls diff --git a/test/fixtures/README b/test/fixtures/text/README similarity index 100% rename from test/fixtures/README rename to test/fixtures/text/README diff --git a/test/fixtures/blank b/test/fixtures/text/blank similarity index 100% rename from test/fixtures/blank rename to test/fixtures/text/blank diff --git a/test/fixtures/defu.nkt b/test/fixtures/text/defu.nkt similarity index 100% rename from test/fixtures/defu.nkt rename to test/fixtures/text/defu.nkt diff --git a/test/fixtures/dump.sql b/test/fixtures/text/dump.sql similarity index 100% rename from test/fixtures/dump.sql rename to test/fixtures/text/dump.sql diff --git a/test/fixtures/file.json b/test/fixtures/text/file.json similarity index 100% rename from test/fixtures/file.json rename to test/fixtures/text/file.json diff --git a/test/fixtures/file.txt b/test/fixtures/text/file.txt similarity index 100% rename from test/fixtures/file.txt rename to test/fixtures/text/file.txt diff --git a/test/fixtures/foo.txt b/test/fixtures/text/foo.txt similarity index 100% rename from test/fixtures/foo.txt rename to test/fixtures/text/foo.txt diff --git a/test/fixtures/md b/test/fixtures/text/md similarity index 100% rename from test/fixtures/md rename to test/fixtures/text/md diff --git a/test/fixtures/script.foo b/test/fixtures/text/script.foo similarity index 100% rename from test/fixtures/script.foo rename to test/fixtures/text/script.foo diff --git a/test/fixtures/txt b/test/fixtures/text/txt similarity index 100% rename from test/fixtures/txt rename to test/fixtures/text/txt diff --git a/test/fixtures/turing.t b/test/fixtures/turing/turing.t similarity index 100% rename from test/fixtures/turing.t rename to test/fixtures/turing/turing.t diff --git a/test/fixtures/sha-256-functions.v b/test/fixtures/verilog/sha-256-functions.v similarity index 100% rename from test/fixtures/sha-256-functions.v rename to test/fixtures/verilog/sha-256-functions.v diff --git a/test/fixtures/foo.vhd b/test/fixtures/vhdl/foo.vhd similarity index 100% rename from test/fixtures/foo.vhd rename to test/fixtures/vhdl/foo.vhd diff --git a/test/fixtures/.gvimrc b/test/fixtures/viml/.gvimrc similarity index 100% rename from test/fixtures/.gvimrc rename to test/fixtures/viml/.gvimrc diff --git a/test/fixtures/.vimrc b/test/fixtures/viml/.vimrc similarity index 100% rename from test/fixtures/.vimrc rename to test/fixtures/viml/.vimrc diff --git a/test/fixtures/cApplication.cls b/test/fixtures/visual-basic/cApplication.cls similarity index 100% rename from test/fixtures/cApplication.cls rename to test/fixtures/visual-basic/cApplication.cls diff --git a/test/fixtures/net_docfile.xml b/test/fixtures/xml/net_docfile.xml similarity index 100% rename from test/fixtures/net_docfile.xml rename to test/fixtures/xml/net_docfile.xml diff --git a/test/fixtures/xproc.xqm b/test/fixtures/xquery/xproc.xqm similarity index 100% rename from test/fixtures/xproc.xqm rename to test/fixtures/xquery/xproc.xqm diff --git a/test/fixtures/test.xslt b/test/fixtures/xslt/test.xslt similarity index 100% rename from test/fixtures/test.xslt rename to test/fixtures/xslt/test.xslt diff --git a/test/fixtures/.gemrc b/test/fixtures/yaml/.gemrc similarity index 100% rename from test/fixtures/.gemrc rename to test/fixtures/yaml/.gemrc diff --git a/test/test_blob.rb b/test/test_blob.rb index ce2df0ec..1d17e60d 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -14,7 +14,8 @@ class TestBlob < Test::Unit::TestCase end def blob(name) - FileBlob.new(File.join(fixtures_path, name), fixtures_path) + name = File.join(fixtures_path, name) unless name =~ /^\// + FileBlob.new(name, fixtures_path) end def script_blob(name) @@ -23,6 +24,23 @@ class TestBlob < Test::Unit::TestCase blob end + def each_language_fixture + Dir["#{fixtures_path}/*"].each do |path| + name = File.basename(path) + + if name == 'text' || name == 'binary' + next + else + assert language = Language.find_by_alias(name), "No language alias for #{name.inspect}" + end + + Dir.entries(path).each do |filename| + next if filename == '.' || filename == '..' + yield language, blob(File.join(path, filename)) + end + end + end + def test_name assert_equal "foo.rb", blob("foo.rb").name end @@ -32,63 +50,63 @@ class TestBlob < Test::Unit::TestCase end def test_mime_type - assert_equal "application/octet-stream", blob("dog.o").mime_type - assert_equal "application/ogg", blob("foo.ogg").mime_type - assert_equal "application/postscript", blob("octocat.ai").mime_type - assert_equal "application/x-ruby", blob("grit.rb").mime_type - assert_equal "application/x-sh", blob("script.sh").mime_type - assert_equal "application/xml", blob("bar.xml").mime_type - assert_equal "text/plain", blob("README").mime_type + assert_equal "application/octet-stream", blob("binary/dog.o").mime_type + assert_equal "application/ogg", blob("binary/foo.ogg").mime_type + assert_equal "application/postscript", blob("binary/octocat.ai").mime_type + assert_equal "application/x-ruby", blob("ruby/grit.rb").mime_type + assert_equal "application/x-sh", blob("shell/script.sh").mime_type + assert_equal "application/xml", blob("xml/bar.xml").mime_type + assert_equal "text/plain", blob("text/README").mime_type end def test_content_type - assert_equal "application/octet-stream", blob("dog.o").content_type - assert_equal "application/ogg", blob("foo.ogg").content_type - assert_equal "application/pdf", blob("foo.pdf").content_type - assert_equal "image/png", blob("foo.png").content_type - assert_equal "text/plain; charset=iso-8859-2", blob("README").content_type - assert_equal "text/plain; charset=iso-8859-1", blob("script.pl").content_type - assert_equal "text/plain; charset=iso-8859-1", blob("script.py").content_type - assert_equal "text/plain; charset=iso-8859-1", blob("script.rb").content_type - assert_equal "text/plain; charset=iso-8859-1", blob("script.sh").content_type + assert_equal "application/octet-stream", blob("binary/dog.o").content_type + assert_equal "application/ogg", blob("binary/foo.ogg").content_type + assert_equal "application/pdf", blob("binary/foo.pdf").content_type + assert_equal "image/png", blob("binary/foo.png").content_type + assert_equal "text/plain; charset=iso-8859-2", blob("text/README").content_type + assert_equal "text/plain; charset=iso-8859-1", blob("perl/script.pl").content_type + assert_equal "text/plain; charset=iso-8859-1", blob("python/script.py").content_type + assert_equal "text/plain; charset=iso-8859-1", blob("ruby/script.rb").content_type + assert_equal "text/plain; charset=iso-8859-1", blob("shell/script.sh").content_type end def test_disposition - assert_equal "attachment; filename=foo+bar.jar", blob("foo bar.jar").disposition - assert_equal "attachment; filename=foo.bin", blob("foo.bin").disposition - assert_equal "attachment; filename=linguist.gem", blob("pkg/linguist.gem").disposition - assert_equal "attachment; filename=octocat.ai", blob("octocat.ai").disposition - assert_equal "inline", blob("README").disposition - assert_equal "inline", blob("foo.txt").disposition - assert_equal "inline", blob("grit.rb").disposition - assert_equal "inline", blob("octocat.png").disposition + assert_equal "attachment; filename=foo+bar.jar", blob("binary/foo bar.jar").disposition + assert_equal "attachment; filename=foo.bin", blob("binary/foo.bin").disposition + assert_equal "attachment; filename=linguist.gem", blob("binary/linguist.gem").disposition + assert_equal "attachment; filename=octocat.ai", blob("binary/octocat.ai").disposition + assert_equal "inline", blob("text/README").disposition + assert_equal "inline", blob("text/foo.txt").disposition + assert_equal "inline", blob("ruby/grit.rb").disposition + assert_equal "inline", blob("binary/octocat.png").disposition end def test_data - assert_equal "module Foo\nend\n", blob("foo.rb").data + assert_equal "module Foo\nend\n", blob("ruby/foo.rb").data end def test_lines - assert_equal ["module Foo", "end", ""], blob("foo.rb").lines + assert_equal ["module Foo", "end", ""], blob("ruby/foo.rb").lines end def test_size - assert_equal 15, blob("foo.rb").size + assert_equal 15, blob("ruby/foo.rb").size end def test_loc - assert_equal 3, blob("foo.rb").loc + assert_equal 3, blob("ruby/foo.rb").loc end def test_sloc - assert_equal 2, blob("foo.rb").sloc + assert_equal 2, blob("ruby/foo.rb").sloc end def test_encoding - assert_equal "ISO-8859-2", blob("README").encoding - assert_equal "ISO-8859-1", blob("dump.sql").encoding - assert_equal "UTF-8", blob("foo.txt").encoding - assert_nil blob("dog.o").encoding + assert_equal "ISO-8859-2", blob("text/README").encoding + assert_equal "ISO-8859-1", blob("text/dump.sql").encoding + assert_equal "UTF-8", blob("text/foo.txt").encoding + assert_nil blob("binary/dog.o").encoding end def test_binary @@ -99,88 +117,87 @@ class TestBlob < Test::Unit::TestCase end assert large_blob.binary? - assert blob("git.deb").binary? - assert blob("git.exe").binary? - assert blob("hello.pbc").binary? - assert blob("linguist.gem").binary? - assert blob("octocat.ai").binary? - assert blob("octocat.png").binary? - assert blob("zip").binary? - assert !blob("README").binary? - assert !blob("file.txt").binary? - assert !blob("foo.rb").binary? - assert !blob("script.pl").binary? + assert blob("binary/git.deb").binary? + assert blob("binary/git.exe").binary? + assert blob("binary/hello.pbc").binary? + assert blob("binary/linguist.gem").binary? + assert blob("binary/octocat.ai").binary? + assert blob("binary/octocat.png").binary? + assert blob("binary/zip").binary? + assert !blob("text/README").binary? + assert !blob("text/file.txt").binary? + assert !blob("ruby/foo.rb").binary? + assert !blob("perl/script.pl").binary? end def test_text - assert blob("README").text? - assert blob("dump.sql").text? - assert blob("file.json").text? - assert blob("file.txt").text? - assert blob("md").text? - assert blob("script.sh").text? - assert blob("tender.md").text? - assert blob("txt").text? + assert blob("text/README").text? + assert blob("text/dump.sql").text? + assert blob("text/file.json").text? + assert blob("text/file.txt").text? + assert blob("text/md").text? + assert blob("shell/script.sh").text? + assert blob("text/txt").text? end def test_image - assert blob("octocat.gif").image? - assert blob("octocat.jpeg").image? - assert blob("octocat.jpg").image? - assert blob("octocat.png").image? - assert !blob("octocat.ai").image? - assert !blob("octocat.psd").image? + assert blob("binary/octocat.gif").image? + assert blob("binary/octocat.jpeg").image? + assert blob("binary/octocat.jpg").image? + assert blob("binary/octocat.png").image? + assert !blob("binary/octocat.ai").image? + assert !blob("binary/octocat.psd").image? end def test_viewable - assert blob("README").viewable? - assert blob("foo.rb").viewable? - assert blob("script.pl").viewable? - assert !blob("linguist.gem").viewable? - assert !blob("octocat.ai").viewable? - assert !blob("octocat.png").viewable? + assert blob("text/README").viewable? + assert blob("ruby/foo.rb").viewable? + assert blob("perl/script.pl").viewable? + assert !blob("binary/linguist.gem").viewable? + assert !blob("binary/octocat.ai").viewable? + assert !blob("binary/octocat.png").viewable? end def test_generated - assert !blob("README").generated? + assert !blob("text/README").generated? # Xcode project files - assert blob("MainMenu.xib").generated? - assert blob("MainMenu.nib").generated? - assert blob("project.pbxproj").generated? + assert blob("xml/MainMenu.xib").generated? + assert blob("binary/MainMenu.nib").generated? + assert blob("xml/project.pbxproj").generated? # Gemfile.locks assert blob("Gemfile.lock").generated? # Generated .NET Docfiles - assert blob("net_docfile.xml").generated? + assert blob("xml/net_docfile.xml").generated? # Long line - assert !blob("uglify.js").generated? + assert !blob("javascript/uglify.js").generated? # Inlined JS, but mostly code - assert !blob("json2_backbone.js").generated? + assert !blob("javascript/json2_backbone.js").generated? # Minified JS - assert !blob("jquery-1.6.1.js").generated? - assert blob("jquery-1.6.1.min.js").generated? - assert blob("jquery-1.4.2.min.js").generated? + assert !blob("javascript/jquery-1.6.1.js").generated? + assert blob("javascript/jquery-1.6.1.min.js").generated? + assert blob("javascript/jquery-1.4.2.min.js").generated? # CoffeScript JS # These examples are to basic to tell - assert !blob("coffee/empty.js").generated? - assert !blob("coffee/hello.js").generated? + assert !blob("javascript/empty.js").generated? + assert !blob("javascript/hello.js").generated? - assert blob("coffee/intro-old.js").generated? - assert blob("coffee/classes-old.js").generated? + assert blob("javascript/intro-old.js").generated? + assert blob("javascript/classes-old.js").generated? - assert blob("coffee/intro.js").generated? - assert blob("coffee/classes.js").generated? + assert blob("javascript/intro.js").generated? + assert blob("javascript/classes.js").generated? end def test_vendored - assert !blob("README").vendored? + assert !blob("text/README").vendored? assert !blob("ext/extconf.rb").vendored? # Node depedencies @@ -261,244 +278,46 @@ class TestBlob < Test::Unit::TestCase end def test_indexable - assert blob("file.txt").indexable? - assert blob("foo.rb").indexable? - assert !blob("defu.nkt").indexable? - assert !blob("dump.sql").indexable? - assert !blob("github.po").indexable? - assert !blob("linguist.gem").indexable? + assert blob("text/file.txt").indexable? + assert blob("ruby/foo.rb").indexable? + assert !blob("text/defu.nkt").indexable? + assert !blob("text/dump.sql").indexable? + assert !blob("binary/github.po").indexable? + assert !blob("binary/linguist.gem").indexable? end def test_language - assert_equal Language['C'], blob("hello.c").language - assert_equal Language['C'], blob("hello.h").language - assert_equal Language['C++'], blob("bar.h").language - assert_equal Language['C++'], blob("bar.hpp").language - assert_equal Language['C++'], blob("hello.cpp").language - assert_equal Language['C++'], blob("cuda.cu").language - assert_equal Language['GAS'], blob("hello.s").language - assert_equal Language['Logtalk'], blob("foo.lgt").language - assert_equal Language['Objective-C'], blob("Foo.h").language - assert_equal Language['Objective-C'], blob("Foo.m").language - assert_equal Language['Objective-C'], blob("FooAppDelegate.h").language - assert_equal Language['Objective-C'], blob("FooAppDelegate.m").language - assert_equal Language['Objective-C'], blob("hello.m").language - assert_equal Language['OpenCL'], blob("fft.cl").language - assert_equal Language['Ruby'], blob("foo.rb").language - assert_equal Language['Ruby'], blob("script.rb").language - assert_equal Language['Ruby'], blob("wrong_shebang.rb").language - assert_equal Language['Arduino'], blob("hello.ino").language - assert_equal Language['VHDL'], blob("foo.vhd").language - assert_nil blob("octocat.png").language - - # .cls disambiguation - # https://github.com/abevoelker/abl-email-client/blob/master/com/abevoelker/email/Email.cls - assert_equal Language['OpenEdge ABL'], blob("Email.cls").language - # https://github.com/emcmanis/Thesis/blob/master/TeX/Thesis%20Template/reedthesis.cls - assert_equal Language['TeX'], blob("reedthesis.cls").language - # https://github.com/DangerMouseB/VLMessaging/blob/master/VLMMachineRouter/cApplication.cls - assert_equal Language['Visual Basic'], blob("cApplication.cls").language - # https://github.com/apex-commons/base/blob/master/src/classes/ArrayUtils.cls - assert_equal Language['Apex'], blob("ArrayUtils.cls").language - - # .pl disambiguation - assert_equal Language['Prolog'], blob("test-prolog.pl").language - assert_equal Language['Perl'], blob("test-perl.pl").language - assert_equal Language['Perl'], blob("test-perl2.pl").language - - # .m disambiguation - assert_equal Language['Objective-C'], blob("empty.m").language - assert_equal Language['Objective-C'], blob("Foo.m").language - assert_equal Language['Objective-C'], blob("hello.m").language - assert_equal Language['Matlab'], blob("matlab_function.m").language - assert_equal Language['Matlab'], blob("matlab_script.m").language - assert_equal Language['Matlab'], blob("matlab_function2.m").language - assert_equal Language['Matlab'], blob("matlab_script2.m").language - assert_equal Language['Matlab'], blob("matlab_class.m").language - - # .r disambiguation - assert_equal Language['R'], blob("hello-r.R").language - assert_equal Language['Rebol'], blob("hello-rebol.r").language - - # .t disambiguation - assert_equal Language['Perl'], blob("perl-test.t").language - assert_equal Language['Turing'], blob("turing.t").language - - # .v disambiguation - # https://github.com/progranism/Open-Source-FPGA-Bitcoin-Miner/blob/master/src/sha-256-functions.v - assert_equal Language['Verilog'], blob("sha-256-functions.v").language - # https://github.com/coq/coq/blob/trunk/doc/faq/interval_discr.v - assert_equal Language['Coq'], blob("interval_discr.v").language - - # ML - assert_equal Language['OCaml'], blob("Foo.ml").language - assert_equal Language['Standard ML'], blob("Foo.sig").language - assert_equal Language['Standard ML'], blob("Foo.sml").language - - # Scilab - assert_equal Language['Scilab'], blob("scilab_script.sce").language - assert_equal Language['Scilab'], blob("scilab_function.sci").language - assert_equal Language['Scilab'], blob("scilab_test.tst").language - - # Config files - assert_equal Language['INI'], blob(".gitconfig").language - assert_equal Language['Shell'], blob(".bash_profile").language - assert_equal Language['Shell'], blob(".bashrc").language - assert_equal Language['Shell'], blob(".profile").language - assert_equal Language['Shell'], blob(".zlogin").language - assert_equal Language['Shell'], blob(".zshrc").language - assert_equal Language['VimL'], blob(".gvimrc").language - assert_equal Language['VimL'], blob(".vimrc").language - assert_equal Language['YAML'], blob(".gemrc").language - - assert_nil blob("blank").language - assert_nil blob("README").language - - # https://github.com/xquery/xprocxq/blob/master/src/xquery/xproc.xqm - assert_equal Language['XQuery'], blob("xproc.xqm").language - - # https://github.com/wycats/osx-window-sizing/blob/master/center.applescript - assert_equal Language['AppleScript'], blob("center.scpt").language - assert_equal Language['AppleScript'], blob("center.applescript").language - - # https://github.com/Araq/Nimrod/tree/master/examples - assert_equal Language['Nimrod'], blob("foo.nim").language - - # http://supercollider.sourceforge.net/ - # https://github.com/drichert/BCR2000.sc/blob/master/BCR2000.sc - assert_equal Language['SuperCollider'], blob("BCR2000.sc").language - - # https://github.com/harrah/xsbt/wiki/Quick-Configuration-Examples - assert_equal Language['Scala'], blob('build.sbt').language - - # https://github.com/gradleware/oreilly-gradle-book-examples/blob/master/ant-antbuilder/build.gradle - assert_equal Language['Groovy'], blob("build.gradle").language - - # http://docs.racket-lang.org/scribble/ - assert_equal Language['Racket'], blob("scribble.scrbl").language - - # https://github.com/drupal/drupal/blob/7.x/modules/php/php.module - assert_equal Language['PHP'], blob("drupal.module").language - - # https://github.com/googleapi/googleapi/blob/master/demos/gmail_demo/gmail.dpr - assert_equal Language['Delphi'], blob("program.dpr").language - - # https://github.com/philiplaureano/Nemerle.FizzBuzz/blob/master/FizzBuzz/FizzBuzzer.n - assert_equal Language['Nemerle'], blob("hello.n").language - - # https://github.com/dharmatech/agave/blob/master/demos/asteroids.sps - assert_equal Language['Scheme'], blob("asteroids.sps").language - - # https://github.com/graydon/rust - assert_equal Language['Rust'], blob("hello.rs").language - - # https://github.com/olabini/ioke - assert_equal Language['Ioke'], blob("hello.ik").language - - # https://github.com/parrot/parrot - assert_equal Language['Parrot Internal Representation'], blob("hello.pir").language - assert_equal Language['Parrot Assembly'], blob("hello.pasm").language - - # http://gosu-lang.org - assert_equal Language['Gosu'], blob("Hello.gsx").language - assert_equal Language['Gosu'], blob("hello.gsp").language - assert_equal Language['Gosu'], blob("Hello.gst").language - assert_equal Language['Gosu'], blob("hello.vark").language - - # Groovy Server Pages - assert_equal Language['Groovy Server Pages'], blob("bar.gsp").language - assert_equal Language['Groovy Server Pages'], blob("hello-resources.gsp").language - assert_equal Language['Groovy Server Pages'], blob("hello-pagedirective.gsp").language - assert_equal Language['Groovy Server Pages'], blob("hello-var.gsp").language - - # https://github.com/Lexikos/AutoHotkey_L - assert_equal Language['AutoHotkey'], blob("hello.ahk").language - - # Haml - assert_equal Language['Haml'], blob("hello.haml").language - assert_equal Language['HTML'], blob("hello.haml").language.group - - # Sass - assert_equal Language['Sass'], blob("screen.sass").language - assert_equal Language['CSS'], blob("screen.sass").language.group - assert_equal Language['SCSS'], blob("screen.scss").language - assert_equal Language['CSS'], blob("screen.scss").language.group - - # OpenEdge ABL / Progress - assert_equal Language['OpenEdge ABL'], blob("openedge.p").language - - # Tea - assert_equal Language['Tea'], blob("foo.tea").language - - # Kotlin - assert_equal Language['Kotlin'], blob("Foo.kt").language - - # Julia: http://julialang.org/ - assert_equal Language['Julia'], blob("stockcorr.jl").language - - # Dart: http://dartlang.org/ - assert_equal Language['Dart'], blob("point.dart").language - - # Arch Linux PKGBUILD - assert_equal Language['Shell'], blob("PKGBUILD").language - - # XML - assert_equal Language['XSLT'], blob("test.xslt").language + # Drop any files under test/fixtures/LANGUAGE + each_language_fixture do |language, blob| + assert_equal language, blob.language, blob.name + end end def test_lexer - assert_equal Lexer['Diff'], blob("dude-thing-okay--001.patch").lexer - assert_equal Lexer['JavaScript'], blob("dude.js").lexer - assert_equal Lexer['Ruby'], blob("Capfile").lexer - assert_equal Lexer['Ruby'], blob("grit.rb").lexer - assert_equal Lexer['Scheme'], blob("dude.el").lexer - assert_equal Lexer['Text only'], blob("README").lexer - assert_equal Lexer['Tea'], blob("foo.tea").lexer - assert_equal Lexer['vhdl'], blob("foo.vhd").lexer - assert_equal Lexer['Julia'], blob("stockcorr.jl").lexer - assert_equal Lexer['Dart'], blob("point.dart").lexer - assert_equal Lexer['Bash'], blob("PKGBUILD").lexer + assert_equal Lexer['Ruby'], blob("ruby/foo.rb").lexer end def test_shebang_script - assert_equal 'sh', script_blob("script.sh").shebang_script - assert_equal 'bash', script_blob("script.bash").shebang_script - assert_equal 'zsh', script_blob("script.zsh").shebang_script - assert_equal 'perl', script_blob("script.pl").shebang_script - assert_equal 'ruby', script_blob("script.rb").shebang_script - assert_equal 'ruby', script_blob("script2.rb").shebang_script - assert_equal 'python', script_blob("script.py").shebang_script - assert_equal 'node', script_blob("script.js").shebang_script - assert_equal 'groovy', script_blob("script.groovy").shebang_script - assert_equal 'macruby', script_blob("script.mrb").shebang_script - assert_equal 'rake', script_blob("script.rake").shebang_script - assert_equal 'foo', script_blob("script.foo").shebang_script - assert_equal 'nush', script_blob("script.nu").shebang_script - assert_equal 'scala', script_blob("script.scala").shebang_script - assert_equal 'racket', script_blob("script.rkt").shebang_script - assert_equal nil, script_blob("foo.rb").shebang_script - end - - def test_shebang_language - assert_equal Language['Shell'], script_blob("script.sh").shebang_language - assert_equal Language['Shell'], script_blob("script.bash").shebang_language - assert_equal Language['Shell'], script_blob("script.zsh").shebang_language - assert_equal Language['Perl'], script_blob("script.pl").shebang_language - assert_equal Language['Ruby'], script_blob("script.rb").shebang_language - assert_equal Language['Python'], script_blob("script.py").shebang_language - assert_equal Language['JavaScript'], script_blob("script.js").shebang_language - assert_equal Language['Groovy'], script_blob("script.groovy").shebang_language - assert_equal Language['Ruby'], script_blob("script.mrb").shebang_language - assert_equal Language['Ruby'], script_blob("script.rake").shebang_language - assert_equal Language['Nu'], script_blob("script.nu").shebang_language - assert_equal Language['Scala'], script_blob("script.scala").shebang_language - assert_equal Language['Racket'], script_blob("script.rkt").shebang_language - assert_equal nil, script_blob("script.foo").shebang_language - assert_equal nil, script_blob("foo.rb").shebang_language + assert_equal 'sh', script_blob("shell/script.sh").shebang_script + assert_equal 'bash', script_blob("shell/script.bash").shebang_script + assert_equal 'zsh', script_blob("shell/script.zsh").shebang_script + assert_equal 'perl', script_blob("perl/script.pl").shebang_script + assert_equal 'ruby', script_blob("ruby/script.rb").shebang_script + assert_equal 'ruby', script_blob("ruby/script2.rb").shebang_script + assert_equal 'python', script_blob("python/script.py").shebang_script + assert_equal 'node', script_blob("javascript/script.js").shebang_script + assert_equal 'groovy', script_blob("groovy/script.groovy").shebang_script + assert_equal 'macruby', script_blob("ruby/macruby-script").shebang_script + assert_equal 'rake', script_blob("ruby/script.rake").shebang_script + assert_equal 'foo', script_blob("text/script.foo").shebang_script + assert_equal 'nush', script_blob("nu/script.nu").shebang_script + assert_equal 'scala', script_blob("scala/script.scala").shebang_script + assert_equal 'racket', script_blob("racket/script.rkt").shebang_script + assert_equal nil, script_blob("ruby/foo.rb").shebang_script end def test_colorize - assert_equal <<-HTML, blob("foo.rb").colorize + assert_equal <<-HTML, blob("ruby/foo.rb").colorize
module Foo
 end
 
@@ -507,18 +326,18 @@ class TestBlob < Test::Unit::TestCase end def test_colorize_without_wrapper - assert_equal <<-HTML, blob("foo.rb").colorize_without_wrapper + assert_equal <<-HTML, blob("ruby/foo.rb").colorize_without_wrapper module Foo end HTML end def test_colorize_does_skip_minified_files - assert_nil blob("jquery-1.6.1.min.js").colorize + assert_nil blob("javascript/jquery-1.6.1.min.js").colorize end # Pygments.rb was taking exceeding long on this particular file def test_colorize_doesnt_blow_up_with_files_with_high_ratio_of_long_lines - assert_nil blob("steelseries-min.js").colorize + assert_nil blob("javascript/steelseries-min.js").colorize end end