@@ -14,46 +14,46 @@ import {
1414
1515suite ( "function helper test" , ( ) => {
1616 test ( "validVariableName does not allow variables starting with number" , ( ) => {
17- assert . equal ( false , validVariableName ( "1as" ) ) ;
17+ assert . strictEqual ( false , validVariableName ( "1as" ) ) ;
1818 } ) ;
1919
2020 test ( "validVariableName returns true with correct variable" , ( ) => {
21- assert . equal ( true , validVariableName ( "matA" ) ) ;
21+ assert . strictEqual ( true , validVariableName ( "matA" ) ) ;
2222 } ) ;
2323
2424 test ( "validVariableName returns true for variables starting with uppercase" , ( ) => {
25- assert . equal ( true , validVariableName ( "MatA" ) ) ;
25+ assert . strictEqual ( true , validVariableName ( "MatA" ) ) ;
2626 } ) ;
2727
2828 test ( "validVariableName return true for variable starting with _" , ( ) => {
29- assert . equal ( true , validVariableName ( "_matA" ) ) ;
29+ assert . strictEqual ( true , validVariableName ( "_matA" ) ) ;
3030 } ) ;
3131
3232 test ( "parseFuntion return undefined on empty line" , ( ) => {
33- // assert.equal (undefined, parseFunction({text: ""}));
33+ // assert.strictEqual (undefined, parseFunction({text: ""}));
3434 } ) ;
3535
3636 test ( "parseFuntion return undefined if function keyword is missing" , ( ) => {
37- // assert.equal (undefined, parseFunction({"hello"));
37+ // assert.strictEqual (undefined, parseFunction({"hello"));
3838 } ) ;
3939
4040 test ( "parseFuntion return correct function name" , ( ) => {
41- // assert.equal ("hello", parseFunction("function hello()").name);
41+ // assert.strictEqual ("hello", parseFunction("function hello()").name);
4242 } ) ;
4343
4444 test ( "parseFuntion return correct number of args" , ( ) => {
45- // assert.equal (2, parseFunction("function hello( a, b)").args.length);
45+ // assert.strictEqual (2, parseFunction("function hello( a, b)").args.length);
4646 } ) ;
4747
4848 test ( "parseArgs return the correct number of args" , ( ) => {
49- assert . equal ( 2 , parseArgs ( "a,b" ) . length ) ;
49+ assert . strictEqual ( 2 , parseArgs ( "a,b" ) . length ) ;
5050 } ) ;
5151
5252 test ( "parseArgs handle spaces well" , ( ) => {
53- assert . equal ( 2 , parseArgs ( " a, b" ) . length ) ;
53+ assert . strictEqual ( 2 , parseArgs ( " a, b" ) . length ) ;
5454 } ) ;
5555
5656 test ( "parseArgs handle empty args" , ( ) => {
57- assert . equal ( 0 , parseArgs ( "" ) . length ) ;
57+ assert . strictEqual ( 0 , parseArgs ( "" ) . length ) ;
5858 } ) ;
5959} ) ;
0 commit comments