Inheritance: AbstractNode, IValue
        public void prints_float_value()
        {
            double value = 3.33;

            var val = new FloatValue(value);
            var result = _printer.Visit(val);
            result.ShouldBe($"{value, 0:0.0##}");
        }
Ejemplo n.º 2
0
 protected bool Equals(FloatValue other)
 {
     return(Value == other.Value);
 }
Ejemplo n.º 3
0
 protected bool Equals(FloatValue other)
 {
     return Value == other.Value;
 }