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##}");
        }
Exemple #2
0
 protected bool Equals(FloatValue other)
 {
     return(Value == other.Value);
 }
 protected bool Equals(FloatValue other)
 {
     return Value == other.Value;
 }