Skip to content

Commit 30daac4

Browse files
committed
Adjust test to cover owl:rational case
1 parent 9fa3dd2 commit 30daac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RDFSharp.Test/Query/Mirella/Algebra/Expressions/RDFAbsExpressionTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void ShouldApplyExpressionWithVariableAndCalculateResult()
8686
table.Columns.Add("?A", typeof(string));
8787
table.Columns.Add("?B", typeof(string));
8888
DataRow row = table.NewRow();
89-
row["?A"] = new RDFTypedLiteral("-5.1", RDFModelEnums.RDFDatatypes.XSD_DOUBLE).ToString();
89+
row["?A"] = new RDFTypedLiteral("-11/2", RDFModelEnums.RDFDatatypes.OWL_RATIONAL).ToString();
9090
row["?B"] = new RDFTypedLiteral("25", RDFModelEnums.RDFDatatypes.XSD_INT).ToString();
9191
table.Rows.Add(row);
9292
table.AcceptChanges();
@@ -96,7 +96,7 @@ public void ShouldApplyExpressionWithVariableAndCalculateResult()
9696
RDFPatternMember expressionResult = expression.ApplyExpression(table.Rows[0]);
9797

9898
Assert.IsNotNull(expressionResult);
99-
Assert.IsTrue(expressionResult.Equals(new RDFTypedLiteral("5.1", RDFModelEnums.RDFDatatypes.XSD_DOUBLE)));
99+
Assert.IsTrue(expressionResult.Equals(new RDFTypedLiteral("5.5", RDFModelEnums.RDFDatatypes.XSD_DOUBLE)));
100100
}
101101

102102
[TestMethod]

0 commit comments

Comments
 (0)