From 30bf471aa27e58605ed113ce60482a8a88599fe7 Mon Sep 17 00:00:00 2001 From: rsk0315 Date: Mon, 12 Feb 2024 18:08:43 +0900 Subject: [PATCH] tests --- nekolib-src/math/divisors/src/lib.rs | 2 +- nekolib-src/math/factors/src/lib.rs | 4 ++-- nekolib-src/random/randgen/src/lib.rs | 2 +- nekolib-src/snippet/proconio/src/lib.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nekolib-src/math/divisors/src/lib.rs b/nekolib-src/math/divisors/src/lib.rs index 668e8ec3ad..26b4e39101 100644 --- a/nekolib-src/math/divisors/src/lib.rs +++ b/nekolib-src/math/divisors/src/lib.rs @@ -1,4 +1,4 @@ -trait Divisors { +pub trait Divisors: Sized { fn divisors(self) -> impl Iterator; } diff --git a/nekolib-src/math/factors/src/lib.rs b/nekolib-src/math/factors/src/lib.rs index 940173edb2..5e582056b3 100644 --- a/nekolib-src/math/factors/src/lib.rs +++ b/nekolib-src/math/factors/src/lib.rs @@ -1,8 +1,8 @@ -trait Factors: Sized { +pub trait Factors: Sized { fn factors(self) -> impl Iterator; } -trait FactorsDup { +pub trait FactorsDup: Sized { fn factors_dup(self) -> impl Iterator; } diff --git a/nekolib-src/random/randgen/src/lib.rs b/nekolib-src/random/randgen/src/lib.rs index 3b88fc97ab..a9fe1e789f 100644 --- a/nekolib-src/random/randgen/src/lib.rs +++ b/nekolib-src/random/randgen/src/lib.rs @@ -100,7 +100,7 @@ fn uniformity() { } #[test] -#[ignore] +#[cfg(ignore)] fn macros() { rand_gen! { rng = _; // Default diff --git a/nekolib-src/snippet/proconio/src/lib.rs b/nekolib-src/snippet/proconio/src/lib.rs index 3af7f768e3..3738e93d95 100644 --- a/nekolib-src/snippet/proconio/src/lib.rs +++ b/nekolib-src/snippet/proconio/src/lib.rs @@ -13,7 +13,7 @@ //! //! ## `impl Readable` //! -//! ``` +//! ```ignore //! use std::io::BufRead; //! //! use proconio::{