Skip to content

Commit

Permalink
Adjust test to cover owl:rational case
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesalvo committed Jan 23, 2025
1 parent 9fa3dd2 commit 30daac4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void ShouldApplyExpressionWithVariableAndCalculateResult()
table.Columns.Add("?A", typeof(string));
table.Columns.Add("?B", typeof(string));
DataRow row = table.NewRow();
row["?A"] = new RDFTypedLiteral("-5.1", RDFModelEnums.RDFDatatypes.XSD_DOUBLE).ToString();
row["?A"] = new RDFTypedLiteral("-11/2", RDFModelEnums.RDFDatatypes.OWL_RATIONAL).ToString();
row["?B"] = new RDFTypedLiteral("25", RDFModelEnums.RDFDatatypes.XSD_INT).ToString();
table.Rows.Add(row);
table.AcceptChanges();
Expand All @@ -96,7 +96,7 @@ public void ShouldApplyExpressionWithVariableAndCalculateResult()
RDFPatternMember expressionResult = expression.ApplyExpression(table.Rows[0]);

Assert.IsNotNull(expressionResult);
Assert.IsTrue(expressionResult.Equals(new RDFTypedLiteral("5.1", RDFModelEnums.RDFDatatypes.XSD_DOUBLE)));
Assert.IsTrue(expressionResult.Equals(new RDFTypedLiteral("5.5", RDFModelEnums.RDFDatatypes.XSD_DOUBLE)));
}

[TestMethod]
Expand Down

0 comments on commit 30daac4

Please sign in to comment.