-
Notifications
You must be signed in to change notification settings - Fork 20
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
Closed
matthewmcintire-savantx
wants to merge
1
commit into
coriolinus:master
from
matthewmcintire-savantx:master
Closed
Fix import for test_serialize_deserialize #47
matthewmcintire-savantx
wants to merge
1
commit into
coriolinus:master
from
matthewmcintire-savantx:master
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
Great, I didn't try it without it |
Trying to close the PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This enables
cargo test --features serde