Added the tests for parsing list types in Rain
This commit is contained in:
parent
eb29e65bad
commit
806a5b9834
|
@ -507,6 +507,11 @@ testDataType =
|
|||
|
||||
,pass ("time",RP.dataType,assertEqual "testDataType 300" A.Time)
|
||||
,pass ("timer",RP.dataType,assertEqual "testDataType 301" $ A.UserDataType $ typeName "timer")
|
||||
|
||||
,pass ("[int]",RP.dataType, assertEqual "testDataType 400" $ A.List A.Int)
|
||||
,pass ("[uint8]",RP.dataType, assertEqual "testDataType 401" $ A.List A.Byte)
|
||||
,pass ("[foo]",RP.dataType, assertEqual "testDataType 402" $ A.List
|
||||
$ A.UserDataType $ typeName "foo")
|
||||
]
|
||||
|
||||
instance Data a => Show (A.Structured a -> A.Structured a) where
|
||||
|
|
Loading…
Reference in New Issue
Block a user