From 9e9492fad4d58c6a19b091f3b85b3250700bfe86 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 23 Dec 2021 15:47:42 +0100 Subject: Individual items for various errors in the test collection --- .../data/wrong/items/5748adc272534bb699febe2c92ad05d9.yaml | 14 ++++++++++++++ .../data/wrong/items/b682034f7e2c454aa927606953680330.yaml | 14 ++++++++++++++ .../data/wrong/items/c54ae3caf262423d988cdc99ee9d0348.yaml | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 tests/data/wrong/items/5748adc272534bb699febe2c92ad05d9.yaml create mode 100644 tests/data/wrong/items/b682034f7e2c454aa927606953680330.yaml create mode 100644 tests/data/wrong/items/c54ae3caf262423d988cdc99ee9d0348.yaml (limited to 'tests/data/wrong') diff --git a/tests/data/wrong/items/5748adc272534bb699febe2c92ad05d9.yaml b/tests/data/wrong/items/5748adc272534bb699febe2c92ad05d9.yaml new file mode 100644 index 0000000..9af9c2a --- /dev/null +++ b/tests/data/wrong/items/5748adc272534bb699febe2c92ad05d9.yaml @@ -0,0 +1,14 @@ +name: 'Not a float' +description: | + An entry with a string instead of a floating point +position: '' +# # number (integer): Enter an integer here +number: 0 +# # float (float): Enter a floating point number here +float: "zero point zero" +# # price (decimal): prices are never float! +price: '0' +things: [] +# # cloud (cloud): There is no cloud type +cloud: +category: '' diff --git a/tests/data/wrong/items/b682034f7e2c454aa927606953680330.yaml b/tests/data/wrong/items/b682034f7e2c454aa927606953680330.yaml new file mode 100644 index 0000000..0397d7b --- /dev/null +++ b/tests/data/wrong/items/b682034f7e2c454aa927606953680330.yaml @@ -0,0 +1,14 @@ +name: 'Not an integer' +description: | + An entry with a string instead of a number +position: '' +# # number (integer): Enter an integer here +number: "zero" +# # float (float): Enter a floating point number here +float: 0.0 +# # price (decimal): prices are never float! +price: '0' +things: [] +# # cloud (cloud): There is no cloud type +cloud: +category: '' diff --git a/tests/data/wrong/items/c54ae3caf262423d988cdc99ee9d0348.yaml b/tests/data/wrong/items/c54ae3caf262423d988cdc99ee9d0348.yaml new file mode 100644 index 0000000..493430c --- /dev/null +++ b/tests/data/wrong/items/c54ae3caf262423d988cdc99ee9d0348.yaml @@ -0,0 +1,14 @@ +name: 'Not a decimal' +description: | + An entry with an invalid string for a decimal +position: '' +# # number (integer): Enter an integer here +number: 0 +# # float (float): Enter a floating point number here +float: 0.0 +# # price (decimal): prices are never float! +price: 'nil, nada, nothing' +things: [] +# # cloud (cloud): There is no cloud type +cloud: +category: '' -- cgit v1.2.3