Commit Graph

69 Commits

Author SHA1 Message Date
ncaq
f831e0d8a0 updated: elm test case file 2022-05-27 16:05:20 +09:00
ncaq
0d667ba4c4 added: test: RecordNestTuple
When I try to generate an Elm test case for this, I get an error as expected.

~~~
end-to-end-tests: Library Bug: This should never happen!
CallStack (from HasCallStack):
  error, called at src/Elm/TyRender.hs:31:31 in elm-bridge-0.8.0-inplace:Elm.TyRender
~~~
2022-05-27 15:47:56 +09:00
ncaq
6043943735 added: objectSet include do not have field constructor
I want to complete resolve
[encoding scheme which is either ObjectWithSingleField or bare string for nullary constructors · Issue #4 · bartavelle/json-helpers](https://github.com/bartavelle/json-helpers/issues/4)
and TaggedObject.
2022-05-26 01:54:38 +09:00
ncaq
a26c0b366b added: test: SumIncludeUnit
[servant-elm :: Stackage Server](https://www.stackage.org/lts-19.8/package/servant-elm-0.7.2)
use `TaggedObject`, and we use unit data constructor.
2022-05-26 01:38:34 +09:00
Simon Marechal
b9d47cae3e Add dicts in e2e tests 2020-05-21 09:04:49 +02:00
Simon Marechal
a18ab729e8 Properly encode dictionnaries with string index 2020-05-21 09:03:43 +02:00
Kostiantyn Rybnikov
297a043b7f Fixes in parser generation 2020-04-15 16:51:27 +03:00
Kostiantyn Rybnikov
fede707cf3 Implement stringSerForSimpleAdt, stringParserForSimpleAdt 2020-04-15 14:05:41 +03:00
Simon Marechal
35eb9804ac v0.6.0 2019-10-21 18:31:19 +02:00
Simon Marechal
d9d419e5f9 Fix some 0.19 problems 2019-10-21 18:29:22 +02:00
MATSUBARA Nobutada
c99f8cd96a Add toElmType spec for primitive types 2019-08-04 02:31:12 +09:00
Simon Marechal
eb08b1422a rename parameter variable for tuples to 't'
Try fixing #43
2019-02-28 06:54:32 +01:00
Simon Marechal
d95b6bbb26
Merge pull request #38 from tmbull/fix-tests-019
Updating tests for Elm 0.19.
2018-09-18 08:59:35 +02:00
tmbull
e8586d6ed3 Updating tests for Elm 0.19. 2018-09-17 18:17:46 -05:00
tmbull
797e1fe6eb Making EndToEnd test run with elm-test. 2018-09-11 11:51:02 -05:00
bartavelle
52c7f4be80 Tuple helpers 2018-09-11 09:29:07 +02:00
bartavelle
6dbf1b72ed First steps to 0.19 2018-09-10 18:00:59 +02:00
Simon Marechal
887c2dd939 Work in progress for phantom newtypes
See #35.
2018-08-22 07:46:11 +02:00
Tristan Bull
18a3dd8d71
Merge branch 'master' into servant-elm2 2018-07-10 15:54:37 -05:00
bartavelle
61ef397667 Introduce a new reprensentation for sum types
Fixing the bad constructor name bug!
2018-07-09 17:04:30 +02:00
bartavelle
e5fe00d0cc Use a descriptive sum type for sum types variables 2018-07-09 16:50:04 +02:00
bartavelle
e86321e466 Wrote tests exhibiting the bad behaviour
Tag modifiers alter the type constructor names, but should not.
2018-07-09 15:24:30 +02:00
bartavelle
d464a895b9 Added sample test 2018-07-09 15:14:03 +02:00
tmbull
0179e228b5 Adding support for the unit type. 2018-07-02 16:34:58 -05:00
Simon Marechal
d337259c38 Drop hspec-discover so that travis works 2018-02-14 19:25:03 +01:00
bartavelle
e250a5f075 Fixing issue #18
Check that there are more than once constructor in a sum type before
defining a dictionnary.
2018-02-14 17:36:12 +01:00
bartavelle
428553cdd7 Fixing tests that illustrate #27 2018-02-14 17:23:24 +01:00
bartavelle
ac306eff34 WIP #27 2018-02-14 14:59:08 +01:00
bartavelle
fb522a48d6 Switch default value for enwrap unary 2018-02-14 14:21:55 +01:00
bartavelle
a6390f5bf5 Updating end-to-end tests 2018-02-14 13:54:08 +01:00
bartavelle
e21171505e Alternative newtype support 2018-01-11 16:02:19 +01:00
Simon Marechal
fb772a597f Expose issue #18 2018-01-11 07:29:17 +01:00
Simon Marechal
5cec7445b4 Merge branch 'master' of github.com:agrafix/elm-bridge 2018-01-11 07:18:01 +01:00
Simon Marechal
632159734c Test for issue #18 2018-01-11 07:17:57 +01:00
Oliver Batchelor
37ede40f0a Add lazy for record Sum types, too. Fix decoder test expected literals 2017-12-01 21:20:19 +13:00
bartavelle
c12c2b56c4 Dropped support for aeson < 1, tentative support for 1.2 2017-06-06 13:51:52 +02:00
bartavelle
832afd14e3 Actually fix the tests :( 2017-04-03 11:03:06 +02:00
bartavelle
dff83d0a42 Fix tests and redundant import 2017-04-03 09:28:30 +02:00
bartavelle
05621d5e7d Update all code to Elm 0.18 2016-11-25 10:18:20 +01:00
bartavelle
aa48855e19 Do not pollute the global namespace with dictionnaries
This might have a performance impact, but dictionnaries are now living
in a `let` block for "sum unaries".
2016-08-23 17:59:11 +02:00
Bruce Wielinga
87870f171d Added switch for Elm 0.16 compatibility
make module will by default still make 0.16 compatible modules, but
makeModuleWithVersion takes a Version argument to determine which
version to generate.
2016-05-21 07:59:07 +10:00
Bruce Wielinga
0e1b32e0fd Revert "Updated for Elm 0.17"
This reverts commit 00acc98990.
2016-05-17 06:40:33 +10:00
Bruce Wielinga
00acc98990 Updated for Elm 0.17
Changed where to exposing(..) in generated modules
2016-05-15 15:28:12 +10:00
bartavelle
ac96636de1 Make tests compatible with aeson 0.9.*
Fixing #11
2016-05-02 13:37:56 +02:00
Samuli Thomasson
f01497f438 Fix encoding of structures like [Map String v] 2016-04-28 12:40:51 +03:00
Alex Legg
ad60f5368d Fixed unwrapUnaryRecords handling 2016-04-14 12:43:08 +10:00
Alex Legg
c7dfddea5f Swapped order for assertEqual so expected/got match up 2016-04-14 11:18:56 +10:00
Alex Legg
4c38c5400f Added extra imports to tests 2016-04-13 22:27:03 +10:00
bartavelle
33f23bb3fc Fix the end-to-end tests for simple values. 2016-04-13 12:08:25 +02:00
bartavelle
13e4bfdbdb New tests for simple records 2016-04-13 11:48:00 +02:00