public void SparqlOperatorApplicationMultiplyNumeric1() { List <IValuedNode> ns = new List <IValuedNode>() { new LongNode(null, 3), new LongNode(null, 6) }; IValuedNode expected = new LongNode(null, 18); this.TestApplication(SparqlOperatorType.Multiply, ns, expected, false); }
public void SparqlOperatorApplicationSubtractNumeric1() { List <IValuedNode> ns = new List <IValuedNode>() { new LongNode(null, 1), new LongNode(null, 2) }; IValuedNode expected = new LongNode(null, -1); this.TestApplication(SparqlOperatorType.Subtract, ns, expected, false); }
//[Benchmark] public void LongNode() { foreach (var(t, p) in TestData.TypeNames.Take(1)) { var items = p.Select(x => new KeyValuePair <string, string>(x, x)); var d = new LongNode <string>(); foreach (var(key, value) in items) { d.Add(key, value); } Bench(items, allKeys.Except(p), d); } }
public AstNode VisitLong(LongNode n) { Append(n.Value.ToString(CultureInfo.InvariantCulture)); return(n); }
public virtual AstNode VisitLong(LongNode n) { return(n); }