Skip to content

Doctests fail #30

@timon-schelling

Description

@timon-schelling
running 6 tests
test src/color_plot/textplots/scale.rs - color_plot::textplots::scale::Scale::linear (line 13) ... FAILED
test src/color_plot/textplots/scale.rs - color_plot::textplots::scale::Scale::inv_linear (line 24) ... FAILED
test src/color_plot/textplots/utils.rs - color_plot::textplots::utils::histogram (line 9) ... FAILED
test src/color_plot/drawille.rs - color_plot::drawille (line 12) ... FAILED
test src/color_plot/textplots/mod.rs - color_plot::textplots (line 21) ... FAILED
test src/color_plot/textplots/mod.rs - color_plot::textplots (line 38) ... FAILED

failures:

---- src/color_plot/textplots/scale.rs - color_plot::textplots::scale::Scale::linear (line 13) stdout ----
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `textplots`
 --> src/color_plot/textplots/scale.rs:14:5
  |
3 | use textplots::scale::Scale;
  |     ^^^^^^^^^ use of unresolved module or unlinked crate `textplots`
  |
  = help: if you wanted to use a crate named `textplots`, use `cargo add textplots` to add it to your `Cargo.toml`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/color_plot/textplots/scale.rs - color_plot::textplots::scale::Scale::inv_linear (line 24) stdout ----
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `textplots`
 --> src/color_plot/textplots/scale.rs:25:5
  |
3 | use textplots::scale::Scale;
  |     ^^^^^^^^^ use of unresolved module or unlinked crate `textplots`
  |
  = help: if you wanted to use a crate named `textplots`, use `cargo add textplots` to add it to your `Cargo.toml`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/color_plot/textplots/utils.rs - color_plot::textplots::utils::histogram (line 9) stdout ----
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `textplots`
 --> src/color_plot/textplots/utils.rs:10:5
  |
3 | use textplots::utils::histogram;
  |     ^^^^^^^^^ use of unresolved module or unlinked crate `textplots`
  |
  = help: if you wanted to use a crate named `textplots`, use `cargo add textplots` to add it to your `Cargo.toml`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/color_plot/drawille.rs - color_plot::drawille (line 12) stdout ----
error[E0463]: can't find crate for `drawille`
 --> src/color_plot/drawille.rs:13:1
  |
2 | extern crate drawille;
  | ^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
Couldn't compile the test.
---- src/color_plot/textplots/mod.rs - color_plot::textplots (line 21) stdout ----
error[E0432]: unresolved import `textplots`
 --> src/color_plot/textplots/mod.rs:22:5
  |
3 | use textplots::{Chart, Plot, Shape};
  |     ^^^^^^^^^ use of unresolved module or unlinked crate `textplots`
  |
  = help: if you wanted to use a crate named `textplots`, use `cargo add textplots` to add it to your `Cargo.toml`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0432`.
Couldn't compile the test.
---- src/color_plot/textplots/mod.rs - color_plot::textplots (line 38) stdout ----
error[E0432]: unresolved import `textplots`
 --> src/color_plot/textplots/mod.rs:39:5
  |
3 | use textplots::{Chart, Plot, Shape};
  |     ^^^^^^^^^ use of unresolved module or unlinked crate `textplots`
  |
  = help: if you wanted to use a crate named `textplots`, use `cargo add textplots` to add it to your `Cargo.toml`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0432`.
Couldn't compile the test.

failures:
    src/color_plot/drawille.rs - color_plot::drawille (line 12)
    src/color_plot/textplots/mod.rs - color_plot::textplots (line 21)
    src/color_plot/textplots/mod.rs - color_plot::textplots (line 38)
    src/color_plot/textplots/scale.rs - color_plot::textplots::scale::Scale::inv_linear (line 24)
    src/color_plot/textplots/scale.rs - color_plot::textplots::scale::Scale::linear (line 13)
    src/color_plot/textplots/utils.rs - color_plot::textplots::utils::histogram (line 9)

test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s

error: doctest failed, to rerun pass `--doc`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions