Skip to content

Completed AU_ABN test cases#77

Open
TaLi-hub03 wants to merge 1 commit intomainfrom
sprint2-au-abn
Open

Completed AU_ABN test cases#77
TaLi-hub03 wants to merge 1 commit intomainfrom
sprint2-au-abn

Conversation

@TaLi-hub03
Copy link

Added positive and negative test cases for AU_ABN detection

Copy link
Contributor

@KanyliaR KanyliaR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

#Another pocitive case with ABN prefix
abn_text_prefix = "ABN 51824753556 belongs to Example Pty Ltd"
result = analyze_text(abn_text_prefix, ['AU_ABN'])
self.assertEqual(len(result),1, "Expected one AU_ABN detection with prefix")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to check the entity_type here as you did in the first positive test case

Copy link
Contributor

@claesmk claesmk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a check for the entity_type in second test case

@claesmk claesmk linked an issue Oct 22, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detecting AU_ABN (Australian Business Number)

3 participants