From ae9035aff02c704c5c649bb1b12051511739483f Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 16 Jan 2024 11:58:23 -0300 Subject: [PATCH] Generic/ByteOrderMark: improve test coverage This commit adds two more tests to cover the cases where the sniff is trigerred but the file does not contain a BOM character. --- src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc | 1 + src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc | 3 +++ src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc | 1 + 3 files changed, 5 insertions(+) create mode 100644 src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc create mode 100644 src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc index dc3bf59670..23d7cef260 100644 --- a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc @@ -1,3 +1,4 @@  diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc new file mode 100644 index 0000000000..4eace61450 --- /dev/null +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc @@ -0,0 +1,3 @@ + + +

Some HTML

diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc new file mode 100644 index 0000000000..4261899e22 --- /dev/null +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc @@ -0,0 +1 @@ +

Some HTML at the beginning of the file but without a byte order mark (BOM) character