Roxen.git / server / etc / test / modules / TEST.pmod / http.pmod / WebDAV.pmod / TestBase.pike

version» Context lines:

Roxen.git/server/etc/test/modules/TEST.pmod/http.pmod/WebDAV.pmod/TestBase.pike:2166:      // Test create directory and file containing special chars.   public void test_x_special_chars()   {    string testdir = this::testcase_dir;    // If you want to try single chars, just ad them as new strings to the array    // below.    array(string) FILENAMES = ({   #ifdef __NT__    /* NB: *, ? and | are apparently invalid characters in NTFS. */ -  " _ [](){}+-#%&=$~ ", +  /* NB: Space at the end of path segments is *sometimes* stripped on NTFS. */ +  " _ [](){}+-#%&=$~",   #else /* !__NT__ */    " _ [](){}+-*#%&=?|$~ ",   #endif /* __NT__ */    });    foreach (FILENAMES, string file) {    mixed e = catch {    // This test should only include chars that are the same before and after    // encoding    ASSERT_EQUAL(file, Unicode.normalize(file, "NFC"));    ASSERT_EQUAL(file, Unicode.normalize(file, "NFD"));