refactor(lang_spec): Add missing ;s and clang-format
This commit is contained in:
parent
c9d636aa11
commit
0b43e3cf32
@ -10,26 +10,30 @@ import {
|
|||||||
} from 'angular2/src/facade/lang';
|
} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe('RegExp', () => {it('should expose the index for each match', () => {
|
describe('RegExp', () => {
|
||||||
var re = RegExpWrapper.create('(!)');
|
it('should expose the index for each match', () => {
|
||||||
var matcher = RegExpWrapper.matcher(re, '0!23!567!!');
|
var re = RegExpWrapper.create('(!)');
|
||||||
var indexes = [];
|
var matcher = RegExpWrapper.matcher(re, '0!23!567!!');
|
||||||
var m;
|
var indexes = [];
|
||||||
|
var m;
|
||||||
|
|
||||||
while (isPresent(m = RegExpMatcherWrapper.next(matcher))) {
|
while (isPresent(m = RegExpMatcherWrapper.next(matcher))) {
|
||||||
ListWrapper.push(indexes, m.index);
|
ListWrapper.push(indexes, m.index);
|
||||||
expect(m[0]).toEqual('!');
|
expect(m[0]).toEqual('!');
|
||||||
expect(m[1]).toEqual('!');
|
expect(m[1]).toEqual('!');
|
||||||
expect(m.length).toBe(2);
|
expect(m.length).toBe(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
expect(indexes).toEqual([1, 4, 8, 9]);
|
expect(indexes).toEqual([1, 4, 8, 9]);
|
||||||
})});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('const', () => {it('should support const expressions both in TS and Dart', () => {
|
describe('const', () => {
|
||||||
const numbers = CONST_EXPR([1, 2, 3]);
|
it('should support const expressions both in TS and Dart', () => {
|
||||||
expect(numbers).toEqual([1, 2, 3]);
|
const numbers = CONST_EXPR([1, 2, 3]);
|
||||||
})});
|
expect(numbers).toEqual([1, 2, 3]);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('String', () => {
|
describe('String', () => {
|
||||||
var upper, lower;
|
var upper, lower;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user