mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Refs and tests
This commit is contained in:
parent
56166a7948
commit
8f99f399ee
3 changed files with 25 additions and 2 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 650ef8e5a901d65836b237145674b87e562a69a8
|
||||
Subproject commit 3cc6d553cf840141fb5fa718a7b4a6b49282eaad
|
|
@ -0,0 +1,23 @@
|
|||
package com.futo.platformplayer
|
||||
|
||||
import com.futo.platformplayer.helpers.FileHelper.Companion.sanitizeFileName
|
||||
import org.junit.Assert
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import java.time.OffsetDateTime
|
||||
import java.time.ZoneOffset
|
||||
|
||||
class ExtensionsFileTests {
|
||||
@Test
|
||||
fun test_sanitizeFileName1() {
|
||||
assertEquals("Helloworld", "Hello world".sanitizeFileName());
|
||||
assertEquals("Hello world", "Hello world".sanitizeFileName(true));
|
||||
assertEquals("漫漫听-点唱-公主冠", "漫漫听-点唱- 公主冠".sanitizeFileName());
|
||||
assertEquals("食べる", "食べ る".sanitizeFileName()); //Hiragana
|
||||
assertEquals("テレビ", "テレ ビ".sanitizeFileName()); //Katakana
|
||||
assertEquals("يخبر", "ي خبر".sanitizeFileName()); //Arabic
|
||||
assertEquals("..testing", "../testing".sanitizeFileName()); //Escaping
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
Subproject commit 650ef8e5a901d65836b237145674b87e562a69a8
|
||||
Subproject commit 3cc6d553cf840141fb5fa718a7b4a6b49282eaad
|
Loading…
Add table
Reference in a new issue