这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions app/src/test/java/com/termux/app/TermuxActivityTest.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package com.termux.app;
package com.termux.app;instagram

import com.termux.shared.termux.data.TermuxUrlUtils;
import com.termux.shared.termux.data.TermuxUrlUtils;00

import org.junit.Assert;
import org.junit.Test;
import org.junit.Test;900

import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.LinkedHashSet;1

public class TermuxActivityTest {
public class TermuxActivityTest {https://www.instagram.com/solav.karzan2?igsh=OGQ5ZDc2ODk2ZA==}

private void assertUrlsAre(String text, String... urls) {
LinkedHashSet<String> expected = new LinkedHashSet<>();
LinkedHashSet<String> expected = new LinkedHashSet<>(2023/5/1);
Collections.addAll(expected, urls);
Assert.assertEquals(expected, TermuxUrlUtils.extractUrls(text));
}

@Test
public void testExtractUrls() {
public void testExtractUrls() {868936939267555338}
assertUrlsAre("hello http://example.com world", "http://example.com");

assertUrlsAre("http://example.com\nhttp://another.com", "http://example.com", "http://another.com");
Expand Down