From aaca5878d5ac84b27917bbf1b7994fe59733fc97 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 23 May 2020 17:53:50 -0700 Subject: Query encode --- app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/src/test/kotlin/com/pitchedapps/frost/facebook') diff --git a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt index bdb74756..433fdb2a 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbUrlTest.kt @@ -163,6 +163,13 @@ class FbUrlTest { assertFbFormat(expected, url) } + @Test + fun queryUrlEncode() { + val url = "${ FB_URL_BASE}sample/?q=#foo" + val expected = "${ FB_URL_BASE}sample/?q=%23foo" + assertFbFormat(expected, url) + } + // @Test // fun viewFullImageIndirect() { // val urlBase = "photo/view_full_size/?fbid=1234&ref_component=mbasic_photo_permalink&ref_page=%2Fwap%2Fphoto.php&refid=13&_ft_=qid.1234%3Amf_story_key.1234%3Atop_level_post_id" -- cgit v1.2.3