Commit ffa50d5
authored
Move Vitest expression tests to JSON (#1173)
* move distance expression tests to JSON
* move array expression tests to JSON
* move format expression tests to JSON
* move image expression tests to JSON
* move typeof expression tests to JSON
* move feature-state expression tests to JSON
* move get expression tests to JSON
* move global-state expression tests to JSON
* move has expression tests to JSON
* move at expression tests to JSON
* move in expression tests to JSON
* move index-of expression tests to JSON
* move length expression tests to JSON
* move slice expression tests to JSON
* move comparison expression tests to JSON
* move any expression tests to JSON
* move case expression tests to JSON
* move match expression tests to JSON
* move within expression tests to JSON
* move interpolation expression tests to JSON
* move step expression tests to JSON
* move e expression tests to JSON
* clean up unused imports
* restore test coverage
* separate type tests into `expression.test-d.ts`1 parent 2af178e commit ffa50d5
File tree
170 files changed
+12056
-1938
lines changed- src/expression
- test/integration/expression/tests
- array
- empty
- invalid-array-input
- array-items-as-args
- bare-array-with-type-and-length
- bare-array-with-type
- bare-array
- invalid-item-type
- expression
- invalid-string
- number
- invalid-length
- expression
- negative
- non-integer
- string
- item-type
- boolean
- number
- string
- length
- case
- interpolated-output
- null-fallback
- null-output
- distance
- expression-geometry
- from-line
- to-line-parallel
- to-line-perpendicular
- to-point-nearby-horizontally
- to-point-nearby-vertically
- to-point-on-line-middle
- to-point-on-line
- to-points
- to-polygon-contained
- to-polygon-hole
- to-polygon-nearby
- from-point
- to-line-nearby
- to-line-through-point-horizontal
- to-line-through-point-vertical
- to-point-different-location
- to-point-same-location
- to-polygon-contained
- to-polygon-hole
- to-polygon-nearby
- from-polygon-with-hole
- to-line-in-hole
- to-line-in-polygon
- to-point-in-hole
- to-point-in-polygon
- to-polygon-contained
- from-simple-polygon
- to-line-intersect
- to-line-outside
- to-point-inside
- to-point-on-edge
- to-point-outside
- to-points-outside-and-inside
- to-points-outside
- to-polygon-contained
- to-polygon-hole
- to-polygon-inside
- to-polygon-outside
- invalid-geometry
- missing-geometry
- multi-line
- multi-point
- multi-polygon
- equal/number-literal-lhs
- e/unexpected-argument
- format
- invalid-text-font
- multiple-styles
- get/non-expression-arg
- global-state
- invalid-property-arg
- missing-property-arg
- unexpected-second-arg
- has/object-arg
- bare
- literal
- image/invalid-image-name
- boolean
- non-string-expression
- null
- number
- index-of
- array-with-null
- empty-array
- empty-string
- invalid-needle-literal-array
- literal-array
- literal-start-index
- literal-string
- missing-haystack
- missing-needle
- multiple-match-array
- multiple-match-string
- surrogate-pair
- unexpected-fourth-arg
- with-negative-from-index
- interpolate-hcl
- linear-color-array
- uninterpolable-output
- bare-color-array
- bare-number-array
- bare-object
- boolean
- null
- number-array
- number
- projection
- string
- interpolate-lab
- linear-color-array
- uninterpolable-output
- bare-color-array
- bare-number-array
- bare-object
- boolean
- null
- number-array
- number
- projection
- string
- interpolate
- cubic-bezier-expression-control-point
- exponential-2-args
- exponential-color
- exponential-expression-base
- linear-1-arg
- linear-color-2
- linear-color-array
- linear-number-array
- linear-number
- uninterpolable-output
- bare-color-array
- bare-number-array
- bare-object
- boolean
- null
- string
- in
- empty-array
- empty-string
- invalid-needle-literal-array
- literal-array
- literal-string
- missing-haystack
- missing-needle
- unexpected-third-arg
- length
- empty-array
- empty-string
- missing-arg
- surrogate-pair
- unexpected-second-arg
- match
- label-booleans
- label-numbers
- label-strings
- labels-mixed-1
- labels-mixed-2
- labels-mixed-3
- labels-mixed-4
- mismatch-input-literal-number
- mismatch-input-literal-string
- output-expression
- output-null
- not_equal/null
- slice
- array-one-index-empty
- array-one-index-end
- array-two-indexes-negative-length
- invalid-input-arg-literal
- missing-input-arg
- missing-start-index-arg
- string-one-index-empty
- string-one-index-end
- string-two-indexes-negative-length
- string-two-indexes-zero-length
- surrogate-pair
- unexpected-fourth-arg
- step/color
- typeof
- expression-value
- literal-value
- missing-value
- unexpected-second-arg
- within
- expression-geojson
- missing-geojson
- unexpected-second-arg
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
170 files changed
+12056
-1938
lines changedLarge diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments