diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-10-31 13:41:53 +0100 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-11-12 14:04:42 +0100 |
commit | a4a3ab0d722412b9ecf267b178bb866087867cf9 (patch) | |
tree | 2f3a55eeb5c8a8e05fbf302f86ed26201b7b9c7b /test/files/scalacheck/quasiquotes/Test.scala | |
parent | d73680557d4037bed69bc0ce982566f3915361c3 (diff) | |
download | scala-a4a3ab0d722412b9ecf267b178bb866087867cf9.tar.gz scala-a4a3ab0d722412b9ecf267b178bb866087867cf9.tar.bz2 scala-a4a3ab0d722412b9ecf267b178bb866087867cf9.zip |
implement inverse transformation to mkFor
This effectively reconstructs a sequence of enumerators and body
from the tree produced by mkFor. This lets to define bi-directional
SyntacticFor and SyntacticForYield constructors/extractors to work
with for loops.
Correctness of the transformation is tested by a scalacheck test
that generates a sequence of random enumerators, sugars them into
maps/flatMaps/foreach/withFilter calls and reconstructs them back.
Diffstat (limited to 'test/files/scalacheck/quasiquotes/Test.scala')
-rw-r--r-- | test/files/scalacheck/quasiquotes/Test.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/scalacheck/quasiquotes/Test.scala b/test/files/scalacheck/quasiquotes/Test.scala index 73cac0368c..8b1e779ab2 100644 --- a/test/files/scalacheck/quasiquotes/Test.scala +++ b/test/files/scalacheck/quasiquotes/Test.scala @@ -12,5 +12,6 @@ object Test extends Properties("quasiquotes") { include(DefinitionConstructionProps) include(DefinitionDeconstructionProps) include(DeprecationProps) + include(ForProps) include(TypecheckedProps) } |