<commit_before>﻿using System.Collections;
using DerConverter.Asn;
using DerConverter.Asn.KnownTypes;
using NUnit.Framework;

namespace DerConverter.Tests.Asn.KnownTypes
{
    [TestFixture]
    public class DerAsnBitStringTests : Base<DerAsnBitString, BitArray>
    {
        public DerAsnBitStringTests()
            : base(DerAsnIdentifiers.Primitive.BitString)
        {
        }

        [TestCase(new bool[0], 0x00)]
        [TestCase(new[] { false, true, false, true, true, false, true, false }, 0x00, 0x5A)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, true }, 0x06, 0xA3, 0x40)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, false, false }, 0x05, 0xA3, 0x00)]
        public void DecodeConstructor_ShouldDecodeCorrectly(bool[] expectedValue, params int[] rawData)
        {
            base.DecodeConstructor_ShouldDecodeCorrectly(new BitArray(expectedValue), rawData);
        }

        [TestCase(new bool[0], 0x00)]
        [TestCase(new[] { false, true, false, true, true, false, true, false }, 0x00, 0x5A)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, true }, 0x06, 0xA3, 0x40)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, false, false }, 0x05, 0xA3, 0x00)]
        public void Encode_ShouldEncodeCorrectly(bool[] value, params int[] expectedRawData)
        {
            base.Encode_ShouldEncodeCorrectly(new BitArray(value), expectedRawData);
        }
    }
}
<commit_msg>Fix constructor layout in DerAsnBitStringTests<commit_after>﻿using System.Collections;
using DerConverter.Asn;
using DerConverter.Asn.KnownTypes;
using NUnit.Framework;

namespace DerConverter.Tests.Asn.KnownTypes
{
    [TestFixture]
    public class DerAsnBitStringTests : Base<DerAsnBitString, BitArray>
    {
        public DerAsnBitStringTests() : base(DerAsnIdentifiers.Primitive.BitString) { }

        [TestCase(new bool[0], 0x00)]
        [TestCase(new[] { false, true, false, true, true, false, true, false }, 0x00, 0x5A)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, true }, 0x06, 0xA3, 0x40)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, false, false }, 0x05, 0xA3, 0x00)]
        public void DecodeConstructor_ShouldDecodeCorrectly(bool[] expectedValue, params int[] rawData)
        {
            base.DecodeConstructor_ShouldDecodeCorrectly(new BitArray(expectedValue), rawData);
        }

        [TestCase(new bool[0], 0x00)]
        [TestCase(new[] { false, true, false, true, true, false, true, false }, 0x00, 0x5A)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, true }, 0x06, 0xA3, 0x40)]
        [TestCase(new[] { true, false, true, false, false, false, true, true, false, false, false }, 0x05, 0xA3, 0x00)]
        public void Encode_ShouldEncodeCorrectly(bool[] value, params int[] expectedRawData)
        {
            base.Encode_ShouldEncodeCorrectly(new BitArray(value), expectedRawData);
        }
    }
}

{'fraction_non_alphanumeric': 0.12697389622945537, 'fraction_numerical': 0.03222687721559781, 'mean_word_length': 3.5580029368575623, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5562835', 'n_tokens_mistral': 1050, 'n_tokens_neox': 975, 'n_words': 254}