Link to my markdown-parse repository
Link to the one I reviewed in week 7
Expected Output:
[url.com, `google.com, google.com, ucsd.edu]
Code in MarkdownParseTest.java:
@Test
public void getLinksTest_snip1() throws IOException {
Path fileName = Path.of("test-Snippet1.md");
String content = Files.readString(fileName);
List<String> result = List.of("url.com","`google.com","google.com","ucsd.edu");
assertEquals(result, MarkdownParse.getLinks(content));
}
For My implementation: The test passed
For the Implementation I Reviewed in Week 7: The test failed
Expected Output:
[a.com, a.com(()), example.com]
Code in MarkdownParseTest.java:
@Test
public void getLinksTest_snip2() throws IOException {
Path fileName = Path.of("test-Snippet2.md");
String content = Files.readString(fileName);
List<String> result = List.of("a.com","a.com(())","example.com");
assertEquals(result, MarkdownParse.getLinks(content));
}
For My implementation: The test failed
For the Implementation I Reviewed in Week 7: The test failed
Expected Output:
[https://www.twitter.com, https://sites.google.com/eng.ucsd.edu/cse-15l-spring-2022/schedule, https://cse.ucsd.edu/]
Code in MarkdownParseTest.java:
@Test
public void getLinksTest_snip3() throws IOException {
Path fileName = Path.of("test-Snippet3.md");
String content = Files.readString(fileName);
List<String> result = List.of("https://www.twitter.com","https://sites.google.com/eng.ucsd.edu/cse-15l-spring-2022/schedule","https://cse.ucsd.edu/");
assertEquals(result, MarkdownParse.getLinks(content));
}
For My implementation: The test failed
For the Implementation I Reviewed in Week 7: The test failed