Lines Matching refs:Test
33 function Test(old_expression, new_expression) { class
66 Test("['Cat'][0]", "['Capybara'][0]");
67 Test("['Cat'][0]", "{a:'Capybara'}.a");
70 Test("'Cat'", "['Capybara'][0]");
73 Test("'Cat'", "['Capy'][0] + {a:'bara'}.a");
76 Test("['Cat'][0]", "'Capybara'");
79 Test("['Ca'][0] + {a:'t'}.a", "'Capybara'");
82 Test("'Cat'", "(/.A.Y.A.A/i).exec('Capybara')[0]");
85 Test("['Cat'][0]", "(/.A.Y.A.A/i).exec('Capybara')[0]");
88 Test("(/.A./i).exec('Cat')[0]", "{c:'Capybara'}.c");
91 Test("'Cat'", "(/.A.Y.A.A/i).exec('Capybara')[0]");
94 Test("(/.A./i).exec('Cat')[0]", "'Capybara'");