Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Fix #28
Browse files Browse the repository at this point in the history
  • Loading branch information
wschella committed May 20, 2019
1 parent 7385bf2 commit ca4f5ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ To be fully spec compliant, the IRI/URI functions should take into account base
| >= ||| ? | | |
| * ||| ? | | |
| / ||| I | | Occurs in coalesce |
| + ||| X | | Depends on #28 |
| + ||| | | |
| - ||| ? | | |
| _Notes_ | | | | | Spec compliance depends on #13 and #14 |
| [Functional Forms](https://www.w3.org/TR/sparql11-query/#func-forms)
| BOUND || X | ? | | |
| IF || X || | |
| COALESCE || X | X | | Depends on #28 |
| COALESCE || X | | | |
| NOT EXISTS || X | X | | Needs full SPARQL engine to really test |
| EXISTS || X | X | | Needs full SPARQL engine to really test |
| logical-or ||| I || See operators |
Expand Down
6 changes: 3 additions & 3 deletions test/spec/coalesce01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { aliases as a, decimal, int, testAll, testAllErrors } from '../util/util
// :n2 :p 0 ; :q 2 .
// :n3 :p 4 ; :q 2 .

describe.skip('We should respect the coalesce01 spec', () => {
describe('We should respect the coalesce01 spec', () => {
const { n0, q0, n1, n2, n3, q1, q2, q3 } = {
n0: int('1'),
q0: '?unbound',
Expand All @@ -65,12 +65,12 @@ describe.skip('We should respect the coalesce01 spec', () => {

// :n2
`COALESCE(${q2}, -1) = ${q2}`,
`COALESCE(${n2}/${q2}, -2) = ${decimal('0.0')}`,
`COALESCE(${n2}/${q2}, -2) = ${decimal('0')}`,
`COALESCE(?z, -3) = ${int('-3')}`,

// :n3
`COALESCE(${q3}, -1) = ${q3}`,
`COALESCE(${n3}/${q3}) = ${decimal('2.0')}`,
`COALESCE(${n3}/${q3}) = ${decimal('2')}`,
`COALESCE(?z, -3) = ${int('-3')}`,
]);

Expand Down
4 changes: 2 additions & 2 deletions test/spec/plus-1-corrected.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { aliases as a, decimal, int, testAll, testAllErrors } from '../util/util
* .
*/

describe.skip('We should respect the plus-1-corrected spec', () => {
describe('We should respect the plus-1-corrected spec', () => {
const {
x1p, x1q,
x2q,
Expand All @@ -39,7 +39,7 @@ describe.skip('We should respect the plus-1-corrected spec', () => {

testAll([
`${x4p} + ${x4q} = ${int('3')}`,
`${x5p} + ${x5q} = ${decimal('3.0')}`,
`${x5p} + ${x5q} = ${decimal('3')}`,
]);

testAllErrors([
Expand Down

0 comments on commit ca4f5ae

Please sign in to comment.