2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: URI tests
|
2017-06-29 21:49:38 +02:00
|
|
|
esid: sec-decodeuri-encodeduri
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking ENGLISH ALPHABET
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
if (decodeURI("http://unipro.ru/0123456789") !== "http://unipro.ru/0123456789") {
|
|
|
|
$ERROR('#1: http://unipro.ru/0123456789');
|
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#2
|
|
|
|
if (decodeURI("%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A") !== "ABCDEFGHIJKLMNOPQRSTUVWXYZ") {
|
|
|
|
$ERROR('#2: ABCDEFGHIJKLMNOPQRSTUVWXYZ');
|
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#3
|
|
|
|
if (decodeURI("%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A") !== "abcdefghijklmnopqrstuvwxyz") {
|
|
|
|
$ERROR('#3: abcdefghijklmnopqrstuvwxyz');
|
|
|
|
}
|