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