|
733 | 733 | (build/build (build/inputs (io/file inputs "trivial/core2.cljs")) opts cenv)
|
734 | 734 | (is (< (.length out-file) 10000))))
|
735 | 735 |
|
| 736 | +(deftest trivial-output-size-keyword |
| 737 | + (let [out (.getPath (io/file (test/tmp-dir) "trivial-output-keyword-test-out")) |
| 738 | + out-file (io/file out "main.js") |
| 739 | + {:keys [inputs opts]} {:inputs (str (io/file "src" "test" "cljs_build")) |
| 740 | + :opts {:main 'trivial.core3 |
| 741 | + :output-dir out |
| 742 | + :output-to (.getPath out-file) |
| 743 | + :optimizations :advanced}} |
| 744 | + cenv (env/default-compiler-env)] |
| 745 | + (test/delete-out-files out) |
| 746 | + (build/build (build/inputs (io/file inputs "trivial/core3.cljs")) opts cenv) |
| 747 | + (is (< (.length out-file) 10000)))) |
| 748 | + |
| 749 | +(deftest trivial-output-size-vector |
| 750 | + (let [out (.getPath (io/file (test/tmp-dir) "trivial-output-vector-test-out")) |
| 751 | + out-file (io/file out "main.js") |
| 752 | + {:keys [inputs opts]} {:inputs (str (io/file "src" "test" "cljs_build")) |
| 753 | + :opts {:main 'trivial.core4 |
| 754 | + :output-dir out |
| 755 | + :output-to (.getPath out-file) |
| 756 | + :optimizations :advanced}} |
| 757 | + cenv (env/default-compiler-env)] |
| 758 | + (test/delete-out-files out) |
| 759 | + (build/build (build/inputs (io/file inputs "trivial/core4.cljs")) opts cenv) |
| 760 | + (is (< (.length out-file) 32000)))) |
| 761 | + |
736 | 762 | (deftest cljs-3255-nil-inputs-build
|
737 | 763 | (let [out (.getPath (io/file (test/tmp-dir) "3255-test-out"))
|
738 | 764 | out-file (io/file out "main.js")
|
|
0 commit comments