From 0068662c8b8c30714551ec5f2066a5b3ee3980b7 Mon Sep 17 00:00:00 2001 From: XeroOl Date: Mon, 13 May 2024 01:53:52 -0500 Subject: [PATCH] add test for a fix I did a while ago --- test/capabilities.fnl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/capabilities.fnl b/test/capabilities.fnl index 790ad7b..5eeb95e 100644 --- a/test/capabilities.fnl +++ b/test/capabilities.fnl @@ -35,9 +35,12 @@ (let [(_ [response]) (create-client {:params (params-with-encodings nil)})] (faith.= :utf-16 (. response :result :positionEncoding))) - (let [(_ [response]) (create-client {:params (params-with-encodings [:some-nonsense-encoding-I-dont-know])})] + (let [(_ [response]) (create-client {:params (params-with-encodings [:random-encoding])})] (faith.= :utf-16 (. response :result :positionEncoding))) + (let [(_ [response]) (create-client {:params (params-with-encodings [:utf-8 :utf-16])})] + (faith.= :utf-8 (. response :result :positionEncoding))) + nil)