From b0cfe7b7bc7fc065cb8ab023cf0f60dd6ed3ce92 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sun, 9 Jun 2024 22:28:29 -0400 Subject: [PATCH] schema: Add regression test to expression tests --- src/schema/meta/expression_tests.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/schema/meta/expression_tests.yaml b/src/schema/meta/expression_tests.yaml index 5ebb7dcec0..8ab60a28d4 100644 --- a/src/schema/meta/expression_tests.yaml +++ b/src/schema/meta/expression_tests.yaml @@ -112,6 +112,9 @@ result: [1, 2, 3] - expression: allequal(sorted([3, 2, 1]), [1, 2, 3]) result: true +# Regression test. Javascript will sort lexically by default. +- expression: sorted([9, 81, 729, 6561]) + result: [9, 81, 729, 6561] - expression: min([-1, "n/a", 1]) result: -1 - expression: max([-1, "n/a", 1])