Skip to content

Commit 4bf22b1

Browse files
committed
Enforce presence of tests
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent df0a58e commit 4bf22b1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"type": "object",
4-
"required": [ "x-license" ],
4+
"required": [ "x-license", "tests" ],
55
"properties": {
66
"x-license": {
77
"const": "https://github.com/sourcemeta/std/blob/main/LICENSE"
8+
},
9+
"tests": {
10+
"type": "array",
11+
"minItems": 1
812
}
913
}
1014
}

tests/iso/units/percentage.test.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@
166166
"description": "Invalid - negative decimal",
167167
"data": -0.01,
168168
"valid": false
169-
},
170-
{
171-
"description": "Invalid - just over one hundred",
172-
"data": 100,
173-
"valid": false
174169
}
175170
]
176171
}

0 commit comments

Comments
 (0)