diff --git a/test/cases/dsl-unformat/0001/cmd b/test/cases/dsl-unformat/0001/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0001/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0001/experr b/test/cases/dsl-unformat/0001/experr new file mode 100644 index 000000000..d8ae67054 --- /dev/null +++ b/test/cases/dsl-unformat/0001/experr @@ -0,0 +1 @@ +mlr: function unformat invoked with 0 arguments; expected 2 diff --git a/test/cases/dsl-unformat/0001/expout b/test/cases/dsl-unformat/0001/expout new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0001/mlr b/test/cases/dsl-unformat/0001/mlr new file mode 100644 index 000000000..23c208045 --- /dev/null +++ b/test/cases/dsl-unformat/0001/mlr @@ -0,0 +1,3 @@ +end { + print unformat() +} diff --git a/test/cases/dsl-unformat/0001/should-fail b/test/cases/dsl-unformat/0001/should-fail new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0002/cmd b/test/cases/dsl-unformat/0002/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0002/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0002/experr b/test/cases/dsl-unformat/0002/experr new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0002/expout b/test/cases/dsl-unformat/0002/expout new file mode 100644 index 000000000..ffba14cee --- /dev/null +++ b/test/cases/dsl-unformat/0002/expout @@ -0,0 +1 @@ +(error) diff --git a/test/cases/dsl-unformat/0002/mlr b/test/cases/dsl-unformat/0002/mlr new file mode 100644 index 000000000..35cf7e6a6 --- /dev/null +++ b/test/cases/dsl-unformat/0002/mlr @@ -0,0 +1,3 @@ +end { + print unformat(1, 2) +} diff --git a/test/cases/dsl-unformat/0003/cmd b/test/cases/dsl-unformat/0003/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0003/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0003/experr b/test/cases/dsl-unformat/0003/experr new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0003/expout b/test/cases/dsl-unformat/0003/expout new file mode 100644 index 000000000..ffba14cee --- /dev/null +++ b/test/cases/dsl-unformat/0003/expout @@ -0,0 +1 @@ +(error) diff --git a/test/cases/dsl-unformat/0003/mlr b/test/cases/dsl-unformat/0003/mlr new file mode 100644 index 000000000..ce157db14 --- /dev/null +++ b/test/cases/dsl-unformat/0003/mlr @@ -0,0 +1,3 @@ +end { + print unformat("12m34s", "{}:{}") +} diff --git a/test/cases/dsl-unformat/0004/cmd b/test/cases/dsl-unformat/0004/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0004/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0004/experr b/test/cases/dsl-unformat/0004/experr new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0004/expout b/test/cases/dsl-unformat/0004/expout new file mode 100644 index 000000000..44e2ace7e --- /dev/null +++ b/test/cases/dsl-unformat/0004/expout @@ -0,0 +1 @@ +[1, 2] diff --git a/test/cases/dsl-unformat/0004/mlr b/test/cases/dsl-unformat/0004/mlr new file mode 100644 index 000000000..25fc3fded --- /dev/null +++ b/test/cases/dsl-unformat/0004/mlr @@ -0,0 +1,3 @@ +end { + print unformat("{}:{}", "1:2") +} diff --git a/test/cases/dsl-unformat/0005/cmd b/test/cases/dsl-unformat/0005/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0005/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0005/experr b/test/cases/dsl-unformat/0005/experr new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0005/expout b/test/cases/dsl-unformat/0005/expout new file mode 100644 index 000000000..ffba14cee --- /dev/null +++ b/test/cases/dsl-unformat/0005/expout @@ -0,0 +1 @@ +(error) diff --git a/test/cases/dsl-unformat/0005/mlr b/test/cases/dsl-unformat/0005/mlr new file mode 100644 index 000000000..3f0e125e0 --- /dev/null +++ b/test/cases/dsl-unformat/0005/mlr @@ -0,0 +1,3 @@ +end { + print unformat("{}:{}", "1") +} diff --git a/test/cases/dsl-unformat/0006/cmd b/test/cases/dsl-unformat/0006/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0006/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0006/experr b/test/cases/dsl-unformat/0006/experr new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0006/expout b/test/cases/dsl-unformat/0006/expout new file mode 100644 index 000000000..4b0e5443d --- /dev/null +++ b/test/cases/dsl-unformat/0006/expout @@ -0,0 +1 @@ +[1, ""] diff --git a/test/cases/dsl-unformat/0006/mlr b/test/cases/dsl-unformat/0006/mlr new file mode 100644 index 000000000..07b34bdf5 --- /dev/null +++ b/test/cases/dsl-unformat/0006/mlr @@ -0,0 +1,3 @@ +end { + print unformat("{}:{}", "1:") +} diff --git a/test/cases/dsl-unformat/0007/cmd b/test/cases/dsl-unformat/0007/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0007/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0007/experr b/test/cases/dsl-unformat/0007/experr new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0007/expout b/test/cases/dsl-unformat/0007/expout new file mode 100644 index 000000000..44e2ace7e --- /dev/null +++ b/test/cases/dsl-unformat/0007/expout @@ -0,0 +1 @@ +[1, 2] diff --git a/test/cases/dsl-unformat/0007/mlr b/test/cases/dsl-unformat/0007/mlr new file mode 100644 index 000000000..25fc3fded --- /dev/null +++ b/test/cases/dsl-unformat/0007/mlr @@ -0,0 +1,3 @@ +end { + print unformat("{}:{}", "1:2") +} diff --git a/test/cases/dsl-unformat/0008/cmd b/test/cases/dsl-unformat/0008/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0008/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0008/experr b/test/cases/dsl-unformat/0008/experr new file mode 100644 index 000000000..e69de29bb diff --git a/test/cases/dsl-unformat/0008/expout b/test/cases/dsl-unformat/0008/expout new file mode 100644 index 000000000..84d44b3d8 --- /dev/null +++ b/test/cases/dsl-unformat/0008/expout @@ -0,0 +1 @@ +[1, "2:3"] diff --git a/test/cases/dsl-unformat/0008/mlr b/test/cases/dsl-unformat/0008/mlr new file mode 100644 index 000000000..391ba6b80 --- /dev/null +++ b/test/cases/dsl-unformat/0008/mlr @@ -0,0 +1,3 @@ +end { + print unformat("{}:{}", "1:2:3") +} diff --git a/test/cases/dsl-unformat/0009/cmd b/test/cases/dsl-unformat/0009/cmd new file mode 100644 index 000000000..6add080d4 --- /dev/null +++ b/test/cases/dsl-unformat/0009/cmd @@ -0,0 +1 @@ +mlr -n put -f ${CASEDIR}/mlr diff --git a/test/cases/dsl-unformat/0009/experr b/test/cases/dsl-unformat/0009/experr new file mode 100644 index 000000000..7649c9f5e --- /dev/null +++ b/test/cases/dsl-unformat/0009/experr @@ -0,0 +1,11 @@ +mlr: cannot parse DSL expression. +Parse error on token """, "