Skip to content

Commit

Permalink
enh(expressions): Test behavior of numerically sorting n/a
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 18, 2024
1 parent f95741c commit 63f8d8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/schema/meta/expression_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
result: ["1", "10", "2", "5"]
- expression: sorted(["1", "2", "5", "10"], "numeric")
result: ["1", "2", "5", "10"]
- expression: sorted(["1", "2", "n/a"], "numeric")
result: ["1", "2", "n/a"]
- expression: sorted(["n/a", "2", "1"], "numeric")
result: ["n/a", "1", "2"]
- expression: allequal(sorted([3, 2, 1]), [1, 2, 3])
result: true
# Regression test. Javascript will sort lexically by default.
Expand Down

0 comments on commit 63f8d8f

Please sign in to comment.