-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow interpolation for variable-length numeric arrays
- Loading branch information
Anand Thakker
committed
Oct 25, 2017
1 parent
4c7d0d7
commit 04943b7
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
test/integration/expression-tests/curve/exponential-uninterpolatable-numeric-array/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"expression": [ | ||
"curve", | ||
["exponential", 2], | ||
["number", ["get", "x"]], | ||
1, | ||
["array", "number", ["get", "array"]], | ||
3, | ||
["array", "number", ["get", "array_two"]] | ||
], | ||
"inputs": [], | ||
"expected": { | ||
"compiled": { | ||
"result": "error", | ||
"errors": [ | ||
{ | ||
"key": "", | ||
"error": "Type array<number> is not interpolatable, and thus cannot be used as a exponential curve's output type." | ||
} | ||
] | ||
} | ||
} | ||
} |