22 lines
652 B
JavaScript
22 lines
652 B
JavaScript
|
import { describe, it } from 'node:test'
|
||
|
import assert from 'node:assert'
|
||
|
import { parse } from '../../src/parser.js'
|
||
|
import { node, edge, properties, statement } from '../../src/query/match.js'
|
||
|
|
||
|
//describe('match parser', () => {
|
||
|
// it('node should match a label', () => {
|
||
|
// const result = parse(node, '(:Node)')
|
||
|
// console.log(result.error.state)
|
||
|
// assert(result.isOk())
|
||
|
// })
|
||
|
//
|
||
|
// it('properties should do something', () => {
|
||
|
// const q = '(a:Node { name: "Rowan", species: "???" })'
|
||
|
// console.log(
|
||
|
// `parsing "${q}"\n`,
|
||
|
// parse(node, q).value[0][0]
|
||
|
// )
|
||
|
// })
|
||
|
//})
|
||
|
|