Skip to content

Commit 89ed51d

Browse files
authored
Merge pull request #46 from orxfun/clean-up-tests
dbg lines are cleaned
2 parents 2a6d74f + 6a81e09 commit 89ed51d

File tree

9 files changed

+4
-12
lines changed

9 files changed

+4
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "orx-linked-list"
3-
version = "3.9.0"
3+
version = "3.9.1"
44
edition = "2024"
55
authors = ["orxfun <[email protected]>"]
66
description = "A linked list implementation with unique features and an extended list of constant time methods providing high performance traversals and mutations."

examples/bench_parallelization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn main() {
7474
Box::new(move || {
7575
let list: DoublyList<_> = (0..args.len as usize).collect();
7676

77-
list.par_x() // replace iter_ (into_iter_x) with par_x (into_par_x) to parallelize !
77+
list.par_x() // replace iter_x (into_iter_x) with par_x (into_par_x) to parallelize !
7878
.filter(|x| *x % 3 != 0)
7979
.map(|x| x + fibonacci(x % 1000))
8080
.filter(|x| x % 2 == 0)

src/list/consuming.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ where
5050
/// In brief, computation is defined as chain of iterator transformations and parallelization
5151
/// is handled by the underlying parallel executor.
5252
///
53-
/// Required **orx-parallel** feature.
53+
/// Requires **orx-parallel** feature.
5454
///
5555
/// [`ParIter`]: orx_parallel::ParIter
5656
/// [`into_iter_x`]: crate::List::into_iter_x
@@ -75,7 +75,6 @@ where
7575
///
7676
/// let expected: usize = new_list().into_iter_x().filter(|x| x % 2 == 0).sum();
7777
/// let sum_evens = new_list().into_par_x().filter(|x| x % 2 == 0).sum();
78-
/// std::dbg!(sum_evens, expected);
7978
/// ```
8079
#[cfg(feature = "orx-parallel")]
8180
pub fn into_par_x(self) -> impl orx_parallel::ParIter<Item = V::Item>

src/list/ends_traits/doubly_ends_mut.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ where
393393
/// let e = list.push_back('e');
394394
///
395395
/// assert!(list.eq_to_iter_vals(['a', 'b', 'c', 'd', 'e']));
396-
/// dbg!(list.front());
397396
///
398397
/// list.reverse();
399398
/// assert!(list.eq_to_iter_vals(['e', 'd', 'c', 'b', 'a']));

src/list/get.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ where
113113
/// In brief, computation is defined as chain of iterator transformations and parallelization
114114
/// is handled by the underlying parallel executor.
115115
///
116-
/// Required **orx-parallel** feature.
116+
/// Requires **orx-parallel** feature.
117117
///
118118
/// [`ParIter`]: orx_parallel::ParIter
119119
/// [`iter_x`]: crate::List::iter_x
@@ -138,7 +138,6 @@ where
138138
///
139139
/// let expected: usize = list.iter_x().filter(|x| *x % 2 == 0).sum();
140140
/// let sum_evens = list.par_x().filter(|x| *x % 2 == 0).sum();
141-
/// std::dbg!(sum_evens, expected);
142141
/// ```
143142
#[cfg(feature = "orx-parallel")]
144143
pub fn par_x(&self) -> impl orx_parallel::ParIter<Item = &V::Item>

tests/list_move_next_to.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ fn list_move_next_to_back() {
3232
let mut vec: Vec<_> = (0..n).into_iter().filter(|x| x != &i).collect();
3333
vec.insert(n - 1, i);
3434

35-
dbg!(i, &vec, list.iter().collect::<Vec<_>>());
36-
3735
#[cfg(feature = "validation")]
3836
list.validate();
3937
assert!(list.eq_to_iter_refs(&vec));

tests/reverse.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ fn slice_reverse_until_back() {
8484
#[test]
8585
fn slice_reverse_middle() {
8686
for i in 0..20 {
87-
dbg!(i);
8887
let mut list = doubly::new_doubly(&mut &mut doubly::rng_with_seed(100 * i as u64), 20, 50);
8988
let mut expected: Vec<_> = list.iter().cloned().collect();
9089
let idx: Vec<_> = list.indices().collect();

tests/ring_iter_mut.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ fn ring_iter_mut_on_list() {
1111
let values: Vec<_> = list.iter().cloned().collect();
1212

1313
for i in 0..n {
14-
dbg!(i, n);
1514
let cyclic: Vec<_> = list.ring_iter_mut(&idx[i]).map(|x| x.clone()).collect();
1615
assert_eq!(cyclic.len(), n);
1716

tests/slice_move_prev_to.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ fn slice_move_prev_to_front() {
1212
let a = 1;
1313
let b = 5;
1414
for i in a..=b {
15-
dbg!(i);
1615
let (mut list, idx) = list_and_indices(n);
1716
let mut slice = list.slice_mut(&idx[a]..=&idx[b]);
1817
let idx: Vec<_> = slice.indices().collect();

0 commit comments

Comments
 (0)