Address PR on fixing tempalte tests

This commit is contained in:
Yui T
2015-10-02 19:23:19 -07:00
parent ca5da9068a
commit bf0903bd1b
2 changed files with 46 additions and 27 deletions

View File

@@ -1,4 +1,5 @@
var temp: any;
// @target: es5
var temp: any;
delete --temp ** 3;
delete ++temp ** 3;

View File

@@ -1,28 +1,46 @@
var t1 = 10;
// @target: es5
var t1 = 10;
var t2 = 10;
var s;
`Exp: ${t1 ** t2} abc`;
`Exp: ${t1 ** t2 ** t1} abc`;
`Exp: ${t1 + t2 ** t1} abc`;
`Exp: ${t1 - t2 ** t1} abc`;
`Exp: ${t1 ** t2 + t1} abc`;
`Exp: ${t1 ** t2 - t1} abc`;
`Exp: ${t1 + t2 ** t2 + t1} abc`;
`Exp: ${t1 - t2 ** t2 - t1} abc`;
`Exp: ${-t1 ** t2 - t1} abc`;
`Exp: ${+t1 ** t2 - t1} abc`;
`Exp: ${-++t1 ** t2 - t1} abc`;
`Exp: ${+--t1 ** t2 - t1} abc`;
`Exp: ${-t1++ ** t2 - t1} abc`;
`Exp: ${-t1-- ** t2 - t1} abc`;
`Exp: ${+t1++ ** t2 - t1} abc`;
`Exp: ${+t1-- ** t2 - t1} abc`;
`Exp: ${typeof t1 ** t2 ** t1} abc`;
`Exp: ${typeof t1 ** t2 + t1} abc`;
`Exp: ${typeof t1 ** (t2 - t1)} abc`;
`Exp: ${1 + typeof t1 ** t2 ** t1} abc`;
`Exp: ${2 + typeof t1 ** t2 ** ++t1} abc`;
`Exp: ${3 + typeof t1 ** t2 ** --t1} abc`;
`Exp: ${!t1 ** t2 ** t1} abc`;
`Exp: ${!t1 ** t2 ** ++t1} abc`;
`Exp: ${!t1 ** t2 ** --t1} abc`;
// TempateHead & TemplateTail are empty
`${t1 ** t2}`;
`${t1 ** t2 ** t1}`;
`${t1 + t2 ** t1}`;
`${t1 ** t2 + t1}`;
`${t1 + t2 ** t2 + t1 }`;
`${-t1 ** t2 - t1}`;
`${-++t1 ** t2 - t1}`;
`${-t1++ ** t2 - t1}`;
`${!t1 ** t2 ** --t1 }`;
`${typeof t1 ** t2 ** t1}`;
`${typeof (t1 ** t2 ** t1) }`;
`${1 + typeof t1 ** t2 ** t1}`;
`${1 + typeof (t1 ** t2 ** t1) }`;
`${t1 ** t2}${t1 ** t2}`;
`${t1 ** t2 ** t1}${t1 ** t2 ** t1}`;
`${t1 + t2 ** t1}${t1 + t2 ** t1}`;
`${t1 ** t2 + t1}${t1 ** t2 + t1}`;
`${t1 + t2 ** t2 + t1}${t1 + t2 ** t2 + t1}`;
`${-t1 ** t2 - t1}${-t1 ** t2 - t1}`;
`${-++t1 ** t2 - t1}${-++t1 ** t2 - t1}`;
`${-t1++ ** t2 - t1}${-t1++ ** t2 - t1}`;
`${!t1 ** t2 ** --t1 }${!t1 ** t2 ** --t1 }`;
`${typeof t1 ** t2 ** t1}${typeof t1 ** t2 ** t1}`;
`${typeof (t1 ** t2 ** t1)}${typeof (t1 ** t2 ** t1)}`;
`${1 + typeof t1 ** t2 ** t1}${1 + typeof t1 ** t2 ** t1}`;
`${t1 ** t2} hello world ${t1 ** t2}`;
`${t1 ** t2 ** t1} hello world ${t1 ** t2 ** t1}`;
`${t1 + t2 ** t1} hello world ${t1 + t2 ** t1}`;
`${t1 ** t2 + t1} hello world ${t1 ** t2 + t1}`;
`${t1 + t2 ** t2 + t1} hello world ${t1 + t2 ** t2 + t1}`;
`${-t1 ** t2 - t1} hello world ${-t1 ** t2 - t1}`;
`${-++t1 ** t2 - t1} hello world ${-++t1 ** t2 - t1}`;
`${-t1++ ** t2 - t1} hello world ${-t1++ ** t2 - t1}`;
`${!t1 ** t2 ** --t1 } hello world ${!t1 ** t2 ** --t1 }`;
`${typeof t1 ** t2 ** t1} hello world ${typeof t1 ** t2 ** t1}`;
`${typeof (t1 ** t2 ** t1) } hello world ${typeof (t1 ** t2 ** t1) }`;
`${1 + typeof t1 ** t2 ** t1} hello world ${1 + typeof t1 ** t2 ** t1}`;