diff options
author | Anton L. Šijanec <anton@sijanec.eu> | 2020-04-28 22:53:07 +0200 |
---|---|---|
committer | Anton L. Šijanec <anton@sijanec.eu> | 2020-04-28 22:53:07 +0200 |
commit | aeef95ae52a73544681b45e387f7dd580e88e011 (patch) | |
tree | e2044669ab7835f0f6ee56db6ec9ce828a0e3979 /test | |
parent | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaauuu (diff) | |
download | bverbose-aeef95ae52a73544681b45e387f7dd580e88e011.tar bverbose-aeef95ae52a73544681b45e387f7dd580e88e011.tar.gz bverbose-aeef95ae52a73544681b45e387f7dd580e88e011.tar.bz2 bverbose-aeef95ae52a73544681b45e387f7dd580e88e011.tar.lz bverbose-aeef95ae52a73544681b45e387f7dd580e88e011.tar.xz bverbose-aeef95ae52a73544681b45e387f7dd580e88e011.tar.zst bverbose-aeef95ae52a73544681b45e387f7dd580e88e011.zip |
Diffstat (limited to 'test')
-rw-r--r-- | test/jsmin-test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/jsmin-test.c b/test/jsmin-test.c new file mode 100644 index 0000000..b6c4a20 --- /dev/null +++ b/test/jsmin-test.c @@ -0,0 +1,12 @@ +#include <stdlib.h> +#include <stdio.h> +#include "jsmin.c" + +extern int main(int argc, char* argv[]) { + if(argc <= 1) { + printf("usage: %s source.js output.min.js\n", argv[0]); + return 1; + } + minify_js(argv[1], argv[2]); + return 0; +} |