mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	- Re-organize existing tests for identifiers Name files according to their content (not their ES5 ID). Move tests for IdentifierName and LabelIdentifier to more appropriate directories. - Simplify and correct tests Instead of asserting successful runtime evaluation using `eval`, rely on the test runner's ability to detect syntax errors. Update the test bodies to test the grammar referenced by their ES5 ID and description--the IdentifierStart pattern. - Use `negative` frontmatter to assert SyntaxErrors - Remove redundant tests - Use `assert.equal` helper function - Add equivalent tests for literal unicode chars - Add tests for variable-length unicode escape
		
			
				
	
	
		
			114 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			114 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2015 the V8 project authors. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
info: Correct interpretation of ENGLISH ALPHABET
 | 
						|
es6id: 11.6
 | 
						|
description: Check ENGLISH SMALL ALPHABET
 | 
						|
---*/
 | 
						|
 | 
						|
var a = 1;
 | 
						|
if (a !== 1) {
 | 
						|
  $ERROR('#a');
 | 
						|
}
 | 
						|
var b = 1;
 | 
						|
if (b !== 1) {
 | 
						|
  $ERROR('#b');
 | 
						|
}
 | 
						|
var c = 1;
 | 
						|
if (c !== 1) {
 | 
						|
  $ERROR('#c');
 | 
						|
}
 | 
						|
var d = 1;
 | 
						|
if (d !== 1) {
 | 
						|
  $ERROR('#d');
 | 
						|
}
 | 
						|
var e = 1;
 | 
						|
if (e !== 1) {
 | 
						|
  $ERROR('#e');
 | 
						|
}
 | 
						|
var f = 1;
 | 
						|
if (f !== 1) {
 | 
						|
  $ERROR('#f');
 | 
						|
}
 | 
						|
var g = 1;
 | 
						|
if (g !== 1) {
 | 
						|
  $ERROR('#g');
 | 
						|
}
 | 
						|
var h = 1;
 | 
						|
if (h !== 1) {
 | 
						|
  $ERROR('#h');
 | 
						|
}
 | 
						|
var i = 1;
 | 
						|
if (i !== 1) {
 | 
						|
  $ERROR('#i');
 | 
						|
}
 | 
						|
var j = 1;
 | 
						|
if (j !== 1) {
 | 
						|
  $ERROR('#j');
 | 
						|
}
 | 
						|
var k = 1;
 | 
						|
if (k !== 1) {
 | 
						|
  $ERROR('#k');
 | 
						|
}
 | 
						|
var l = 1;
 | 
						|
if (l !== 1) {
 | 
						|
  $ERROR('#l');
 | 
						|
}
 | 
						|
var m = 1;
 | 
						|
if (m !== 1) {
 | 
						|
  $ERROR('#m');
 | 
						|
}
 | 
						|
var n = 1;
 | 
						|
if (n !== 1) {
 | 
						|
  $ERROR('#n');
 | 
						|
}
 | 
						|
var o = 1;
 | 
						|
if (o !== 1) {
 | 
						|
  $ERROR('#o');
 | 
						|
}
 | 
						|
var p = 1;
 | 
						|
if (p !== 1) {
 | 
						|
  $ERROR('#p');
 | 
						|
}
 | 
						|
var q = 1;
 | 
						|
if (q !== 1) {
 | 
						|
  $ERROR('#q');
 | 
						|
}
 | 
						|
var r = 1;
 | 
						|
if (r !== 1) {
 | 
						|
  $ERROR('#r');
 | 
						|
}
 | 
						|
var s = 1;
 | 
						|
if (s !== 1) {
 | 
						|
  $ERROR('#s');
 | 
						|
}
 | 
						|
var t = 1;
 | 
						|
if (t !== 1) {
 | 
						|
  $ERROR('#t');
 | 
						|
}
 | 
						|
var u = 1;
 | 
						|
if (u !== 1) {
 | 
						|
  $ERROR('#u');
 | 
						|
}
 | 
						|
var v = 1;
 | 
						|
if (v !== 1) {
 | 
						|
  $ERROR('#v');
 | 
						|
}
 | 
						|
var w = 1;
 | 
						|
if (w !== 1) {
 | 
						|
  $ERROR('#w');
 | 
						|
}
 | 
						|
var x = 1;
 | 
						|
if (x !== 1) {
 | 
						|
  $ERROR('#x');
 | 
						|
}
 | 
						|
var y = 1;
 | 
						|
if (y !== 1) {
 | 
						|
  $ERROR('#y');
 | 
						|
}
 | 
						|
var z = 1;
 | 
						|
if (z !== 1) {
 | 
						|
  $ERROR('#z');
 | 
						|
}
 |