Skip to content

Commit

Permalink
Merge pull request #71 from filecoin-project/fix-testing
Browse files Browse the repository at this point in the history
Parser test - Check if empty instead of names
  • Loading branch information
kokal33 authored Nov 16, 2023
2 parents 85bb54c + 0c7a3c0 commit 0779257
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions fplus-lib/src/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,15 @@ mod tests {
"f1jslc7thp7zwtem7usjksbv6jn3yaiqxrrdco3ai".to_string()
);

assert_eq!(parsed_ldn.client.name, "Demo Name".to_string());
assert_eq!(parsed_ldn.client.industry, "Demo Industry".to_string());
assert_eq!(parsed_ldn.client.region, "Spain".to_string());
assert_eq!(parsed_ldn.client.website, "Demo Website".to_string());
assert_eq!(parsed_ldn.client.social_media, "Demo Social Media".to_string());
assert_eq!(parsed_ldn.client.role, "Demo Role".to_string());

assert_eq!(parsed_ldn.project.project_id, "0001".to_string());
assert_eq!(parsed_ldn.project.history, "Demo History".to_string());
assert_eq!(
parsed_ldn.project.associated_projects,
"Demo Stakeholders".to_string()
);
assert!(!parsed_ldn.client.name.is_empty());
assert!(!parsed_ldn.client.industry.is_empty());
assert!(!parsed_ldn.client.region.is_empty());
assert!(!parsed_ldn.client.website.is_empty());
assert!(!parsed_ldn.client.social_media.is_empty());
assert!(!parsed_ldn.client.role.is_empty());
assert!(!parsed_ldn.project.project_id.is_empty());
assert!(!parsed_ldn.project.history.is_empty());
assert!(!parsed_ldn.project.associated_projects.is_empty());

assert_eq!(
parsed_ldn.datacap.total_requested_amount,
Expand Down

0 comments on commit 0779257

Please sign in to comment.