From cc1a6cbb7b7d07c264ebb5e3a89a5f693847c213 Mon Sep 17 00:00:00 2001 From: George Blue Date: Mon, 19 Aug 2019 17:04:31 +0100 Subject: [PATCH] Remove duplication in XML matcher tests - `sample_01` is already a byte slice, so casting it makes no differrence - there is already an identity test for `sample_01` - see #357 for context --- matchers/match_xml_matcher_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/matchers/match_xml_matcher_test.go b/matchers/match_xml_matcher_test.go index 037719dcd..8879964e2 100644 --- a/matchers/match_xml_matcher_test.go +++ b/matchers/match_xml_matcher_test.go @@ -41,10 +41,6 @@ var _ = Describe("MatchXMLMatcher", func() { Expect(sample_09).ShouldNot(MatchXML(sample_10)) // same structures with different attribute values Expect(sample_11).Should(MatchXML(sample_11)) // with non UTF-8 encoding }) - - It("should work with byte arrays", func() { - Expect(sample_01).Should(MatchXML(sample_01)) - }) }) Context("when the expected is not valid XML", func() {