Esempio n. 1
0
        public void test_add_bool()
        {
            var dist = new Distance();

            dist.AddBool("expr", true);
            dist.Penalties.Should().BeEquivalentTo(new Dictionary <string, List <double> > {
                { "expr", new List <double> {
                      1.0
                  } }
            });

            dist.AddBool("expr", false);
            dist.Penalties.Should().BeEquivalentTo(new Dictionary <string, List <double> > {
                { "expr", new List <double> {
                      1.0, 0.0
                  } }
            });
        }