Skip to content

Commit

Permalink
FMT
Browse files Browse the repository at this point in the history
  • Loading branch information
jczaja committed Dec 17, 2023
1 parent c389be3 commit e326e4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,18 @@ pub fn format_sold_transactions_to_string() {}
pub fn run_taxation(
rd: &Box<dyn Residency>,
names: Vec<String>,
) -> Result<(f32, f32, f32, f32, Vec<Transaction>, Vec<Transaction>, Vec<SoldTransaction>), String> {
) -> Result<
(
f32,
f32,
f32,
f32,
Vec<Transaction>,
Vec<Transaction>,
Vec<SoldTransaction>,
),
String,
> {
let mut parsed_div_transactions: Vec<(String, f32, f32)> = vec![];
let mut parsed_sold_transactions: Vec<(String, String, i32, f32, f32)> = vec![];
let mut parsed_gain_and_losses: Vec<(String, String, f32, f32, f32)> = vec![];
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ mod tests {
let pdfnames: Vec<String> = pdfnames.map(|x| x.to_string()).collect();

match etradeTaxReturnHelper::run_taxation(&rd, pdfnames) {
Ok((gross_div, tax_div, gross_sold, cost_sold, _,_, _)) => {
Ok((gross_div, tax_div, gross_sold, cost_sold, _, _, _)) => {
assert_eq!(
(gross_div, tax_div, gross_sold, cost_sold),
(2930.206, 439.54138, 395.45355, 91.156715)
Expand Down

0 comments on commit e326e4f

Please sign in to comment.