blob: f8be526c4df9c605323a30e47cb3adba53253bb2 [file] [log] [blame]
pipeline:
type: chain
transforms:
# Create some input.
- type: Create
config:
elements:
- roman: I
- roman: IV
- roman: abc
# Map them to decimals with error handling.
- type: FromRoman
config:
error_handling:
output: my_errors
# Ensure that we got the same elements back.
- type: AssertEqual
config:
elements:
- value: 1
- value: 4
extra_transforms:
- type: StripErrorMetadata
input: FromRoman.my_errors
- type: LogForTesting
input: FromRoman.my_errors
config:
prefix: "Expected error:"
- type: AssertEqual
input: StripErrorMetadata
config:
elements:
- roman: 'abc'
providers:
- include: "./provider_listing.yaml"