expr-data-story Pub

Data transformation examples and tests

CSV

send::  msg ctx.csv  (list:Array<-[{a:1,b:2},{a:1,c:3}], separator<-",")

expect::  (payload is array)
expect::  (payload[=0] contains ",")
expect::  (payload[=2] contains "3")

mkString

send::  msg ctx.set  (payload:Array<-["a","b","c"])

send::  msg ctx.mkString  (separator<-",")

expect::  (payload contains "a,b,c")


Was this useful?    

By: Razie | 2020-09-17 | Tags: story , dsl


Viewed 15 times ( | Print ) this page.

You need to log in to post a comment!

© Copyright DieselApps, 2012-2020, all rights reserved.