From d05b98569c0c9b6244aff9ae3aee37f8af5903ab Mon Sep 17 00:00:00 2001 From: Jamie Gaskins Date: Sat, 30 Nov 2024 21:17:04 -0600 Subject: [PATCH] Remove unnecessary specs This file tests functionality that no lonfer applies --- spec/pq/param_spec.cr | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 spec/pq/param_spec.cr diff --git a/spec/pq/param_spec.cr b/spec/pq/param_spec.cr deleted file mode 100644 index 5483124..0000000 --- a/spec/pq/param_spec.cr +++ /dev/null @@ -1,25 +0,0 @@ -require "spec" -require "../../src/pq/param" - -private def it_encodes_array(value, encoded) - it "encodes #{value.class}" do - PQ::Param.encode_array(value).should eq encoded - end -end - -describe PQ::Param do - describe "encoders" do - describe "#encode_array" do - it_encodes_array([] of String, "{}") - it_encodes_array([true, false, true], "{t,f,t}") - it_encodes_array(["t", "f", "t"], %({"t","f","t"})) - it_encodes_array([1, 2, 3], "{1,2,3}") - it_encodes_array([1.2, 3.4, 5.6], "{1.2,3.4,5.6}") - it_encodes_array([%(a), %(\\b~), %(c\\"d), %(\uFF8F)], %({"a","\\\\b~","c\\\\\\"d","\uFF8F"})) - it_encodes_array([%(this is a "slice").to_slice], %({"\\\\x7468697320697320612022736c69636522"})) - it_encodes_array(["baz, bar"], %({"baz, bar"})) - it_encodes_array(["foo}"], %({"foo}"})) - it_encodes_array([nil, nil], %({NULL,NULL})) - end - end -end