Skip to content

Commit

Permalink
Move tests into tests folder
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Oct 24, 2023
1 parent 2573a6e commit a783847
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# macOS Finder and Windows Thumbs.db files
.DS_Store
Thumbs.db

# Generated by Cargo
# will have compiled files and executables
debug/
Expand Down
7 changes: 1 addition & 6 deletions Code/test/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
#![cfg(test)]
#![forbid(unsafe_code)]
#![deny(unused_crate_dependencies, trivial_casts, trivial_numeric_casts)]
#![deny(trivial_casts, trivial_numeric_casts)]

mod consensus;
mod consensus_executor;
mod height;
mod proposal;
mod round;
mod validator_set;
mod value;
mod vote;
mod vote_count;
mod vote_keeper;

pub use crate::consensus::*;
pub use crate::height::*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use malachite_common::{Consensus, Round};
use malachite_consensus::executor::{Executor, Message};
use malachite_round::state::{RoundValue, State, Step};

use crate::{Height, Proposal, PublicKey, TestConsensus, Validator, ValidatorSet, Vote};
use malachite_test::{Height, Proposal, PublicKey, TestConsensus, Validator, ValidatorSet, Vote};

#[test]
fn test_executor_steps() {
Expand Down
2 changes: 1 addition & 1 deletion Code/test/src/round.rs → Code/test/tests/round.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{Height, Proposal, TestConsensus, Value};
use malachite_test::{Height, Proposal, TestConsensus, Value};

use malachite_common::{Consensus, Round, Timeout, TimeoutStep};
use malachite_round::events::Event;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use malachite_common::Round;
use malachite_vote::count::Threshold;
use malachite_vote::RoundVotes;

use crate::{Address, Height, TestConsensus, ValueId, Vote};
use malachite_test::{Address, Height, TestConsensus, ValueId, Vote};

#[test]
fn add_votes_nil() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use malachite_common::Round;
use malachite_round::events::Event;
use malachite_vote::keeper::VoteKeeper;

use crate::{Address, Height, TestConsensus, ValueId, Vote};
use malachite_test::{Address, Height, TestConsensus, ValueId, Vote};

#[test]
fn prevote_apply_nil() {
Expand Down

0 comments on commit a783847

Please sign in to comment.