Evan Czaplicki
5a80766051
Style changes and making things compatible with new Pattern constructor names
2014-02-10 00:18:19 +01:00
Evan Czaplicki
3640376be8
Add a test for port parsing and types
...
Partly addressing #442
2014-01-18 00:46:56 +01:00
John P Mayer Jr
0cd2af27a6
used a more specific PP rendering to revert the changes to SS.Type pretty
2014-01-15 19:46:41 -05:00
John P Mayer Jr
853e63c918
better shrinking and not-infinite-dump generation results in passed tests!
2014-01-15 01:39:36 -05:00
John P Mayer Jr
bb3e4ca1e7
really didn't need this
2014-01-14 22:14:01 -05:00
John P Mayer Jr
d72cbbffe3
also should be able to check both sub-types are valid
2014-01-14 22:03:49 -05:00
John P Mayer Jr
c91815ebda
turned off Data and Record types, found a bad test case with lambda
2014-01-14 21:30:03 -05:00
John P Mayer Jr
afb6bd5023
better gen and shrink, but stack overflows
2014-01-14 19:33:40 -05:00
John P Mayer Jr
c616557618
added some guards. todo turn this into correct Gen. still one failcase
2014-01-14 02:47:11 -05:00
John P Mayer Jr
d92ac795c1
new instance for SS.Type
2014-01-14 00:32:21 -05:00
Max New
6b255fed59
Fix multiline string handling and add more tests.
2014-01-07 17:01:29 -06:00
Max New
dcac0e0d5c
Style tweaks and use cross-platform file name construction.
2013-12-30 02:19:02 -06:00
Max New
37f5d9e1ea
Make parse/print test more stringent, tweak Float gen.
2013-12-29 22:11:19 -06:00
Max New
d003062586
Pattern pretty printer prints syntactically correct code.
...
Include auto-generated test case that was previously broken.
2013-12-29 20:46:20 -06:00
Max New
24751a3d85
Add parse/print tests for Patterns.
2013-12-29 20:18:45 -06:00
Max New
2da9009512
Setup QuickCheck and add Literal Parse/Print test
...
Currently fails the prop tests: https://github.com/evancz/Elm/issues/420
Also ignore emacs backup files.
2013-12-29 16:50:41 -06:00
Max New
1408d928d5
Re-org tests
2013-12-29 15:17:49 -06:00
Max New
840eca6573
Migrate tests to test-framework and make them more specific.
...
Use test-framework as it's more widely used/has better support for
HUnit/QuickCheck.
Make test cases test the `compile` function explicitly instead of the
elm executable as that's all they're actually intended to test.
2013-12-29 13:44:25 -06:00
Max New
254d71f4e5
Expand else
to True
instead of otherwise
.
...
Makes `if` syntax independent of the value of `otherwise`.
Includes test case.
2013-12-23 18:31:55 -06:00
Timothy Vladimír Hobbs
cbbd42d3f3
Fix bug in parser
...
34913d5
broke the parser in the following case:
f = '\"'
This commit fixes that.
2013-12-21 23:21:10 +01:00
Evan Czaplicki
b5979b4aaf
Add occurs check and a test to make sure it works
2013-08-19 22:39:41 -07:00
Evan Czaplicki
70f1242bd0
Check that main is a Signal or (Signal Element), add tests for this case
2013-08-19 17:47:37 -07:00
Evan Czaplicki
26c51bb44a
Get rid of quickcheck stuff for now
2013-08-19 11:21:19 -07:00
Evan Czaplicki
c608e757a3
Remove scripts that are not used anymore
2013-08-16 16:53:30 -07:00
Evan Czaplicki
2dc78fc904
Clean up after testing
2013-08-16 03:26:51 -07:00
Evan Czaplicki
5e02b74a35
Actually run tests!!!
2013-08-16 03:09:53 -07:00
Evan Czaplicki
efd42c386b
Bare minimum framework for testing
2013-08-14 17:41:02 -07:00
Evan Czaplicki
470234ecdd
Add test case for programs with no expressions
2013-08-13 22:20:17 -07:00
Evan Czaplicki
3f4936303d
Make a proper Main
module
2013-08-13 18:36:07 -07:00
Evan Czaplicki
fbad8eaab2
Update tests to cover the bugs that got reported leading up to 0.9
2013-08-13 18:31:15 -07:00
Evan Czaplicki
025b7a1ea4
Update changelog with latest parser improvements.
2013-07-16 14:58:02 +02:00
Evan Czaplicki
0070a844d0
Switch the internal data constructor name for tuples. Before tuple
...
constructors could be shadowed by user defined ADT's such as "Tuple0",
"Tuple2", etc. Now it uses "_Tuple0" to make it impossible to overlap
with user defined ASTs.
2013-07-14 19:52:50 +02:00
Evan Czaplicki
e7b949df9b
Begin adding testing framework to .cabal file.
2013-07-14 19:51:52 +02:00
Evan Czaplicki
2b9853ce9b
Get variable reordering working for Declarations.
2013-07-13 13:44:40 +02:00
Evan Czaplicki
433b533f4d
Update tests to be actual programs, not just expressions. Content
...
stays the same.
2013-07-12 16:32:53 +02:00
Evan Czaplicki
a6bfa5f261
Add some basic test files for the type checker.
2013-07-12 16:32:02 +02:00
evancz
1759e78e4c
Rename elm/ directory to test/
2013-05-22 10:49:53 +02:00