Github user kinow commented on a diff in the pull request:

    https://github.com/apache/jena/pull/340#discussion_r160114675
  
    --- Diff: 
jena-arq/src/test/java/org/apache/jena/sparql/function/js/TestNV.java ---
    @@ -0,0 +1,71 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.jena.sparql.function.js;
    +
    +import org.apache.jena.sparql.expr.NodeValue;
    +import org.apache.jena.sparql.sse.SSE;
    +import org.junit.Test;
    +import static org.junit.Assert.*;
    +
    +public class TestNV {
    +
    +    @Test public void nv_1() { test("'abc'"); }
    +    @Test public void nv_2() { test("true"); }
    +    @Test public void nv_3() { test("123"); }
    +    @Test public void nv_4() { test("123.5"); }
    +    
    +    // No conversion to JS - becomes an NV.
    +    @Test public void nv_5() { 
test("'2018-01-06T17:56:41.293+00:00'^^xsd:dateTime"); }
    +    @Test public void nv_6() { test("<http://jena/apche.org/>"); }
    --- End diff --
    
    URL is a bit strange in the test file (i.e. jena/apche.org instead of 
jena.apache.org) but if the test is passing then it' all good :)


---

Reply via email to