Skip to content

Clean tests - #32

Open
StrongestNumber9 wants to merge 4 commits into
teragrep:mainfrom
StrongestNumber9:clean_tests
Open

StrongestNumber9 wants to merge 4 commits into
teragrep:mainfrom
StrongestNumber9:clean_tests

Conversation

@StrongestNumber9

Copy link
Copy Markdown

Partially fixes #29 but couple of tests still needs to be cleaned up.

Removes Main.java, updates junit version, cleans up tests to be more reliable and easier to read & verify

@Tiihott Tiihott left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is an error in pcre2_matchall_clrf_test() assertions.

@@ -748,19 +635,19 @@ else if (s1.get_utf8()){ /* Otherwise, ensure we */
Assertions.assertEquals("43434.com", it.getValue());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Expected value should be "example.com"


/*This is the test module for testing the pcre-regex library from Java.
* The functions called here will represent the functions that are available to use in the aforementioned library.*/
public class Main {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a readme or usage instructions that covers all the cases used here?


@Test
void pcre2_translator_test() {
// broken

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this a case that does not work within the code? if so add Disabled annotation with a reason and an issue to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up tests

3 participants