From 72aa8fb8fe2c70898759eeb68ecc10fc400b5fda Mon Sep 17 00:00:00 2001 From: Vitaliy Demidov Date: Sun, 18 Feb 2024 17:12:54 -0800 Subject: [PATCH] Added more test. --- tests/test_sort_order.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_sort_order.sql b/tests/test_sort_order.sql index cfba2fd..ad6e076 100644 --- a/tests/test_sort_order.sql +++ b/tests/test_sort_order.sql @@ -27,7 +27,10 @@ SELECT `id`, `version`, `sort_order` FROM `versions` ORDER BY `sort_order`; SELECT GROUP_CONCAT(`version` ORDER BY `sort_order`) INTO @actual FROM `versions`; -SET @expected := 'alpha,1.0.0-2021-08-19,1.0-beta,1.0.0-canary.3,1,1.0.1-alpha-3,1.0.1-rc20,1.2,1.3-beta2,1.3-beta.2,1.3-beta-2,1.3,1.4.34,2-alpha,2.0.12-beta.1,11.0.0.1,11.0.0.1.8.22'; +SELECT 'alpha,1.0.0-2021-08-19,1.0-beta,1.0.0-canary.3,1,1.0.1-alpha-3,1.0.1-rc20,1.2,1.3-beta2,1.3-beta.2,1.3-beta-2,1.3,1.4.34,2-alpha,2.0.12-beta.1,11.0.0.1,11.0.0.1.8.22' COLLATE utf8mb4_bin INTO @expected; + +SELECT @actual; +SELECT @expected; SELECT IF(@actual COLLATE utf8mb4_bin = @expected COLLATE utf8mb4_bin, 'OK!', 'Test failed!') FROM (VALUES ROW(NULL)) t;