diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/formatters/installers/purs-tidy.bash | 1 | ||||
| -rw-r--r-- | test/formatters/samplecode/purs-tidy/in.purs | 7 | ||||
| -rw-r--r-- | test/formatters/samplecode/purs-tidy/out.purs | 10 |
3 files changed, 18 insertions, 0 deletions
diff --git a/test/formatters/installers/purs-tidy.bash b/test/formatters/installers/purs-tidy.bash new file mode 100644 index 0000000..b6e2bae --- /dev/null +++ b/test/formatters/installers/purs-tidy.bash @@ -0,0 +1 @@ +npm install -g purs-tidy diff --git a/test/formatters/samplecode/purs-tidy/in.purs b/test/formatters/samplecode/purs-tidy/in.purs new file mode 100644 index 0000000..e112292 --- /dev/null +++ b/test/formatters/samplecode/purs-tidy/in.purs @@ -0,0 +1,7 @@ +module Foo where +baz ::Array(String) + -> Int->Boolean->Int +baz _ n + = case _ of + true-> 20 +1 + false -> if n> 0 then 3-(-2)else 0 diff --git a/test/formatters/samplecode/purs-tidy/out.purs b/test/formatters/samplecode/purs-tidy/out.purs new file mode 100644 index 0000000..b149877 --- /dev/null +++ b/test/formatters/samplecode/purs-tidy/out.purs @@ -0,0 +1,10 @@ +module Foo where + +baz + :: Array (String) + -> Int + -> Boolean + -> Int +baz _ n = case _ of + true -> 20 + 1 + false -> if n > 0 then 3 - (-2) else 0 |
