Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import for test_serialize_deserialize #47

Conversation

matthewmcintire-savantx
Copy link
Contributor

This enables cargo test --features serde

@coriolinus
Copy link
Owner

This appears to work already, without this PR:

$ cargo test --features serde
Sat 30 Sep 2023 08:31:28 PM CEST
   Compiling counter v0.5.7 (/home/coriolinus/projects/coriolinus/counter-rs)
    Finished test [unoptimized + debuginfo] target(s) in 1.00s
     Running unittests src/lib.rs (target/debug/deps/counter-3e80ac4db2116e03)

running 17 tests
test unit_tests::test_add_update_counter ... ok
test unit_tests::test_add_update_iterable ... ok
test unit_tests::test_count_minimal_type ... ok
test unit_tests::test_collect ... ok
test unit_tests::test_creation ... ok
test unit_tests::test_extend_simple ... ok
test unit_tests::test_creation_with_capacity ... ok
test unit_tests::test_extend_tuple ... ok
test unit_tests::test_extend_tuple_with_duplicates ... ok
test unit_tests::test_from_iter_simple ... ok
test unit_tests::test_from_iter_tuple ... ok
test unit_tests::test_from_iter_tuple_with_duplicates ... ok
test unit_tests::test_non_usize_count ... ok
test unit_tests::test_sub_update_iterable ... ok
test unit_tests::test_sub_update_counter ... ok
test unit_tests::test_subtract ... ok
test unit_tests::test_update ... ok

test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/tests.rs (target/debug/deps/tests-d993a04d686964e2)

running 17 tests
test tests::test_delete_key_from_backing_map ... ok
test tests::test_add ... ok
test tests::test_composite_add_sub ... ok
test tests::test_intersection ... ok
test tests::test_k_most_common_ordered ... ok
test tests::test_most_common ... ok
test tests::test_most_common_ordered ... ok
test tests::test_most_common_tiebreaker ... ok
test tests::test_most_common_tiebreaker_fn_mut ... ok
test tests::test_most_common_tiebreaker_reversed ... ok
test tests::test_serialize_deserialize ... ok
test tests::test_sub ... ok
test tests::test_subset_non_usize_count ... ok
test tests::test_superset_non_usize_count ... ok
test tests::test_total ... ok
test tests::test_union ... ok
test tests::test_k_most_common_ordered_heavy ... ok

test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

   Doc-tests counter

running 47 tests
test src/impls/extend.rs - impls::extend::Counter<T,N>::extend (line 15) ... ok
test src/impls/add_iterable.rs - impls::add_iterable::Counter<T,N>::add_assign (line 42) ... ok
test src/impls/extend.rs - impls::extend::Counter<T,N>::extend (line 36) ... ok
test src/impls/add_iterable.rs - impls::add_iterable::Counter<T,N>::add (line 18) ... ok
test src/impls/from_iterator.rs - impls::from_iterator::Counter<T,N>::from_iter (line 35) ... ok
test src/impls/add_self.rs - impls::add_self::Counter<T,N>::add (line 19) ... ok
test src/impls/extend.rs - impls::extend::Counter<T,N>::extend (line 61) ... ok
test src/impls/add_self.rs - impls::add_self::Counter<T,N>::add_assign (line 45) ... ok
test src/impls/index.rs - impls::index::Counter<T,N>::index_mut (line 65) ... ok
test src/impls/index.rs - impls::index::Counter<T,N>::index (line 24) ... ok
test src/impls/index.rs - impls::index::Counter<T,N>::index_mut (line 81) ... ok
test src/impls/index.rs - impls::index::Counter<T,N>::index (line 40) ... ok
test src/impls/from_iterator.rs - impls::from_iterator::Counter<T,N>::from_iter (line 58) ... ok
test src/impls/intersection.rs - impls::intersection::Counter<T,N>::bitand (line 19) ... ok
test src/impls/intersection.rs - impls::intersection::Counter<T,N>::bitand_assign (line 53) ... ok
test src/impls/into_iterator.rs - impls::into_iterator::&'amutCounter<T,N>::into_iter (line 59) ... ok
test src/impls/sub_iterable.rs - impls::sub_iterable::Counter<T,N>::sub_assign (line 45) ... ok
test src/impls/into_iterator.rs - impls::into_iterator::Counter<T,N>::into_iter (line 27) ... ok
test src/impls/sub_iterable.rs - impls::sub_iterable::Counter<T,N>::sub (line 18) ... ok
test src/impls/sub_self.rs - impls::sub_self::Counter<T,N>::sub (line 23) ... ok
test src/impls/sub_self.rs - impls::sub_self::Counter<T,N>::sub_assign (line 53) ... ok
test src/impls/union.rs - impls::union::Counter<T,N>::bitor_assign (line 66) ... ok
test src/impls/union.rs - impls::union::Counter<T,N>::bitor (line 19) ... ok
test src/lib.rs - (line 100) ... ok
test src/lib.rs - (line 115) ... ok
test src/lib.rs - (line 126) ... ok
test src/lib.rs - (line 139) ... ok
test src/lib.rs - (line 160) ... ok
test src/lib.rs - (line 194) ... ok
test src/lib.rs - (line 20) ... ok
test src/lib.rs - (line 224) ... ok
test src/lib.rs - (line 207) ... ok
test src/lib.rs - (line 28) ... ok
test src/lib.rs - (line 269) ... ok
test src/lib.rs - (line 35) ... ok
test src/lib.rs - (line 48) ... ok
test src/lib.rs - (line 60) ... ok
test src/lib.rs - (line 74) ... ok
test src/lib.rs - Counter<T,N>::is_subset (line 583) ... ok
test src/lib.rs - Counter<T,N>::is_superset (line 558) ... ok
test src/lib.rs - (line 86) ... ok
test src/lib.rs - Counter<T,N>::k_most_common_ordered (line 477) ... ok
test src/lib.rs - Counter<T,N>::most_common (line 392) ... ok
test src/lib.rs - Counter<T,N>::most_common_tiebreaker (line 412) ... ok
test src/lib.rs - Counter<T,N>::most_common_ordered (line 449) ... ok
test src/lib.rs - Counter<T,N>::subtract (line 358) ... ok
test src/lib.rs - Counter<T,N>::total (line 318) ... ok

test result: ok. 47 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.11s

If it is not working for you, may I ask what version of Rust you are using?

@matthewmcintire-savantx
Copy link
Contributor Author

Great, I didn't try it without it

@matthewmcintire-savantx
Copy link
Contributor Author

Trying to close the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants