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:2143:    }    }   }      // 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 = ({ " _ [](){}+-*#%&=?|$~ " }); +  array(string) FILENAMES = ({ + #ifdef __NT__ +  /* NB: *, ? and | are apparently invalid characters in 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"));    // Test starts here...    string dir_path = Stdio.append_path("/", testdir, file);    string file_path = dir_path + "/" + file + ".txt";    report_debug("Webdav special chars test: Creating dir: %s.\n", dir_path);