File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
RDFSharp.Test/Query/Mirella/Algebra/Expressions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments