Fixes doc test

pull/180/head
Tpt 3 years ago
parent dec66cc684
commit 3daaef71ff
  1. 3
      .github/workflows/build.yml
  2. 2
      lib/src/sparql/model.rs

@ -84,6 +84,7 @@ jobs:
python_wheel_linux: python_wheel_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -99,6 +100,7 @@ jobs:
python_wheel_mac: python_wheel_mac:
runs-on: macos-latest runs-on: macos-latest
needs: python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -112,6 +114,7 @@ jobs:
python_wheel_windows: python_wheel_windows:
runs-on: windows-latest runs-on: windows-latest
needs: python
strategy: strategy:
matrix: matrix:
architecture: ["x86", "x64"] architecture: ["x86", "x64"]

@ -256,7 +256,7 @@ impl QuerySolutionIter {
/// use oxigraph::sparql::{QueryResults, Variable}; /// use oxigraph::sparql::{QueryResults, Variable};
/// ///
/// let store = Store::new()?; /// let store = Store::new()?;
/// if let QueryResults::SolutionReturns all the quads contained in the stores(solutions) = store.query("SELECT ?s ?o WHERE { ?s ?p ?o }")? { /// if let QueryResults::Solutions(solutions) = store.query("SELECT ?s ?o WHERE { ?s ?p ?o }")? {
/// assert_eq!(solutions.variables(), &[Variable::new("s")?, Variable::new("o")?]); /// assert_eq!(solutions.variables(), &[Variable::new("s")?, Variable::new("o")?]);
/// } /// }
/// # Result::<_,Box<dyn std::error::Error>>::Ok(()) /// # Result::<_,Box<dyn std::error::Error>>::Ok(())

Loading…
Cancel
Save