X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FSerialization2.scl;h=5008704086d8d462a3b99f6b51514c221b5386e0;hp=8384527e7153659246b11f63c5e1bf522e51f8b3;hb=172abed5dbf73c1304a7a95bb8504ea293556948;hpb=5930811a7911090a0c4984380c3b45ed81a93cde diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Serialization2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Serialization2.scl index 8384527e7..500870408 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Serialization2.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Serialization2.scl @@ -1,14 +1,14 @@ -import "Prelude" -import "Serialization" - -rt :: IO a => a -> a -rt v = readByteArray (writeByteArray v) - -main = show ( - (rt "Hello", rt ()), - (rt 1.2 :: Double, rt 1.2 :: Float, 3 :: Integer, 4 :: Long), - rt (Just (1 :: Integer)), - (rt [1::Integer,2,3], rt [[1::Integer,2],[3,4]], fromDoubleArray (rt (toDoubleArray [3,2,1]))) - ) --- +import "Prelude" +import "Serialization" + +rt :: IO a => a -> a +rt v = readByteArray (writeByteArray v) + +main = show ( + (rt "Hello", rt ()), + (rt 1.2 :: Double, rt 1.2 :: Float, 3 :: Integer, 4 :: Long), + rt (Just (1 :: Integer)), + (rt [1::Integer,2,3], rt [[1::Integer,2],[3,4]], fromDoubleArray (rt (toDoubleArray [3,2,1]))) + ) +-- (("Hello", ()), (1.2, 1.2, 3, 4), Just 1, ([1, 2, 3], [[1, 2], [3, 4]], [3.0, 2.0, 1.0])) \ No newline at end of file