diff options
Diffstat (limited to 'lib/value/tests/load.t')
| -rw-r--r-- | lib/value/tests/load.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/value/tests/load.t b/lib/value/tests/load.t index e20860a..dee6d0f 100644 --- a/lib/value/tests/load.t +++ b/lib/value/tests/load.t @@ -1,7 +1,9 @@ High level test of [Value.load]: two rows are inserted in the table of the content given as argument (the configuration is read on the standard input), loaded as values with [Value.load] and printed with [Value.pp] — the primary -key and every field, as read back as typed data with [Value.get]. +key and every field, as read back as typed data with [Value.get]. The first row +is then loaded again with [~multivalued:false]: only the row itself is read, so +the multivalued field [aliases] is missing from the output. $ tests --load "entity" <<EOF > { @@ -38,4 +40,6 @@ key and every field, as read back as typed data with [Value.get]. {id = 1; aliases = [1, 2]; country = 1; name = "name-1"; year = 1} row 2: {id = 2; aliases = [2]; country = 1; name = "name-2"; year = 2} + row 1 (without multivalued fields): + {id = 1; country = 1; name = "name-1"; year = 1} |
